Sasidhar commited on
Commit
08426ab
1 Parent(s): d965516

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +39 -1
app.py CHANGED
@@ -87,7 +87,45 @@ pipeline_qa = init_qa_pipeline()
87
  st.header("Intelligent Document Automation")
88
 
89
  def get_text_from_ocr_engine():
90
- return "CASE: A 28-year-old previously healthy man presented with a 6-week history of palpitations. The symptoms occurred during rest, 2–3 times per week, lasted up to 30 minutes at a time and were associated with dyspnea. Except for a grade 2/6 holosystolic tricuspid regurgitation murmur (best heard at the left sternal border with inspiratory accentuation), physical examination yielded unremarkable findings."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
 
92
  with st.sidebar:
93
  selected_menu = option_menu("Select Option",
 
87
  st.header("Intelligent Document Automation")
88
 
89
  def get_text_from_ocr_engine():
90
+
91
+ return """18 February2020
92
+ Dr Christine Fowler
93
+ Dear Christine,
94
+ Re: Stephen Parrot
95
+ Stephen is a 53 year old gentleman who does general duties police work. He is married and has an
96
+ 18 year old daughter at home. He is right hand dominant. Cigarettes nil, alcohol rare, allergies nil.
97
+ DVTe nil. Past medical history hyperlipidemia and reflux testicular cancer in 2000 and right knee
98
+ reconstruction in 1987. Medications include Nexium and Crestor.
99
+ History presenting complaint: Right knee and right elbow injuries. On 12 January 2020, while at work
100
+ he was trying to apprehend a stolen vehicle. The deployed some road spikes onto the road. The
101
+ stolen vehicle went over the road spikes. He was attempting to retrieve the spikes to prevent
102
+ damage to civilian and police vehicles and while he was doing that, he was hit by a police vehicle
103
+ coming from behind. The police vehicle was approximately doing 50 km/hr. The headlight of the
104
+ police car stuck him on the lateral aspect of the right knee. He jumped in the air and flicked in the air
105
+ with his right elbow also hitting the police car before he flung over a barrier. He was able to mobilise
106
+ afterwards when the adrenaline was taking effect. After he cooled down that night he developed
107
+ significant pain in both the elbow and the knee. The elbow seemed to have settled with time but he
108
+ has got slight discomfort on the lateral epicondyle of the right elbow but otherwise no instability,
109
+ clicking, locking or catching of the elbow.
110
+ His knee has medial sided pain. It is an annoying type of pain that is present at rear and with activity.
111
+ It feels like it is getting slightly better but his main problem is that he cannot still fully flex his knee as
112
+ he used to do before the accident. He has noticed some clicking ad a little bit of swelling in the knee.
113
+ He has had no instability but he is still a little bit stiff when he first gets up. He has been treated with
114
+ 4 sessions of physiotherapy. He has had two operations on this knee before when it was
115
+ reconstructed which was an open procedure and an anthroscopy later to shave off the cartilage. He
116
+ never got back to playing rugby after his reconstruction but he was able to do martial arts and all his
117
+ policing duties without any problem.
118
+ He is mildly overweight, normal gait and no effusion in the knee and a range of motion of 0 to 110
119
+ degrees which cannot be improved passively. His right elbow has full range of motion and is stable.
120
+ He has had an Xray on right elbow showing no fracture and an xray of knee showed early medial
121
+ compartment osteoarthritis. He has got new clicking in his knee and has been advised to get an MRI
122
+ scan.
123
+ As far as his right elbow is concerned, he should reduce weight lifting activity and any repetitive right
124
+ upper limb activity that causes any discomfort. His right knee requires an MRI scan to look for any
125
+ loose bodies and I will see him with the results of the scan. In the meantime, he can continue with
126
+ his general policing duties which he has anyways been doing since the accident.
127
+ Kind regards,
128
+ Dr Jason Sanders"""
129
 
130
  with st.sidebar:
131
  selected_menu = option_menu("Select Option",