The above diagram has five classes which are hospital, reception, patient, doctor and report. The hospital class is the main class which keeps the information of hospital. The hospital class is linked with the reception class. The reception class is for the patients to get appoints of the doctor. The patient class has the relation with the report class. The reception will contact the doctor for the appointment.