INSERT PATIENT RECORD DATA
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F91a6c85f-0e14-40d0-84a3-fe5ac729ab5a%2F796215d3-d45a-456f-aeb3-55b7bd39ae78%2Fe33vkvr_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 3 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)