Sem Lab
Sem Lab
Requirements:
1. Patient Management:
o Add new patients to the system with details such as name, age, gender, contact information,
and medical history.
2. Doctor Management:
o Add new doctors with details like name, specialization, experience, and contact information.
3. Appointment Scheduling:
o Schedule appointments for patients with doctors, specifying the date, time, and reason for the
visit.
o Cancel an appointment.
4. Billing System:
o Generate bills for patients based on services rendered, including consultation fees, medical
tests, and treatments.
6. User Authentication:
o Implement basic user authentication to ensure that only authorized personnel can access
certain features of the system.
o User roles such as Admin, Doctor, and Receptionist should have different access levels.
7. Data Persistence:
o Store data (patients, doctors, appointments, billing) in files or a database so that it is preserved
between sessions.
8. Error Handling:
o Ensure that the system gracefully handles errors, such as invalid input or failed database
connections.
9. User Interface:
o Create a simple command-line interface (CLI) for interacting with the system.
Other Features :
Deliverables:
Version 1.0
Objective:
To create a detailed Use Case Diagram on the Hospital Management System.
Experiment – 4
Objective:
To create detailed Use Case Descriptions on the Hospital Management System.
Theory:
Actors in a Use Case Description represent external entities interacting with the system. Each
actor performs specific actions, known as use cases, based on their role within the system. In
a Hospital Management System, the main actors—Patient, Doctor, and Admin—each have
different functionalities they interact with. The use case descriptions for actors provide a
breakdown of the processes they engage with and help clarify their roles.
Procedure:
1. Identification of Actors:
○ Patient: Requests services like scheduling appointments, paying bills, and
viewing records.
○ Doctor: Manages patient medical records, issues prescriptions, and handles
schedules.
○ Admin: Manages hospital staff, generates reports, and overseas operations.
2. List of Use Cases for Each Actor:
○ For Patient: Request Appointment, View/Pay Bill, View Medical Records.
○ For Doctor: Access Patient Medical Records, Issue Prescription, Manage
Schedule.
○ For Admin: Manage Hospital Staff, Generate Reports, Manage Schedules.
3. Writing Actor-Centric Use Case Descriptions:
○ For each actor, define the use cases they interact with, focusing on the steps
they follow and the system's responses.
Actor: Patient
Use Case 1: Request Appointment
● Preconditions:
○ The patient must be registered in the system.
○ The system must have available appointment slots.
● Postconditions:
○ The appointment is scheduled, and the patient receives a confirmation.
● Main Flow:
● Preconditions:
○ The patient must have an outstanding bill in the system.
○ The patient must be logged in.
● Postconditions:
○ The bill is paid, and the patient receives a receipt.
● Main Flow:
● Preconditions:
○ The patient must be registered in the system.
○ The patient must have medical records stored in the system.
● Postconditions:
○ The patient successfully views their medical records.
● Main Flow:
Actor: Doctor
Use Case 1: Access Patient Medical Records
● Preconditions:
○ The doctor must be logged into the system and have access to patient data.
● Postconditions:
○ The doctor successfully views or updates the patient's records.
● Main Flow:
● Preconditions:
○ The doctor must have access to the patient's medical history.
○ The doctor must be authorized to issue prescriptions.
● Postconditions:
○ The prescription is sent to the pharmacy and logged in the patient’s records.
● Main Flow:
3. The system sends the prescription to the pharmacy and provides confirmation.
● Preconditions:
○ The doctor must be logged into the system.
● Postconditions:
○ The schedule is updated, reflecting new appointments.
● Main Flow:
Actor: Admin
Use Case 1: Manage Hospital Staff
● Preconditions:
○ The admin must have access to staff management tools.
● Postconditions:
○ The staff details are updated in the system.
● Main Flow:
1. The admin logs into the system and accesses the "Staff Management" section.
2. The system prompts the admin to select the report type (e.g., financial, staff).
3. The system generates the report and makes it available for download or printing.
● Preconditions:
○ The admin must have the necessary privileges to manage schedules.
● Postconditions:
○ Hospital staff schedules are updated.
● Main Flow:
Conclusion:
The Use Case Descriptions for actors in the Hospital Management System provide clear
insights into how Patients, Doctors, and Admins interact with the system. Each actor
performs specific actions that contribute to the system’s functionality, including appointment
scheduling, medical record access, and administrative management. Understanding these
interactions helps define system requirements and user behaviour.
Experiment - 5
Objective:
To create a SRS Document on the Hospital Management System.
1. Introduction
1.1 Purpose
This document provides the software requirements specification for the Hospital
Management System (HMS), which will manage various administrative and medical
functions of a hospital or healthcare institution.
1.2 Scope
The HMS will handle patient registration, appointment scheduling, billing, doctor and staff
management, pharmacy, laboratory results, and reporting. It aims to streamline the workflow
in hospitals, enhance efficiency, and improve patient care quality.
1.4 References
1.5 Overview
This document outlines the overall structure, interfaces, user roles, system functionalities, and
other technical specifications of the HMS.
2. Overall Description
● Backend: Node.js/Django
● Frontend: React/Angular
● Database: PostgreSQL/MySQL
2.1.7 Operations
2.4 Constraints
3. Specific Requirements
3.2 Functions
3.6.1 Reliability
3.6.3 Security
3.6.4 Maintainability
3.6.5 Portability
● Operational mode
● Maintenance mode
3.7.3 Objects
3.7.4 Feature
3.7.5 Stimulus
3.7.6 Response
● Future versions may incorporate AI-based patient diagnostics and remote monitoring
capabilities
4. Supporting Information
● Appendix A: Glossary
● Appendix B: Use Case Diagrams
● Appendix C: Data Flow Diagrams
● Appendix D: System Architecture Diagrams
Experiment - 6
Objective:
To create a detailed Class Diagram on the Hospital Management System.
Experiment - 7
Objective:
To create a detailed Sequence Diagram on the Hospital Management System.
Theory:
A Sequence Diagram is an interaction diagram that shows how objects operate with one
another and in what order. It depicts the sequence of messages exchanged between the
objects to carry out the functionality of a scenario.
Flow Types :
Sequence Diagrams:
1. Login Module:
Basic flow
Alternate flow
2. Patient Registration:
Basic flow
Alternate flow
3. Appointment
Basic Flow
Alternate Flow
4.Billing
Basic Flow
Alternate Flow
5. Pharmacy:
Basic Flow
Alternate Flow
Experiment - 8
Objective:
To create an Activity Diagram on the Hospital Management System.
Experiment - 9
Objective:
To create a detailed Collaboration Diagram on the Hospital Management System.
Experiment - 10
Objective:
To create a Test case matrix on the Hospital Management System.
Theory:
A systematic approach to test case design ensures that defects are caught early, leading to a
robust and reliable software product.
3. Appointment Module
4. Billing Module
5. Pharmacy Module
Conclusion:
All functional modules of the Hospital Management System were tested successfully. The
test cases confirmed that the login, patient registration, appointment, billing, and pharmacy
features work as intended under valid and invalid scenarios. This ensures the HMS is reliable
and ready for production use or further integration testing.