Update app.py
Browse files
app.py
CHANGED
@@ -39,90 +39,69 @@ class PDFTextExtractor:
|
|
39 |
"role": "system",
|
40 |
"content": """You are a doctor at a hospital. You can understand sloppy handwriting and convert it to readable text. Extract all the data from the form according to the markdown structure given below.
|
41 |
Follow this exact markdown structure:
|
42 |
-
#
|
43 |
## DR.KAMAKSHI MEMORIAL HOSPITAL, PALLIKARANAI, CHENNAI.
|
44 |
|
45 |
### PATIENT PROFILE
|
46 |
*Please paste the sticker within the box*
|
47 |
|
48 |
* UHID: ______
|
|
|
49 |
* Patient Name: ______
|
50 |
* Age/Gender: ______
|
51 |
* Doctor Name: ______
|
52 |
|
53 |
-
###
|
54 |
-
*
|
55 |
-
*
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
*
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
*
|
73 |
-
*
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
*
|
85 |
-
* □
|
86 |
-
|
87 |
-
|
88 |
-
*
|
89 |
-
|
90 |
-
|
91 |
-
*
|
92 |
-
*
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
*
|
97 |
-
*
|
98 |
-
*
|
99 |
-
*
|
100 |
-
*
|
101 |
-
|
102 |
-
|
103 |
-
*
|
104 |
-
* □ Day Care
|
105 |
-
* Transfer To: ________________
|
106 |
-
|
107 |
-
### CONTACT DETAILS
|
108 |
-
**Person to Contact (Next of Kin)**:
|
109 |
-
* Name: ________________
|
110 |
-
* Relationship with Patient: ________________
|
111 |
-
* Address: ________________
|
112 |
-
* Pincode: ________________
|
113 |
-
* Mobile: ________________
|
114 |
-
* Email: ________________
|
115 |
-
|
116 |
-
### OFFICIAL USE
|
117 |
-
* Front Office Executive Name:
|
118 |
-
* Front Office Executive Signature:
|
119 |
-
* Advance Amount Paid:
|
120 |
-
* ICD-10 Code (For Medical Records Section):
|
121 |
-
|
122 |
-
*\\* Subject to change during the course of diseases*
|
123 |
-
|
124 |
-
---
|
125 |
-
*Form No: KMHIPF002V3*
|
126 |
"""
|
127 |
},
|
128 |
{
|
|
|
39 |
"role": "system",
|
40 |
"content": """You are a doctor at a hospital. You can understand sloppy handwriting and convert it to readable text. Extract all the data from the form according to the markdown structure given below.
|
41 |
Follow this exact markdown structure:
|
42 |
+
# ER - DOCTORS INITIAL ASSESSMENT FORM
|
43 |
## DR.KAMAKSHI MEMORIAL HOSPITAL, PALLIKARANAI, CHENNAI.
|
44 |
|
45 |
### PATIENT PROFILE
|
46 |
*Please paste the sticker within the box*
|
47 |
|
48 |
* UHID: ______
|
49 |
+
* Date: [DD/MM/YYYY]
|
50 |
* Patient Name: ______
|
51 |
* Age/Gender: ______
|
52 |
* Doctor Name: ______
|
53 |
|
54 |
+
### CASE INFORMATION
|
55 |
+
* MLC: □ No □ Yes, AR No.: ________________
|
56 |
+
* Information Provided By: □ Self □ Care Taker
|
57 |
+
* Ambulation: □ Walking □ Wheelchair □ Stretcher
|
58 |
+
* Triage Code: □ Red □ Orange □ Yellow □ Green □ Blue
|
59 |
+
|
60 |
+
### ALLERGIES / INTOLERANCES
|
61 |
+
* □ Nil Known / □ Yes (See below)
|
62 |
+
* Drug & description of allergy / intolerance: ________________
|
63 |
+
|
64 |
+
### CHIEF COMPLAINTS:
|
65 |
+
________________
|
66 |
+
________________
|
67 |
+
________________
|
68 |
+
|
69 |
+
### ASSESSMENT
|
70 |
+
* Pain Score: ______ □ NRS □ NPRS-R
|
71 |
+
|
72 |
+
### PAST MEDICAL HISTORY:
|
73 |
+
* □ SHTN □ DM □ CAD □ CKD □ STROKE □ ASTHMA □ COPD □ SEIZURE □ HYPOTHYROIDISM
|
74 |
+
* □ OTHERS: ________________
|
75 |
+
|
76 |
+
### PAST SURGERIES:
|
77 |
+
________________
|
78 |
+
________________
|
79 |
+
|
80 |
+
### CURRENT MEDICATIONS:
|
81 |
+
* □ Regular □ Irregular □ Nil □ AYUSH: ________________
|
82 |
+
|
83 |
+
### GENERAL EXAMINATION
|
84 |
+
* Weight: ______ kgs
|
85 |
+
* CBG: ______ mg/dL
|
86 |
+
* □ Pallor □ Icterus □ Cyanosis □ Clubbing □ Lymphadenopathy □ Edema
|
87 |
+
|
88 |
+
### VITALS
|
89 |
+
* Temp: ______ °F
|
90 |
+
* BP: ______/______ mmHg
|
91 |
+
* HR: ______/min
|
92 |
+
* RR: ______/min
|
93 |
+
* SpO₂: ______%
|
94 |
+
* NEWS: ______
|
95 |
+
|
96 |
+
### SYSTEMIC EXAMINATION
|
97 |
+
* RS: ________________
|
98 |
+
* CVS: ________________
|
99 |
+
* P/A: ________________
|
100 |
+
* CNS: ________________
|
101 |
+
* GCS: E____ V____ M____
|
102 |
+
* Local O/E: ________________
|
103 |
+
|
104 |
+
*Form No: KMHPF190V1*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
"""
|
106 |
},
|
107 |
{
|