Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
DATABASES DESCRIPTION
1. EMPLOYEE
Description:
This table stores employee details. It has attributes such as calc_date and DOC(date of
commission to store leave dates. From these attributes we can calculate reduced salary for
employee. The attribute Desig_ID tells us about the employees department, job type and
designation.
Primary key: EMP_ID.
Foreign key: DESIG_ID.
2. DEPARTMENT
Description:
This table stores the department names. This table makes the program dynamic as at any
time a new department can be added.
Primary key: NAME
3. JOB_TYPE
Description:
This table stores the job type names such as Doctor, Reception staff etc. This table makes
the program dynamic as at any time a new job type can be added.
Primary key: NAME
4. DESIGNATION
Description:
This table stores the designation names. This table makes the program dynamic as at any
time a new designation can be added.
Primary key: ID,JOB_NAME,DEPT_NAME
Foreign key: JOB_NAME, DEPT_NAME.
5. PATIENT
Description:
This table stores patient details. It has attributes such as blood group etc which are very
important from the treatment point of view.
Primary key: PAT_ID.
6. APPOINTMENT
Description:
This table stores the appointment dates, description and prescription of a patient with
doctors.
Primary key: EMP_ID, PAT_ID, APPT_DATE.
Foreign key: EMP_ID, PAT_ID.
7. BILLS
Description:
This table stores all the paid and unpaid bills of a patient.
Primary key: PAT_ID,ITEM_ID,ITEM_TYPE,DT.
Foreign key: PAT_ID,ITEM_ID.
Attribute Name Null? Type
--------------------------- ---------------- ----------
PAT_ID NOT NULL NUMBER(4)
ITEM_ID NOT NULL NUMBER(4)
ITEM_TYPE NOT NULL CHAR(20)
DT NOT NULL DATE
DESCRIPTION CHAR(25)
CHARGES NUMBER(8)
PAID CHAR(2)
8. ROOMS
Description:
This table stores the details of all the rooms of hospital. The attribute PAT_ID tells about
which patient is in which room and also about the empty rooms.
Primary key: ID.
Foreign key: PAT_ID.
9. ITEMS
Description:
This table stores the details of the items such as Therapies, Medicines etc.
Primary key: ID.