I used to send this flowchart to people a couple times a year. Tl;dr the flowchart says “the program you are thinking of making is strictly regulated, do not try to slap together medical software in your free time.”
Then the Trump admin greatly loosened regulations on medical software…