System architecture for hospital management system