Safety system and its application for Medical System Management