INSERT PATIENT RECORD DATA

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

DATABASE SQL

CREATE TABLE PATIENT_RECORD(RECORD_ID INT PRIMARY KEY,PATIENT_ID INT NOT NULL,TREAT_ID INT NOT NULL,MED_ID INT NOT NULL,QUANTITY_MED VARCHAR(64) NOT NULL,DATE DATE,COMPLAINT TEXT NOT NULL,MEDICAL_FINDINGS TEXT NOT NULL,DOC_INCHARGE VARCHAR(64) NOT NULL,FOREIGN KEY(PATIENT_ID)REFERENCES PATIENT(PATIENT_ID),FOREIGN KEY(TREAT_ID)REFERENCES TREATMENT(TREAT_ID),FOREIGN KEY(MED_ID) REFERENCES MEDICINE(MED_ID));

INSERT PATIENT RECORD DATA

 

RECORD_ID

PATIENT_ID

TREAT_ID

MED_ID

QUANTITY_MED

DATE

COMPLAINT

MEDICAL_FINDINGS

DOC_INCHARGE

100

01

1003

232 

10mg

2020-12-10

Food allergy

Patient allergic to seafood

Joseph Liam

101

01

1002

234

10mg

2020-12-10

High Blood Test

The blood test result is high and abnormal

Nurhidayat Bin Anuar 

102

02

1003

233

10mg 

2020-12-10

Cough

Productive cough. Yellow mucus detected

Joseph Liam

103

03

1002

235

100mg

2020-12-10

Chest pain and nausea

Patient  suffer from high cholesterol

Nurhidayat Bin Anuar 

104

04

1002

235

100mg

2020-12-10

Headache and irregular heartbeat

Patient blood pressure high and abnormal

Nurhidayat Bin Anuar 

105

05

1004

238

500mg

2020-12-11

Minor burns on left arm

 

Second degree burns on patient's left arm

Aiden Benjamin Poon 

106

06

1003

231

500mg

2020-12-11

Headache and flu

Patient body temperature high 

Joseph Liam

107

07

1002

234 

10mg 

2020-12-11

Experienced chest pain and nausea

Patient blood pressure and pulse rate are abnormal

Nurhidayat Bin Anuar 

108

08

1002

236

40mg

2020-12-11

Experienced chest pain and nausea

Patient cholesterol level is high and abnormal

Nurhidayat Bin Anuar 

109

09

1003

237

120 doses

2020-12-11

Shortness of breath and coughing

Patient have asthma attack

  Joseph Liam

110

09

1003

244

24 tablets

2020-12-11

Watery eyes, itching and hives

Patient have allergy reaction to bee stings

Joseph Liam

111

10

1002

235

100mg

2020-12-12

Chest pain and nausea

Patient  suffer from high cholesterol

Nurhidayat Bin Anuar 

112

11

1004

239

200mg

2020-12-12

Pain and swelling on right hand

First degree burn on patient’s right hand

Aiden Benjamin Poon 

113

12

1002

241

850mg

2020-12-12

Massive headache and nausea

Blood pressure is high and low sugar level

Nurhidayat Bin Anuar

114

13

1002

242

500mg

2020-12-12

Sudden increased of thirst,hunger and urination

Patient suspected to suffer  diabetes 

Nurhidayat Bin Anuar

115

13

1003

233

10mg

2020-12-12

Cold and cough

Patient  suffer from severe cold and cough

Joseph Liam

116

02

1003

243

500mg

2020-12-13

Massive headache and nausea

Patient suffer from migraine

Joseph Liam

117

03

1004

240

200mg

2020-12-13

Severe pain on index finger

Small glass fragments detected on patient finger

Aiden Benjamin Poon  

118

05

1002

234

10mg

2020-12-13

Severe headache and chest pain

Patient blood pressure is high and abnormal

Nurhidayat Bin Anuar

119

02

1003

232

10mg

2020-12-13

Sneezing and watery eyes

Patient suffer from pollen allergy

Joseph Liam

120

06 

1002

235

100mg

2020-12-13

Massive headache

Patient blood pressure is high and abnormal

Nurhidayat Bin Anuar

ATTRIBUTES
RECORD_ID
DESCRIPTION
DATA TYPE LENGTH CONSTRAINT
Store the patient
INT
11
Primary Key
record ID number
• Required attribute
• Store the patient ID
PATIENT_ID
INT
11
Foreign Key
number
• Required attribute
• Store the patient
TREAT_ID
INT
11
Foreign Key
treatment ID
number
• Required attribute
• Store the medicine
MED_ID
INT
11
Foreign Key
ID of the patient
• Required attribute
• Store the quantity of
MED QUANTITY
INT
11
Foreign Key
medicine received
by the patient
DATE
• Store the date of
DATE
Not NULL
patient check-up
COMPLAINT
• Store the complaint
TEXT
Not NULL
from the patient
• Multivalued attribute
MEDICAL_FINDINGS
Store the medical
TEXT
Not NULL
findings of the
patient
• Multivalued attribute
• Store the name of
DOC_INCHARGE
VARCHAR
64
Not NULL
the doctor in
charged for the
patient
Transcribed Image Text:ATTRIBUTES RECORD_ID DESCRIPTION DATA TYPE LENGTH CONSTRAINT Store the patient INT 11 Primary Key record ID number • Required attribute • Store the patient ID PATIENT_ID INT 11 Foreign Key number • Required attribute • Store the patient TREAT_ID INT 11 Foreign Key treatment ID number • Required attribute • Store the medicine MED_ID INT 11 Foreign Key ID of the patient • Required attribute • Store the quantity of MED QUANTITY INT 11 Foreign Key medicine received by the patient DATE • Store the date of DATE Not NULL patient check-up COMPLAINT • Store the complaint TEXT Not NULL from the patient • Multivalued attribute MEDICAL_FINDINGS Store the medical TEXT Not NULL findings of the patient • Multivalued attribute • Store the name of DOC_INCHARGE VARCHAR 64 Not NULL the doctor in charged for the patient
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY