Designing a Database Schema for Healthcare
Design a database schema for a health care system project with goals and objectives to include in the proposal
If no access to ER modeling software or a diagramming tool like Visio or OmniGraffle, can simply create diagrams in a presentation tool like PowerPoint.
Part 1: Diagram
Identify and list all relevant entities and their relationships. Include the following:
1. Select no less than five entities.
2. Provide a diagram.
3. Map this to a database schema.
4. Provide a data dictionary for all entity attributes.
Part 2: Discussion
Include the following discussion with the diagram:
1. Identify one or two areas of the design that seemed especially difficult to develop.
2. What difficulty did you encounter in modeling or mapping to the schema?
2. Based on project needs and the schema, discuss hosting considerations.
3. Discuss the required resources and estimated budget for the project.
Database Schema
Author Name
Institution Affiliation
Entities
All of the tables/entities have been associated with several relations and are purely based on the E-R Diagram. The attributes of these tables/entities are precisely shown in the table below.
Entities
Attributes
Doctor
D_Name, D_Ssn, Gender, Age, Position, Phone, Address, Office, City, Zip
Diagnosis
Diagnosis_Id, Category
Patient
P_Name, P_Ssn, Gender, Age, Position, Phone, Address, Office, City, Zip
Invoice
Invoice_Num, Amount, Invoice_Date, Due_Date
Medicine
MInventory_Id, M_Name, Manufacturer, Price, Quantity, Exp_Date
Payment
Invoice_Num, PayTrans_Num, Pay_Method, Pay_Status, Paid_Date
Prescription
Prescription_Id, Medicine_Quantity
ER-Diagram
Mapping on a Database Schema
Depending on certain functional dependencies of these relations, the mapping can be done by normalizing the relations and then converting the E-R model into a relational model. Here, we have shown it precisely.
Doctor (D_Ssn, D_Name, Gender, Age, Position, Office, Phone, Address, City, Zip)
Patient (D_Ssn, P_Ssn, P_Name, Gender, Age, Position, Phone, Address, City, Zip)
Invoice (P_Ssn, Invoice_Num, CPT_Id, Diagnosis_Id, Prescription_Id, Amount, Invoice_Date, Due_Date)
Payment (Invoice_Num, PayTrans_Num, Pay_Method, Pay_Status, Paid_Date)
Diagnosis (Diagnosis_Id, Category)
Prescription and Medicine (Prescription_Id, Med_Quantity)
(MedInventory_Id, Med_Name, Manufacturer, Price, Quantity, Exp_Date)
A Data Dictionary for All Entity Attributes
The data dictionary is as follows.
Patient
CREATE TABLE [dbo].[Patient] (
PatientID [int] IDENTITY (1, 1) NOT NULL,
FirstName [varchar] (50) NOT NULL,
MidName [varchar] (50) NULL,
LastName [varchar] (50) NOT NULL,
Address1 [varchar] (100) NOT NULL,
Address2 [varchar] (100) NULL,
City [varchar] (100) NOT NULL,
State [varchar] (2) NOT NULL,
Zip [varchar] (5) NOT NULL,
Constraint [PK_Patient1] PRIMARY KEY CLUSTERED
([PatientID] ASC))
INSERT INTO PATIENT (PATIENTID, FIRSTNAME, MIDNAME, LASTNAME, ADDRESS1, ADDRESS2, CITY, STATE, ZIP) VALUES (1, ‘June’, ‘Cleaver’, ‘201 E. Oak’, ‘’, ‘Mayberry’, ‘VA’, 85201)
INSERT INTO PATIENT (PATIENTID, FIRSTNAME, MIDNAME, LASTNAME, ADDRESS1, ADDRESS2, CITY, STATE, ZIP) VALUES (2, ‘Ward’, ‘Cleaver’, ‘201 E. Oak’, ‘’, ‘Mayberry’, ‘VA’, 85201)
INSERT INTO PATIENT (PATIENTID, FIRSTNAME, MIDNAME, LASTNAME, ADDRESS1, ADDRESS2, CITY, STATE, ZIP) VALUES (3, ‘Beaver’, ‘Cleaver’, ‘201 E. Oak’, ‘’, ‘Mayberry’, ‘VA’, 85201)
INSERT INTO PATIENT (PATIENTID, FIRSTNAME, MIDNAME, LASTNAME, ADDRESS1, ADDRESS2, CITY, STATE, ZIP) VALUES (4, ‘Wally’, ‘Cleaver’, ‘201 E. Oak’, ‘’, ‘Mayberry’, ‘VA’, 85201)
Diagnosis
INSERT INTO DIAGNOSIS (DIAGNOSISID, PATIENTID, DIAGNOSISDATE, ICD10CODE, DIAGNOSIS, DOCTORID) VALUES (1, 1, ‘05/07/2012’, &lsqu...
π Other Visitors are Viewing These APA Essay Samples:
- Health & Medicine: Tourette Syndrome Research Assignment2 pages/β550 words | 4 Sources | APA | Health, Medicine, Nursing | Essay |
- Waste Diary. Waste generated. Health, Medicine, Nursing Essay2 pages/β550 words | No Sources | APA | Health, Medicine, Nursing | Essay |
- Innovation to Improve Adherence6 pages/β1650 words | 7 Sources | APA | Health, Medicine, Nursing | Essay |
- Describe the Role of School Nurse in Obesity Prevention1 page/β275 words | 3 Sources | APA | Health, Medicine, Nursing | Essay |
- Health Care Delivery Systems Similarity and Differences4 pages/β1100 words | 2 Sources | APA | Health, Medicine, Nursing | Essay |
- Research Critique, Part 2: Application of the Antiretroviral Medication3 pages/β825 words | 3 Sources | APA | Health, Medicine, Nursing | Essay |
- Prescriptive authority and DEA registration. Nursing Essay1 page/β275 words | 5 Sources | APA | Health, Medicine, Nursing | Essay |