This diagram has six classes which are reception, patient, doctor, indoor_pateint, outdoor_patient and room. The reception class is now linked with both doctor and patient. The patient class has further child classes which are indoor_patient for the patients who are admitted and outdoor_pateint for the outdoor patients. The room class is for the details of the room for admitted patients.