Tải bản đầy đủ (.docx) (25 trang)

Project quarter 2 Newhope Hospital

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (244.32 KB, 25 trang )

NEWHOPE HOSPITAL
PROJECT ON
NIIT Cần Thơ Page 1
NEWHOPE HOSPITAL
PROJECT REPORT
NEWHOPE HOSPITAL
NIIT Cần Thơ Page 2
NEWHOPE HOSPITAL
Batch code :
Start Date : Mar 19 2010
End Date : Apr 25 2010
Name of the Developer :
 Nguyễn Thế Mạnh
 Huỳnh Thủy Ngân
Date of Submission : Apr 26 2010
NIIT Cần Thơ Page 3
NEWHOPE HOSPITAL
CERTIFICATE
This is to certify that this report titled NewHope Hospital embodies the original work done by Nguyen The Manh and Huynh Thuy Ngan in partial fulfillment of their
course requirement at NIIT.
NIIT Cần Thơ Page 4
NEWHOPE HOSPITAL
ACKNOWLEDGEMENT
We have benefited a lot from the feedback and suggestions given to us by Mr. Lam Phuc and other faculty members.
NIIT Cần Thơ Page 5
NEWHOPE HOSPITAL
SYSTEM ANALYSIS
Newhope Hospital is a famous name in the United States in the field of
medical sciences. With the increase in the number of records of patients, it has
become difficult for the staff at NewHope to maintain the details of all the patients.
At times, the large volume of patient information results in a delay in updating the


patient records. Therefore, the management of NewHope has decided to
computerize the process of maintaining the patient records.
ENTITES
NIIT Cần Thơ Page 6
NEWHOPE HOSPITAL
Number of entities: 5
Name of entities:
1. DoctorDetails
2. PatientDetails
3. WardDetails
4. Payments
5. MedicalHistory
ATTRIBUTES
NIIT Cần Thơ Page 7
NEWHOPE HOSPITAL
Attributes: The various entities and their attributes are listed in the following table.
Entity Attributes
DoctorDetails DoctorID
FirstName
LastName
Address
Phone_Num
Employment_Type
Ward_ID
Specialization
PatientDetails PatientID
FirstName
LastName
Address
Phone_Num

Age
Height
Weight
Blood_Grp
Admit_Date
Discharge_Date
TreatmentType
DoctorID
Ward_ID
Bed_ID
Payments PaymentID
PatientID
PaymentDate
PaymentMethod
CC_Num
CardHolderName
Check_Num
AdvancePayment
FinalPayment
PaymentStatus
NIIT Cần Thơ Page 8
NEWHOPE HOSPITAL
ATTRIBUTES
Entity Attributes
WardDetails Ward_ID
WardName
Total_Beds
Ward_Charge
Avail_Beds
MedicalHistory RecordID

PatientID
DoctorID
Disease
OriginalWard
DischargeWard
NIIT Cần Thơ Page 9
NEWHOPE HOSPITAL
E/R DIAGRAM
NIIT Cần Thơ Page 10
NEWHOPE HOSPITAL
NIIT Cần Thơ Page 11
NEWHOPE HOSPITAL
TABLES
Number of Tables: 6
Structure of Tables: The table structures are shown here.
DoctorDetails [ Entity ] PatientDetails [ Entity] Payments [Entity]
MedicalHistory [ Entity ] WardDetails [ Entity ] Treatment [ Relationshop ]
The Treatment table is formed because of a many-to-many relationship between the
DoctorDetails and PatientDetails
NIIT Cần Thơ Page 12
DoctorDetails
DoctorID
FirstName
LastName
Address
Phone_Num
Employment_Type
Ward_ID
Specialization
PatientDetails

PatientID
FirstName
LastName
Address
Phone_Num
Age
Height
Weight
Blood_Grp
Admit_Date
Discharge_Date
TreatmentType
DoctorID
Ward_ID
Bed_ID
Payments
PaymentID
PatientID
PaymentDate
PaymentMethod
PaymentMethodID
CC_Num
Check_Num
AdvancePayment
FinalPayment
PaymentStatus
WardDetails
WardID
WardName
Total_Beds

Ward_Charge
Avail_Beds
Treatment
DoctorID
PatientID
TreatmentType
Specialization
MedicalHistory
RecordID
PatientID
DoctorID
Disease
OriginalWard
DischargeWard
NEWHOPE HOSPITAL
TABLES AFTER 1 NF
NIIT Cần Thơ Page 13
NEWHOPE HOSPITAL
The tables are already in 1 NF. The table structures are shown here.
DoctorDetails
DoctorID
FirstName
LastName
Address
Phone_Num
Employment_Type
Ward_ID
Specialization
PatientDetails
PatientID

FirstName
LastName
Address
Phone_Num
Age
Height
Weight
Blood_Grp
Admit_Date
Discharge_Date
TreatmentType
DoctorID
Ward_ID
Bed_ID
WardDetails
WardID
WardName
WardType
Total_Beds
Ward_Charge
Avail_Beds
NIIT Cần Thơ Page 14
NEWHOPE HOSPITAL
MedicalHistory
RecordID
PatientID
DoctorID
Disease
OriginalWard
DischargeWard

Notes
Treatment
DoctorID
PatientID
TreatmentType
Specialization
Payments
PaymentID
PatientID
PaymentDate
PaymentMethod
PaymentMethodID
CC_Num
Check_Num
AdvancePayment
FinalPayment
PaymentStatus
NIIT Cần Thơ Page 15
NEWHOPE HOSPITAL
TABLES AFTER 2 NF
NIIT Cần Thơ Page 16
NEWHOPE HOSPITAL
The tables are already in 2 NF as the attributes in each table depend on the primary key.
The table structures are shown here.
DoctorDetails
DoctorID
FirstName
LastName
Address
Phone_Num

Employment_Type
Ward_ID
Specialization
PatientDetails
PatientID
FirstName
LastName
Address
Phone_Num
Age
Height
Weight
Blood_Grp
Admit_Date
Discharge_Date
TreatmentType
DoctorID
Ward_ID
Bed_ID
Payments
PaymentID
PatientID
PaymentDate
PaymentMethod
PaymentMethodID
CC_Num
Check_Num
AdvancePayment
FinalPayment
PaymentStatus

NIIT Cần Thơ Page 17
NEWHOPE HOSPITAL
MedicalHistory
RecordID
PatientID
DoctorID
Disease
OriginalWard
DischargeWard
Treatment
DoctorID
PatientID
TreatmentType
Specialization
WardDetails
WardID
WardName
Total_Beds
Ward_Charge
Avail_Beds
NIIT Cần Thơ Page 18
NEWHOPE HOSPITAL
TABLES AFTER 3 NF
NIIT Cần Thơ Page 19
NEWHOPE HOSPITAL
In Payments table, the attribute CC_Num, Check_Num depends on PaymentMethodID
and not on PaymentID. Therefore, for the tables to be in 3NF, we need to create another
table, PaymentMethod. The updated table structures are shown here.
DoctorDetails
DoctorID

FirstName
LastName
Address
Phone_Num
Employment_Type
Ward_ID
Specialization
PatientDetails
PatientID
FirstName
LastName
Address
Phone_Num
Age
Height
Weight
Blood_Grp
Admit_Date
Discharge_Date
TreatmentType
DoctorID
Ward_ID
Bed_ID
Payments
PaymentID
PatientID
PaymentDate
AdvancePayment
FinalPayment
PaymentStatus

PaymentMethod
PaymentMethodID
NIIT Cần Thơ Page 20
NEWHOPE HOSPITAL
NIIT Cần Thơ Page 21
NEWHOPE HOSPITAL
PRIMARY KEY AND FOREIGN KEYS
1/ DoctorDetails
Primary Key: DoctorID
Foreign Key: Ward_ID
2/PatientDetails
Primary Key: PatientID
Foreign Key: DoctorID, Ward_ID
3/ WardDetails
Primary Key: Ward_ID
4/ MedicalHistory
Primary Key: RecordID
Foreign Key: PatientID, DoctorID
5/ Payments
Primary Key: PaymentID
Foreign Key: PatientID, PaymentMethodID
6/ Treatment
Primary Key: DoctorID
Foreign Key: PatientID
7/ PaymentMethod
Primary Key: PaymentMethodID
NIIT Cần Thơ Page 22
NEWHOPE HOSPITAL
RELATIONSHIP BETWEEN FINAL TABLE
NIIT Cần Thơ Page 23

NEWHOPE HOSPITAL

























NIIT Cần Thơ Page 24
NEWHOPE HOSPITAL


























NIIT Cần Thơ Page 25

×