The other issue (at least in the USA) is a ton of compliance stuff you have to deal with. HIPAA compliance is such a pain in the ass. It's not "cool" or fun, so it doesn't usually attract great devs or people that don't want to deal with constant red tape and permissions for accessing things. Naturally, this business sort of attracts the bureaucratic minded people and the really efficient people end up frustrated/burn out and move into an industry where getting shit done is easily quantifiable in the short term.
Regardless, I work in the healthcare industry currently and it's a shitshow for lack of a better word.