A procedure for assessing the functional reliability of hospital systems. Structural Safety