Smart MDM makes for safer hospitals