You are on page 1of 12

Table of Contents

Hospital Management system for Database System ............................................................ 3


Database structure of Hospital Management system .......................................................... 4
Hospital Management system for Database System

Hospital management is an integrated Hospital Information system, which addresses all the
doctor’s specialist in the hospitals. The hospital management enables better management
information system. It provides easy access to critical information thus enabling the
management to appoint for their specialist doctor any time.
Who are new patient is appoint the doctor he should register their details in the register
page. The register page recorded in the user table in the database.
Doctor’s information will be record in the doctor table. And as well as lots of many specialist
are in the hospital. That doctor’s information added and delete or update can do only by
admin. Who are people appoint the doctor it will says their time and date, which room you
can checked your diseases. The doctor information recorded in the doctor table.
Patients will can appoint the specialist doctor for his diseases. And he is responsible for the
room booking. Every one having the unique card identity number for his living country so we
can identify the person for their National Identity Card Number.
Who are patients appointed the doctor after that if he want update their details he just go for
the Booked details page he can identify the update button. After that can he can update their
detail and also if he want to cancel the appointments he can easily cancel the appointment.
That’s system is too user friendly who are the people appoint the doctor and cancel the
appointment for his own account. Above I mention what are details will happen for the
patient instructions that instructions records are saved in the patient table in the database.

Figure 1 Hospital Management System Database Structure


Database structure of Hospital Management system

User Table

CREATE TABLE `user`


`user_id` int(11) NOT NULL,
`user_name` varchar(250) DEFAULT NULL,
`user_password` varchar(128) DEFAULT NULL,
`user_type` varchar(250) NOT NULL DEFAULT 'user',
`fname` varchar(250) NOT NULL,
`lname` varchar(250) NOT NULL
ALTER TABLE `user`

ADD PRIMARY KEY (`user_id`);

ADD UNIQUE KEY `user_name` (`user_name`);

Figure 2 User Table Structure


Doctor Table

CREATE TABLE `doctor` (

`doc_id` int(11) NOT NULL,

`doc_name` varchar(250) DEFAULT NULL,

`doc_phnumber` varchar(10) DEFAULT NULL,

`doc_gender` varchar(250) DEFAULT '',

`spcl_name` varchar(250) NOT NULL,

`doc_rm` varchar(45) DEFAULT NULL

ALTER TABLE `doctor`

ADD PRIMARY KEY (`doc_id`);

Figure 3 Doctor Table Structure


Patient Table

CREATE TABLE `patient` (


`p_id` int(11) NOT NULL,
`title` varchar(250) NOT NULL,
`p_name` varchar(250) DEFAULT NULL,
`p_phn` int(10) DEFAULT NULL,
`p_nic` varchar(250) DEFAULT NULL,
`p_email` varchar(225) NOT NULL,
`spcl_name` varchar(2500) NOT NULL,
`booking_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`doctor_doc_id` int(11) NOT NULL,
`user_user_id` int(11) NOT NULL,
`doc_name` varchar(550) NOT NULL
ALTER TABLE `patient`
ADD PRIMARY KEY (`p_id`,`user_user_id`,`doctor_doc_id`),
ADD KEY `fk_patient_user_idx` (`user_user_id`),
ADD KEY `fk_patient_doctor1_idx` (`doctor_doc_id`);

Figure 4 Patient Table Structure


User Interface of Hospital Management system

Index Page
New patient are appoint the doctor he will be first register their details in the register
page if he registered after that onwards he can log in to the index page and admin
also can log in their account in index page.

Figure 5 index page

Register Page
One patient can register in our system he can log in to the system as well. That’s
stored in the user table in the database.

Figure 6 Register Page


Admin Panel

When you logged in admin panel that will directly see who are doctors and specialist,
doctor’s phone number and which room patient can appoint their patient that available in the
admin panel.

Figure 7 Admin panel

Admin Appointment Details

Figure 8 Admin Appointment Details


Admin Doctor Registration

Figure 9 Admin Doctor Registration

Admin User Registration

Figure 10 Admin User Registration


Home Page

Figure 11 Home Page

Booking Details

Figure 12 Booking Details


Booked Details

Figure 13 Booked Details

Booking Update Details

Figure 14 Booking Update Details


PHP
1.
Database Connect

2.
Require Once

3.

You might also like