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

Name ID

Biruk Kassahun UU79644R


Abel Million UU80247R

HOSPITAL Anteneh Girma


Haile Getachew
Fanuel Aysheshim
UU80323R
UU79768R
UU79700R
`

MANGMENT
SYSTEM
DATABASE ASSIGMENT
Table 1:
tblPatient
(1NF)

Field
Description Type Length
Name Table 2: tblDoctor (2NF)

patient_id Field Name Description Type Length


Patient ID varchar 10
(PK)
doctor_id (PK) Doctor ID varchar 10
Patient
name varchar 50
Name

age Patient Age int 3


name Doctor Name varchar 30

Patient
gender varchar 50
Gender
age Doctor Age int 3

Patient
address varchar 50
Address
gender Doctor gender varchar 50

Patient
disease varchar 50 address Doctor Address varchar 50
Disease

doctor_id
Doctor ID varchar
(FK) 20

Table 4:tblPatient(4NF)

Table 3: tblLab (3NF)


Field Field Name Description Type Length
Name Description Type Length

patient_id (PK) Patient ID varchar 10


lab_no Laboratory Number
(PK) varchar 10
room_no (FK) Room Number varchar 50

patient_id Patient ID
(FK) varchar 10 date_of_adm Date of Admission Date/Time 10

doctor_id Doctor ID date_of_dis Date of Discharge Date/Time 10


(FK) varchar 10

lab_no (FK) Laboratory Number varchar 10


Laboratory Date Date/Ti
date me 10

Amount of Lab
amount int 20
Table 5: tblOutpatient (5NF) Table 6: tblRoom (6NF)

Field Name Description Type Length


Field Name Description Type Length

patient_id
(PK) Patient ID varchar 10

room_no (PK) Room Number varchar 50

date Date of Outpatient varchar 10

room_type Room Type varchar 50


Laboratory
lab_no (FK) Number varchar 20

status Status Of Room varchar 20

Table 7: tblBill (7NF)

Field Name Description Type Length

bill_no (PK) Patient ID int 11

patient_id (FK) Patient Name varchar 10

doctor_charge Patient Age int 10

room_charge Patient Gender int 10

no_of_days Patient Address int 10

lab_charge Patient Disease int 10

bill Doctor ID int 10


Normalization :

Database Type Tables

Patient ID,Patient Name,Patient Age,Patient


Denormalized Gender,Patient Address,Patient Disease,Doctor ID

Doctor ID,Doctor Name,Doctor Age,Doctor


Normalized(1NF) gender,Doctor Address

Laboratory Number,Patient ID,Doctor


Normalized(2NF) ID,Laboratory Date,Amount of Lab

Laboratory Number,Patient ID,Doctor


Normalized(3NF) ID,Laboratory Date,Amount of Lab

Patient ID,Room Number,Date of Admission,Date


Normalized(4NF) of Discharge,Laboratory Number

Normalized(5NF) Patient ID,Date of Outpatient,Laboratory Number

Normalized(6NF) Room Number,Room Type,Status Of Room

Patient ID,Patient Name,Patient Age,Patient


Normalized(7NF) Gender,Patient Address ,Patient Disease,Doctor ID

Name of
S. No. Resources/material Specifications Qty

Core i7 -2.6 GHz 8


GB Ram 64-bit
1 Laptop operating system- 1
windows

10

POSTGRES AND
2 Software VALENTINADB --
Internet,

3 Other resources YouTube --

You might also like