Here in the Basque Country we have a public health system, named Osakidetza. Such system implemented, like five years ago, a centralized electronic prescription system. Now doctors in the public system have to use that to make prescriptions which solved all problems caused by bad doctors handwriting, and also solved problems like you mentioned, because the system detects and warns against conflicting medications.