Download as pdf or txt
Download as pdf or txt
You are on page 1of 14

Bahria University, Lahore Campus

Department of Computer Sciences


Lab Journal 13
(Fall 2023)

Course: Database Management System Lab


Course Code: CSL 220 Max Marks:
Faculty’s Name: Lab Engineer:

Name: _ZAIN
UMER Enroll No: _03-13421-047
03-134221-042

Task

Attach the document of your semester project. Please follow the component
 Introduction
 Background
 ERD of your project
 Methodology
 Conclusion

Introduction

Hospital Management System

This project presents the development of a Hospital Management System (HMS) designed to
streamline hospital operations and enhance patient care. The system is built using PHP for the
front-end and incorporates a MySQL database backend managed through XAMPP. It
implements user-friendly interfaces for administrators, doctors, and patients, each with distinct
functionalities.

Background

Need for a Hospital Management System

Hospitals face multifaceted challenges in managing a vast array of data, coordinating diverse
departments, and delivering efficient patient care. Manual systems often lead to inefficiencies,
errors, and subpar patient experiences. A robust HMS addresses these challenges by:
Automating tasks: Streamlining processes such as appointment scheduling, patient
registration, billing, and resource management.
Enhancing communication: Facilitating timely information exchange between departments and
staff members.

Improving patient care: Enabling better patient tracking, efficient appointment management,
and comprehensive record-keeping.
ERD of the Project

Entity Relationship Diagram (ERD)

Methodology

Development Approach

Front-End Development:
PHP for dynamic web page generation and user interaction.
HTML, CSS, and JavaScript for structuring content, styling, and client-side scripting.
Back-End Development:

MySQL database for storing and managing data.


XAMPP for local server environment and database management.
PHP for interacting with the database (e.g., executing queries, retrieving results).
User Roles and Functionalities:

Admin:
Add/edit/remove doctors and staff.
View patient records and appointments.
Generate reports.
Doctor:
View assigned patients and appointments.
Add patient records and medical notes.
Patient:
Book appointments.
View appointment history and medical records.
Update personal information.

Conclusion

The developed Hospital Management System offers a centralized platform for managing
hospital operations and improving patient care.
It facilitates efficient appointment scheduling, patient record management, and communication
between staff members.

CREATE DATABASE hms

hms
ADMIN

SELECT * FROM `admin`

APPOINTMENT

SELECT * FROM `appointment`


UPDATE
UPDATE `appointment` SET `appointmentDate` = '2024-01-04'

DOCTORS

SELECT * FROM `doctors`

SELECT doctorName from doctors where doctorName = 'zayn';

DOCTOR LOGIN
SELECT * FROM `doctorslog`

DOCTOR SPECILIZATION

SELECT * FROM `doctorspecilization`


INSERT
INSERT INTO `doctors`(`id`, `specilization`, `doctorName`, `address`, `doc
Fees`, `contactno`, `docEmail`, `password`, `creationDate`, `updationDate`
) VALUES ('10','hair','','ibrahim','pekhawar','100','1237863','3456','2023
-12-03','2024-01-04');

UPDATE
UPDATE `doctors` SET `id`='17',`specilization`='HAIR',`doctorName`='ali',`
address`='',`docFees`='lahore',`contactno`='3272364',`docEmail`='djen@.com
',`password`='48589437' WHERE id = 10;

SELECT * FROM `doctors`

PATIENT
SELECT * FROM `tblpatient`

USER LOGIN

SELECT * FROM `userlog`


USERS

SELECT * FROM `users`


Lab Grading Sheet :

Max Obtained
Task Comments(if any)
Marks Marks
1. 10
2. 10
3. 10
4. 10

Total 40 Signature

Note : Attempt all tasks and get them checked by your Lab. Instructor

You might also like