Not a programmer, but I can definitely attest that TV Medicine is wildly inaccurate. From CPR (method, success rate, reason for initiating) to the usefulness of various imaging modalities; it's like watching a gardener plant a whole watermelon and growing a sky-high beanstalk the following morning.
A really fun intersection of both of these was the episode of Bones I saw once when visiting my dad, where some corpse had a microscopic code etched in its femur that then hijacked/hacked the CT machine computer when scanned.
Am a programmer, with no real medical knowledge, but I almost laughed out loud in a theater watching a CPR scene once. The person was giving the tiniest little chest compressions you can imagine, standing straight up with their arms out straight in front of them and only really moving like, their forearms. To an adult recipient.