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’, ‘E08.22’, ‘Diabetes mellitus due to an underlying condition with diabetic kidney disease’, 1)
INSERT INTO DIAGNOSIS (DIAGNOSISID, PATIENTID, DIAGNOSISDATE, ICD10CODE, DIAGNOSIS, DOCTORID) VALUES (2, 1, ‘05/17/2012’, ‘E09.52’, ‘Payment or chemical induced diabetes mellitus’, 3)
INSERT INTO DIAGNOSIS (DIAGNOSISID, PATIENTID, DIAGNOSISDATE, ICD10CODE, DIAGNOSIS, DOCTORID) VALUES (3, 2, ‘02/18/2012’, ‘E08.22’, ‘Diabetes mellitus due to an underlying condition with diabetic kidney disease’, 2)
INSERT INTO DIAGNOSIS (DIAGNOSISID, PATIENTID, DIAGNOSISDATE, ICD10CODE, DIAGNOSIS, DOCTORID) VALUES (4, 2, ‘09/01/2012’, ‘E11.41’, ‘Type 2 diabetes mellitus with diabetic mononeuropathy’, 4)
Doctor
INSERT INTO DOCTOR (DOCTORID, DOCTORNUM, SPECIALTY, FIRSTNAME, MIDNAME, LASTNAME, ADDRESS1, ADDRESS2, CITY, STATE, ZIP) VALUES (1, ‘088012444242119’, ‘General Practitioner’, ‘Ben’, ‘Franklin’, ‘Smith’, ‘911 Elm’, ‘Suite 201’, ‘Mayberry’, &l...
👀 Other Visitors are Viewing These APA Essay Samples:
-
Professionalism and Social Media Essay
2 pages/≈550 words | 3 Sources | APA | Health, Medicine, Nursing | Essay |
-
Approaches of Nursing Leaders and Managers Concerning Floating
4 pages/≈1100 words | 4 Sources | APA | Health, Medicine, Nursing | Essay |
-
Nursing Class Design Grand Canyon University
2 pages/≈550 words | 1 Source | APA | Health, Medicine, Nursing | Essay |