Вы находитесь на странице: 1из 9

DATABASE MANAGEMENT

SYSTEM
Group Members:

Muhammad Abbas
Ali Raza Awan
Project : Razia Saeed Hospital Database Design
INTRUCTOR:
SIR NATASH ALI MIAN
Company overview
Projects :
Razia Saeed Industries
Razia Saeed Hospital
Razia Saeed Housing Society
Razia Saeed Energy
Razia Saeed Group of Industries
System Overview
Hospital Management System :
Hospital Management System is an integrated management
system that helps to record departments, rooms, doctors,
nurses, compounders, and other staff working in the hospital. It
maintains records of the regular patients, patients admitted in
the hospital, the check up of patients done by the doctors, the
patients that have been operated, and patients discharged from
the hospital.



Requirements
Within Razia Saeed Hospital there are many departments like
Orthopedic, Pathology, Emergency, Dental, Gynecology,
Anesthetics, I.C.U., Blood Bank, Operation Theater, Laboratory,
M.R.I., Neurology, Cardiology, Cancer Department, Corpse, etc.
There is an OPD where patients come and get a card (that is, entry
card of the patient) for check up from the concerned doctor. After
making entry in the card, they go to the concerned doctors room
and the doctor checks up their ailments. According to the ailments,
the doctor either prescribes medicine or admits the patient in the
concerned department. The patient may choose either private or
general room according to his/her need. But before getting
admission in the hospital, the patient has to fulfill certain formalities
of the hospital like room charges, etc. After the treatment is
completed, the doctor discharges the patient. Before discharging
from the hospital, the patient again has to complete certain
formalities of the hospital like balance charges, test charges,
operation charges (if any), blood charges, doctors charges, etc.
ER MODEL
RELATIONAL MODEL
Create table query
CREATE TABLE Department (D_name VARCHAR(10) NOT
NULL, D_Location VARCHAR(15), PRIMARY KEY (D_name),
UNIQUE (D_Location);
CREATE TABLE All_Doctors (Doc_no INTEGER NOT NULL,
Department VARCHAR(15), PRIMARY KEY (Doc_no), UNIQUE
(Department);
CREATE TABLE Doc_oprts_Pat (Pat_no INTEGER NOT NULL,
Doc_no INTEGER NOT NULL, type_oprt VARCHAR(15),
date_oprt DATE, In_cond VARCHAR(25), Medicines
VARCHAR_90 FOREIGN KEY (Pat_no, Doc_no)
REFERENCES Pat_Entry, All_Doctors;
CREATE TABLE Paat_entry (Pat_no VARCHAR(20) NOT
NULL, Pat_name VARCHAR(25), Mode_pymt VARCHAR(10),
chkup_dt DATE, Pat_age INTEGER, address VARCHAR(25),
city VARCHAR(10), ph_no INTEGER, sex VARCHAR(1)
Department VARCHAR(15), PRIMARY KEY (Pat_no),
FOREIGN KEY (Department) REFERENCES Department;




Insert Query
INSERT INTO DEPARTMENT (D_name, D_Location, Facilities)
VALUES ('Orthopedic', First Floor', latest technology')
INSERT INTO All_Doctors (Doc_no, Department) VALUES (0095',
Dental')
INSERT INTO Doc_oprts_pat (Pat_no, Doc_no, type_oprt) VALUES
(0016', DR0078', surgery')
INSERT INTO Pat_entry (Pat_no, Pat_name,Pat_age ) VALUES
(PT8765', Zara, 25')
INSERT INTO Pat_reg (Pat_no, Status) VALUES (0016', Critical ill')
INSERT INTO Pat_admit (Pat_no, Admit_on) VALUES (0065',
Wednesday')
INSERT INTO Call_on_Doc (D_name, Doc_no) VALUES (Ali Abbas',
DC0014')
INSERT INTO Regular_doctor (Doc_no, Salary, ph_no ) VALUES
(DR0015', 80000', 03222614000')
INSERT INTO pat_dis (Pat_no, tr_adv, pymt_givn ) VALUES (PT8765',
bedrest', 25000')
INSERT INTO Doc_chkup_Pat (Doc_no, Pat_no , Treatment) VALUES
(DR0014', PT8765', operation')










SELECT STATEMENT
SELECT D_name FROM Deapartment ;
SELECT Pat_no, sex, Pat_age FROM Pat_Entry WHERE
Pat_age < 25;
SELECT * FROM Department;
SELECT Pat_no, tr_givn, Pymt_givn FROM Pat_dis WHERE
Pymt_givn < 20000;
SELECT Doc_no, Qualification, Salary FROM
Regular_Doctors WHERE Salary > 50000;

Вам также может понравиться