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 |


Step by step
Solved in 3 steps









