This UML sequence diagram illustrates the hospital management process, capturing interactions between Patients, receptionists, Hospital Management, doctors, Billing System, and Pharmacy. The workflow starts when a patient requests an appointment, prompting the receptionist to check the doctor's availability. Depending on slot availability, an alternative time may be offered or the appointment confirmed.
Upon arrival, the patient is registered, and the doctor conducts the examination, updating patient records and sending prescription details to the pharmacy. Billing is handled through the hospital management and billing system, with payment confirmation triggering prescription issuance. The pharmacy validates the prescription and dispenses medicine, accounting for possible unavailability.