Class Diagram for Hospital Management System
class diagram for hospital management system
Class Diagram for Hospital Management System

The above is the Class Diagram for Hospital Management System represents. It is also denoted by the Hospital domain Model Diagram. The Domain Model for Hospital Management System is depicted by multiple class diagrams.

The diagram gives you a brief idea about the Hospital management process that has small but important substructures such as staff structure, hospital structure, patient treatment terminology, and relationship with patients.

Classes of Hospital Management System Class Diagram:

  • Hospitals Class: To supervise all the operations of Hospitals
  • Patient Class: To superviseall the operations of Patient
  • Doctors Class: To superviseall the operations of Doctors
  • Nurses Class: To superviseall the operations of Nurses
  • Appointments Class: To superviseall the operations of Appointments
  • *Medicines Class: To supervise all the operations of Medicines

A Person could be associated with multiple hospitals and likewise a hospital can serve or employee multiple Persons. In the above diagram, the person class has derived attributes /name and /homeaddress.

/name designates the full name of a person and it can be combined with the title:, given the first name, the middle name, and the last name (family name) of a person.

The Patient class has a derived attribute /age. The attributed is derived because the age can be calculated using the Date of Birth and the current date (Today date) or the date of admission of the patient.

Attributes from Person class are inherited by the Patient class. The inherited attributes are denoted by the caret ‘^’ symbol (UML 2.5). Few of the inherited attributes examples namebirthDate , and gender are shown in the diagram.

Class Diagram for Hospital wards and teams
Hospital wards, teams of doctors, and patients.

Ward Description:

Ward is the section in the hospital for patients who need typically the same kind of care. The rooms or similar types of suits are grouped together to form a ward.

There are several wards in a hospital. The ward can be empty or it can have N number of patients. Each ward has its own unique name. The diagram below denotes the ward’s uniqueness with {id}.

Wards can also be differentiated using the gender of the patient. i.e. Male wards and female wards. The male patients cannot be admitted in female wards and similarly, female patients cannot be admitted in male wards. Hence gender is denoted as an enumeration. The patient and ward have gender constraints.

There are doctors with different specializations i.e. Orthopaedics, dieticians, or Ophthalmologist. These doctors are organized into teams also called firms. Each of these teams is categorized with a unique name or code and is represented as a Consultant Doctor (in the United Kingdom, Ireland, and parts of the Commonwealth) or attending physician in the United States.

These attending physician or consultant doctor is a senior doctor and have completed all their specializations studies and are practicing their medicine in their own clinic or hospital. in the specializing they studied. They can supervise their fellow colleagues, junior doctors, nurses or junior medical interns. The rest of the team consists of junior doctors and each doctor can be a member of only 1 team.

Class Treatment of hospital management.
Domain model – Patient, Doctors &Treatments.

Every patient is in a single ward and is under the observation of a single team of doctors. The number of doctors may vary to multiple doctors but all the doctors will always belong to a single team that treats the patient.

The doctors can treat any number of patients. The head of the team accepts the responsibility with respect to legal matters and others. The team leader looks after all the patients assigned to him even with the small minute by minute decisions made by the colleagues.

Previous articleHow to Recover an Unsaved Word Document
Next articleRole and Responsibilities of Managerial Economist


Please enter your comment!
Please enter your name here