Tanish28 commited on
Commit
8083d4b
·
verified ·
1 Parent(s): ef28e79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +53 -74
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
- # PATIENT ADMISSION FORM
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
- ### BASIC INFORMATION
54
- * Date & Time of Admission: [DD/MM/YYYY]
55
- * Date of Birth: [DD/MM/YYYY]
56
-
57
- ### IDENTIFICATION
58
- **ID Proof Already Registered**: □ Yes □ No
59
-
60
- **Type of ID**:
61
- * Aadhar
62
- * □ Passport
63
- * Voter ID
64
- * □ Driving License
65
- * □ Others
66
-
67
- ID No.: ________________
68
- Contact No.: ________________
69
-
70
- ### MEDICAL DETAILS
71
- * Provisional Diagnosis:
72
- * Reason for Admission:
73
- * Plan of Care:
74
- * Expected Outcome*:
75
-
76
- ### CONSULTANT DETAILS
77
- * Primary Consultant Name:
78
- * Speciality:
79
-
80
- ### PATIENT REFERENCE INFORMATION
81
- *(To be filled by Front Office)*
82
-
83
- **Reference Via**:
84
- * Doctor
85
- * □ Hospital
86
- * □ Ambulance
87
- * □ DRKMH Employee
88
- * Self / Walk In
89
-
90
- **Referrer Details**:
91
- * Name: ________________
92
- * Contact No.: ________________
93
-
94
- ### TYPE OF ADMISSION
95
- * Emergency
96
- * Elective
97
- * MLC
98
- * Surgery
99
- * Medical
100
- * □ Others: ________________
101
-
102
- ### TREATMENT TYPE
103
- * In Patient
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
  {