In tests, hospital hackers from the Independent Security Evaluators research team popped patient monitors, making them display false readings which could result in medical responses that injury or kill patients.
Full paper here.
My point in all this is that being what a US reactionary would consider a "socialist" country does not translate into necessarily having a basket case economy. A prior poster mentioned Canada as a similar example of what a US wingnut would describe as a "socialist country" that's doing relatively well.
I've noticed several design suggestions in your code.