Hospital rules-based system: the next generation of medical informatics for patient safety.