Those in the medical field. Realistically, what are the ramifications of something like this?

I know it's a sitcom, so you have to make light of certain situations. But realistically, what could happen to everyone involved with a situation where a civilian is pretending to be a doctor? Even going to far as to engage with a patient from a medical standpoint.