In this UML sequence diagram for a hospital management system, patient registration is done first followed by checking doctor availability. The system first finds a doctor in case of emergencies, then it looks for nurses who will attend to the patients before admitting them. Finally, they are given beds at the end of the process.