Presentation is loading. Please wait.

Presentation is loading. Please wait.

Hospital Application Want to create a database for all hospitals in a region. In conferring with the client we find them talking about the individual hospitals.

Similar presentations


Presentation on theme: "Hospital Application Want to create a database for all hospitals in a region. In conferring with the client we find them talking about the individual hospitals."— Presentation transcript:

1 Hospital Application Want to create a database for all hospitals in a region. In conferring with the client we find them talking about the individual hospitals and wanting to keep track of Patients, equipment, room assignments, Staff (doctors nurses, maintenance, etc).

2 Hospital Application From this database one should be able to locate patients or equipment; produce reports on staff, rooms, equipment, patient, diagnosis information, etc.

3 Hospital Application Some conditions: Patient must be assigned a room outpatients will have room no for OP area Every room must be associated with a hospital. Each piece of equipment must be assigned a room. Each staff member must be assigned to a hospital. A doctor is a staff member and a diagnosis must be associated with a doctor. Patient must be assigned a room, if diagnosed must be associated with a doctor. Staff must be associated with a hospital

4 Hospital Rooms Equipment Persons Staff Doctors Patients

5 Hospital Hospital numberInteger(3 digit)Primary Key NameCharacter (20) AddressCharacter (20) CapacityInteger (4 digit)

6 Rooms Hospital NumberInteger (3 digit)Primary Key Room NumberInteger (3 digit)Primary Key TypeCharacter (10) Number of bedsInteger (2 digit) Hospital number must be in hospital

7 Equipment Serial NumberCharacter (8)Primary Key DescriptionCharacter (20) CostMoney Must be assigned to a room which is currently in the database

8 Persons SIN NumberCharacter (9)Primary Key NameCharacter (20) AddressCharacter (30) BirthdateDate8 Assign to a hospital.

9 Doctors Doctor NumberIntegerPrimary Key SpecialtyCharacter (10) Is a person must be in person file diagnosis patients

10 Patients Date admittedDate Date exitedDate Is a person must be in Persons list must be assigned a room (outpatient will have a room number) Diagnosed by a doctor - not required if diagnosed (date, doctor, diagnosis)

11 Staff Class typeCharacter (2) Must be in person Must be assigned to a hospital

12 Hospital Rooms Equipment Persons Staff Doctors Patients Is a Is a Is a has have In diagnose hire Date diag

13 Hospital Rooms Equipment Persons Staff Doctors Patients Is a Is a Is a has have In diagnose 1 N 1 N N M N M 1 1 1 1 1 N Hires 1 N Date diag

14 Hospital Rooms Equipment Persons Staff Doctors Patients Is a Is a Is a has have In diagnose 1:1 3:N 1:1 0:N 1:N 0:M N M 1:1 0:1 0:N Rooms Hires 0:1 1:M Date diag

15 Hospital Rooms Equipment Persons Staff Doctors Patients has have In diagnose 1:1 3:N 1:1 0:N 1:N 0:M N M Rooms {mandatory,Or} Hires 0:1 1:M Date diag


Download ppt "Hospital Application Want to create a database for all hospitals in a region. In conferring with the client we find them talking about the individual hospitals."

Similar presentations


Ads by Google