rdsd assignment

31
RDSD Wellmeadows Database System 29/11/2011 Table of Contents Acknowledgement......................................................................2 Introduction.........................................................................2 Company Introduction.................................................................3 ERD Assumption.......................................................................3 ERD Diagram..........................................................................4 Relational Schema....................................................................5 Forms................................................................................6 Ward Form..........................................................................6 Patients...........................................................................7 In-Patients........................................................................8 Out-Patients.......................................................................9 Doctor............................................................................10 Appointment.......................................................................11 Schedule..........................................................................12 Queries.............................................................................13 All Patients Admitted.............................................................13 In-Patients in a particular Ward..................................................14 Scheduled Out-Patient’s Appointments..............................................15 Search by Doctor’s Specialty......................................................16 Search for an available bed in a Ward.............................................17 Reports.............................................................................18 All Patients Admitted.............................................................18 In-Patients in a particular Ward..................................................19 Out-Patients Scheduled Appointments...............................................20 System Navigation...................................................................21 Macros............................................................................21 Main Menu.........................................................................21 Table Menu........................................................................22 Forms Menu........................................................................23 Queries Menu......................................................................24 Reports Menu......................................................................25 Conclusion..........................................................................26 1

Upload: mohamed-a-abdelmoneim

Post on 25-Aug-2014

163 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: RDSD Assignment

RDSD Wellmeadows Database System 29/11/2011

Table of ContentsAcknowledgement...........................................................................................................................................................................2

Introduction..................................................................................................................................................................................... 2

Company Introduction.....................................................................................................................................................................3

ERD Assumption...............................................................................................................................................................................3

ERD Diagram.................................................................................................................................................................................... 4

Relational Schema............................................................................................................................................................................5

Forms............................................................................................................................................................................................... 6

Ward Form.................................................................................................................................................................................. 6

Patients....................................................................................................................................................................................... 7

In-Patients................................................................................................................................................................................... 8

Out-Patients................................................................................................................................................................................9

Doctor....................................................................................................................................................................................... 10

Appointment.............................................................................................................................................................................11

Schedule....................................................................................................................................................................................12

Queries..........................................................................................................................................................................................13

All Patients Admitted................................................................................................................................................................13

In-Patients in a particular Ward................................................................................................................................................14

Scheduled Out-Patient’s Appointments....................................................................................................................................15

Search by Doctor’s Specialty.....................................................................................................................................................16

Search for an available bed in a Ward.......................................................................................................................................17

Reports.......................................................................................................................................................................................... 18

All Patients Admitted................................................................................................................................................................18

In-Patients in a particular Ward................................................................................................................................................19

Out-Patients Scheduled Appointments.....................................................................................................................................20

System Navigation.........................................................................................................................................................................21

Macros...................................................................................................................................................................................... 21

Main Menu................................................................................................................................................................................21

Table Menu...............................................................................................................................................................................22

Forms Menu..............................................................................................................................................................................23

Queries Menu...........................................................................................................................................................................24

Reports Menu...........................................................................................................................................................................25

Conclusion.....................................................................................................................................................................................26

References.....................................................................................................................................................................................27

1

Page 2: RDSD Assignment

RDSD Wellmeadows Database System 29/11/2011

AcknowledgementThis project would not be approve and complete without the guidance and help of the people who

contribute and extend their valuable assistance in the preparation and completion of this project.

Especially my utmost gratitude goes to Mr. Abdallah S.M. AlNatsha and Hasbullah Bin Osman. Whose

excellent expression and sincerity helped us and guided us throughout the assignment. During the

preparation through issues and scenarios which discussed in the class really inspire us and we are deeply

attracted by the class.

Many people have helped us with this project. I am very grateful for all the people and of course authors

of books which I have read during the research section. I really appreciate their cooperating and time.

This is a wonderful and valuable subject which Designed by Asia Pacific University College of Technology

& Innovation and Staffordshire University. Through this subject I gain both knowledge and developing

experience database and implantation. My sincerity thanks to Asia Pacific University College of

Technology & Innovation and Staffordshire University providing such a good module for me.

IntroductionSince this assignment was issued to us to solve the problem which faced by Wellmeadows Hospital to

create a system that will help them manage their Information. Information such as Patient’s details,

Doctor’s details, Appointment Information, Ward Information and Doctor’s schedule.. Besides, we need

to form in a group to go through the assignment. Not only that, we need to design and implement a

prototype solution to the Wellmeadows Hospital. By using the specific tools which is Microsoft Access to

solve the problems face by the Hospital.

To get done with the problems, we need to handle what is the difficulty that they are having. Of course,

the problems must be clearly stated; otherwise we cannot help the Hospital to solve their problems.

After that we need to start up to create a system which easy for user such as it enable store the privacy

data in specific table, creating required report to fulfill Hospital needs and preparing an interface for

user to get into the system and so on.

Fulfilling Wellmeadows Hospital is our aims, therefore once we create the system we need to take their

needs as consider. A system which failed to meet user requirement even it is advance, it still out of user

‘needs.

2

Page 3: RDSD Assignment

RDSD Wellmeadows Database System 29/11/2011

Company Introduction

The Wellmeadows Hospital has 240 beds, acute care, general medical and surgical hospital whose

mission is to provide high quality standard healthcare that will meet the needs and exceed the

expectations of the patients.

The Wellmeadows Hospital was therefore planned, designed, built and equipped to meet the Standards

of the healthcare system. Wellmeadows Hospital operates to these standards, every day, in everything

they do for the patients. All of their physicians who are credentialed at their hospital are North

American Board Certified or of equivalent Western training programs, such as those in United States,

Canada and the United Kingdom. They have the expertise to fulfill the patient’s medical requirements in

comfortable and reassuring surroundings.

ERD Assumption

In-Patients are treated into a single Ward by Doctors that are assigned to them. Usually each patient will

be assigned a single Doctor. Patients make Appointments and an Appointment is assigned to a particular

Patient. Doctors are assigned to a particular Ward. Patients can be Out-Patients or Out-Patients. Doctors

have Appointments in their schedules.

3

Page 4: RDSD Assignment

RDSD Wellmeadows Database System 29/11/2011

ERD Diagram

An ERD Diagram is also called an entity-relationship model, a graphical representation of entities and

their relationships to each other, typically used in computing in regard to the organization of data within

databases or information systems. An entity is a piece of data-an object or concept about which data is

stored. A relationship is how the data is shared between entities. There are three types of relationships

between entities; One-to- One, One-to-Many and Many-to- Many.

4

Page 5: RDSD Assignment

RDSD Wellmeadows Database System 29/11/2011

Relational Schema

5

Page 6: RDSD Assignment

RDSD Wellmeadows Database System 29/11/2011

Forms

Ward Form

The Ward Form was created in order for the person in the front desk to check all the different types of

wards there and their related information. The Ward Form also shows all the patients inside the specific

ward. Users are able to go to the Main Menu, Back or Quit the Application.

Patients

6

Page 7: RDSD Assignment

RDSD Wellmeadows Database System 29/11/2011

The Patients Form was created in order for the person in the front desk to check all the Patients and all

their related information. Users can add Patients in the system and update their information when

needed. The Patients Form also shows all the patients with their person of kin. Users are able to add,

save, and update patients. Also users can go to the Main Menu, Back, close form or quit the Application.

In-Patients

7

Page 8: RDSD Assignment

RDSD Wellmeadows Database System 29/11/2011

The In-Patients Form was created in order for the person in the front desk to check all the In-Patients

and all their related information. Users can add In-Patients in the system and update their information

when needed. The In-Patients Form also shows all the In-Patients with their person of kin. Users are able

to add, save, and update In-Patients. Also users can go to the Main Menu, Back, close form or quit the

Application.

Out-Patients

8

Page 9: RDSD Assignment

RDSD Wellmeadows Database System 29/11/2011

The Out-Patients Form was created in order for the person in the front desk to check all the Out-Patients

and all their related information. Users can add Out-Patients in the system and update their information

when needed. The Out-Patients Form also shows all the Out-Patients with their person of kin. Users are

able to add, save, and update Out-Patients. Also users can go to the Main Menu, Back, close form or quit

the Application.

Doctor

9

Page 10: RDSD Assignment

RDSD Wellmeadows Database System 29/11/2011

The Doctor Form was created in order for the person in the front desk to check all the Doctors and all

their related information. Users can add Doctors in the system and update their information when

needed. The Doctor Form also shows all the Doctors with their scheduled Appointments. Users are able

to add, save, and update Doctors. Also users can go to the Main Menu, Back, close form or quit the

Application.

Appointment

10

Page 11: RDSD Assignment

RDSD Wellmeadows Database System 29/11/2011

The Appointment Form was created in order for the person in the front desk to check all the

Appointments and all their related information. Users can add Appointments in the system and update

their information when needed. The Appointment Form also shows all the Appointments with the

related Patient. Users are able to add, save, and update Doctors. Also users can go to the Main Menu,

Back, close form or quit the Application.

Schedule

11

Page 12: RDSD Assignment

RDSD Wellmeadows Database System 29/11/2011

The Schedule Form was created in order for the person in the front desk to check all the Schedules and

all their related information. Users can add Doctor’s Scheduled Appointments in the system and update

their information when needed. The Schedule Form also shows the entire Doctor’s Scheduled

Appointments with the related Patient’s name. Users are able to add, save, and update Doctors. Also

users can go to the Main Menu, Back, close form or quit the Application.

Queries

All Patients Admitted

The All Patients Admitted Query was created in order to show all the Patients admitted into

Wellmeadows Hospital. Users can view all patients admitted and it is automatically updated into the

12

Page 13: RDSD Assignment

RDSD Wellmeadows Database System 29/11/2011

system. The All Patients Admitted Query also shows the entire Patients details with the related

information.

SQL Statement

SELECT Patient.Patient_ID, Patient.F_Name, Patient.L_Name, Patient.Address, Patient.[H/P_No],

Patient.DOB, Patient.Gender, Patient.Martial_Status, Patient.Date_Registered, Patient.[Kin_H/P_No]

FROM Patient;

In-Patients in a particular Ward

The Following Query usually asks for the desired Ward which in this case is from W01-W16

13

Page 14: RDSD Assignment

RDSD Wellmeadows Database System 29/11/2011

The Patients in a particular Ward Query was created in order to show all the Patients admitted into a

specific Ward. Users can view In-Patients in a particular Ward and it is automatically updated into the

system. The In-Patients in a particular Ward Query also shows the entire In-Patients details with the

related information.

SQL Statement

SELECT Ward.Ward_No, [In-Patient].Patient_ID, Patient.F_Name, Patient.L_Name, Patient.[H/P_No],

Patient.DOB, Patient.Gender, Patient.Date_Registered

FROM Ward INNER JOIN (Patient INNER JOIN [In-Patient] ON Patient.Patient_ID = [In-

Patient].Patient_ID) ON Ward.Ward_No = [In-Patient].Ward_No

WHERE (((Ward.Ward_No)=[Please Key-in the Desired Ward Number]));

Scheduled Out-Patient’s Appointments

The Scheduled Out-Patient’s Appointments Query was created in order to show all the Out-Patients

having Appointments. Users can view Out-Patients having Appointments and it is automatically updated

into the system. The Scheduled Out-Patient’s Appointments Ward Query also shows the entire Out-

Patients details with the related information.

14

Page 15: RDSD Assignment

RDSD Wellmeadows Database System 29/11/2011

SQL Statement

SELECT [Out-Patient].Patient_ID, Patient.F_Name, Patient.L_Name, Patient.[H/P_No], Patient.Address,

Appointment.Appointment_ID, Appointment.Appointment_Time, Appointment.Appointment_Date,

[Out-Patient].Location

FROM Patient INNER JOIN (Appointment INNER JOIN [Out-Patient] ON Appointment.Appointment_ID =

[Out-Patient].Appointment_ID) ON (Patient.Patient_ID = [Out-Patient].Patient_ID) AND

(Patient.Patient_ID = Appointment.Patient_ID);

Search by Doctor’s Specialty

The Following Query usually asks for the desired Doctors Specialty for example Genetics.

15

Page 16: RDSD Assignment

RDSD Wellmeadows Database System 29/11/2011

The Search by Doctor’s Specialty Query was created in order to show the entire Doctor’s Specialty

database. Users can view Doctor’s Specialty and it is automatically updated into the system. The Search

by Doctor’s Specialty Ward Query also shows the entire Doctor’s details with the related information.

SQL Statement

SELECT Doctor.Doctor_ID, Doctor.Doctor_F_Name, Doctor.Doctor_L_Name, Doctor.Doctor_Ext_No,

Doctor.Doctor_Staff_No, Doctor.Speciality

FROM Doctor

WHERE (((Doctor.Speciality)=[Please Key-in the desired Doctor's Speciality]));

Search for an available bed in a Ward

The Following Query usually asks for the desired Ward which in this case is from W01-W16

16

Page 17: RDSD Assignment

RDSD Wellmeadows Database System 29/11/2011

The Search for an available bed in a Ward Query was created in order to show all the all the beds

available in a specific Ward. Users can view available beds in a particular Ward and it is automatically

updated into the system. The Search for an available bed in a Ward Query also shows the entire

available bed details with the related information.

SQL Statement

SELECT Ward.Ward_No, Count([In-Patient].Ward_No) AS Bed_Used, 15-[Bed_Used] AS Bed_Available,

Ward.No_of_Beds

FROM Ward INNER JOIN [In-Patient] ON Ward.Ward_No=[In-Patient].Ward_No

GROUP BY Ward.Ward_No, Ward.No_of_Beds

HAVING (((Ward.Ward_No)=[Please key-in a Ward Number in between "W01 - W16"]));

17

Page 18: RDSD Assignment

RDSD Wellmeadows Database System 29/11/2011

Reports

All Patients Admitted

The All Patients Admitted Report was created in order to show all the Patients admitted into

Wellmeadows Hospital. Users can view all patients admitted and it is automatically updated into the

system. The All Patients Admitted Report also shows the entire Patients details with the related

information.

18

Page 19: RDSD Assignment

RDSD Wellmeadows Database System 29/11/2011

In-Patients in a particular Ward

The Patients in a particular Ward Report was created in order to show all the Patients admitted into a

specific Ward. Users can view In-Patients in a particular Ward and it is automatically updated into the

system. The In-Patients in a particular Ward Report also shows the entire In-Patients details with the

related information.

19

Page 20: RDSD Assignment

RDSD Wellmeadows Database System 29/11/2011

Out-Patients Scheduled Appointments

The Scheduled Out-Patient’s Appointments Report was created in order to show all the Out-Patients

having Appointments. Users can view Out-Patients having Appointments and it is automatically updated

into the system. The Scheduled Out-Patient’s Appointments Ward Report also shows the entire Out-

Patients details with the related information.

20

Page 21: RDSD Assignment

RDSD Wellmeadows Database System 29/11/2011

System Navigation

The System has a Menu that helps the user to navigate from one page to another and it is organized

with different tabs and user can go to a specific page and then go back.

Macros

Main Menu

The Main Menu is there to help user navigate between Queries, Reports, Forms and Tables.

21

Page 22: RDSD Assignment

RDSD Wellmeadows Database System 29/11/2011

Table Menu

The Table Menu is there to help users to navigate into the different tables for read-only purposes

22

Page 23: RDSD Assignment

RDSD Wellmeadows Database System 29/11/2011

Forms Menu

The Forms Menu helps users navigate into the different forms to input data.

23

Page 24: RDSD Assignment

RDSD Wellmeadows Database System 29/11/2011

Queries Menu

The Queries Table is there to show the user the different queries available within the system.

24

Page 25: RDSD Assignment

RDSD Wellmeadows Database System 29/11/2011

Reports Menu

The Reports Menu is there to help users navigate into different reports.

25

Page 26: RDSD Assignment

RDSD Wellmeadows Database System 29/11/2011

Conclusion

As a conclusion, this assignment is really challenging for us as it need more knowledge about Microsoft

Access to solve all the problems we faced while doing the assignment. After done this assignment, we

feel that we really improve our knowledge about Access and enable to fulfill the requirement of the

assignment.

Surely, we have much difficulty when running out the assignment, but with the cooperation and

teamwork within the members, eventually the assignment was done peaceful. Even though, gathering

together to do assignment is hard to us as we are living at the different location and far with each

other’s, but we tried to spend some time to meet up for discussion and brainstorming to strengthen the

quality of the assignment.

26

Page 27: RDSD Assignment

RDSD Wellmeadows Database System 29/11/2011

References

1. SAUTER, V., (2000), Entity Relationship Diagram (ERD) [online], University of Missouri, Available

from: http://www.umsl.edu/~sauterv/analysis/er/er_intro.html, [Accessed 20th November

2011].

2. WEBOPEDIA, (2011), entity relationship diagram [online], Webopedia, Available from:

http://www.webopedia.com/TERM/E/entity_relationship_diagram.html, [Accessed 27th

November 2011].

27