bryanmildort commited on
Commit
b3da830
·
1 Parent(s): c5e5000

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +46 -6
app.py CHANGED
@@ -34,12 +34,52 @@ prompt = """Edie Whelan is a 26 yo female who is here for follow-up following an
34
  PMH: none, Meds: none, Allergies: none, Surgeries: None, Family hx: none
35
  Social: denies caffeine, tobacco, alcohol, and drug use. Is in a monogomous relationship and has sex with condoms"""
36
 
37
- prefix = """[Notes]: 64-year-old with copd (no pft in omr), cad, aaa, htn presented with several days of worsening shortness of breath with some intermittent nonproductive coughs. no fevers, chills, chest pain, abdominal pain, changes in bowel habits. no lower extremity edema. no sick contact, no flu shot, no myalgias. in the ed, initial vs: t 100, hr 93, bp 164/108, rr 22, 81%ra. he was started on bipap. he received albuterol and ipratropium nebs, methylpred 125 mg iv x 1, ceftriaxone 1 gm x 1, azithromycin 500 mg x 1, mg sulfate 2 gm x 1. trop 0.05, ck normal, ecg unchanged from prior. prior to transfer to micu, hr 80, bp 105/48, rr 22, 99% on bipap. on arrival here, abg was 7.35/59/63/34. he was breathing comfortably on 5lnc. patient admitted from: hospital1 1 er history obtained from hospital 31 medical records
38
- [Summary]: 64-year-old man with copd, cad, htn here with several days of shortness of breath, productive coughs, fever, most likely copd exacerbation in the setting of an infection.
39
- [Notes]: justin jefferson 39 yo male hx of pvd, dm s/p renal transplant 2130. and ulcers. patient states that he has been nauseated with vomiting and diarrhea for the past 2 weeks. he reports having decreased food intaked and that he has not been able to take or keep his medications down consistently. he states that in the past when he has been hyperglycemic, he has not had nausea and vomiting like this. he also reports sob and doe for the past 4-5 days. he denies orthopnea and pnd. he reports some edema in his legs bilat which is a chronic problem. came to the er today because his wife finally made him after his temperature spiked to 102. patient also has chronic ulcers. his wife helps care for them and has not noticed any increasing erythema 2 days ago when last she changed the dressing. however, in ed, found to have swollen rle with right ulcers some and surrounding erythema concerning for celluliti. in ed found to be hyperglycemic with bs of 420 and ag 24. they treated him with sq insulin rather than an insulin drip because they were concerned about hypoglycemia. ed with q 1-2 hr fingersticks brought ag down to 16 currently. ed concerned about possible cellulitis started on vanco and unsyn for cellulitis. xray of leg did not show osteomyelitis. cxr clear. vascular was consulted and they took a foot cx. podiatry also saw patient. patient was going go to floor when inr came back at 20.0. patient then given ffp x1 unit and vit k. patient admitted from: hospital1 5 er history obtained from patient
40
- [Summary]: justin jefferson is a 39 yo male with a history of t1dm s/p cadoveric renal transplant, chronic rle ulcers, and ivc filter on coumadin, who was admitted with dka in the setting of one week of n/v, diarrhea and fevers.
41
- [Notes]: : this is a 53 y.o F with ms, asthma with 2 days of cough, sob, fever to 102 per husband with increased agitation, ams and s/p unwitnessed fall per husband. in the ed, inital vitals were tm101.6, bp 129/60, hr 88, rr 16, sat 96% on 6l. abg 7.31/44/65. cxr found opacification of the l.lung with ?layering pleural effusion vs. lobar collapse. r.lung with patchy airspace opacity with concern for pna. pt given dose of levofloxacin and ceftriaxone. pt also given nebs and lorazepam. ekg unchanged, head/neck ct negative. per neurology, pt with limited o2 sats, advanced ms, sleep disturbances. upon speaking with pt's family, pt normal waxes and wanes in terms of alertness. has chronic pain. of note, pt admitted and tx for l.sided pna with flagyl/levo. however, abx switched to vanco/azithro/flagyl/cefepime. pt symptoms gradually improved. ros: unable to assess for complete ros as pt with altered ms. patient admitted from: hospital1 1 er history obtained from patient, family / hospital 380 medical records patient unable to provide history: encephalopathy
42
- [Summary]: 53 y.o woman with h.o ms, asthma, chronic pain who presents with sob/cough/ fever s/p fall."""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
 
44
  input_text = st.text_area("Notes:", prompt)
45
  if st.button('Summarize'):
 
34
  PMH: none, Meds: none, Allergies: none, Surgeries: None, Family hx: none
35
  Social: denies caffeine, tobacco, alcohol, and drug use. Is in a monogomous relationship and has sex with condoms"""
36
 
37
+ prefix = """[Notes]: 35 yo female, comes in to clinic due to heavy mentrual periods. initiated 5 months ago, her last menstrual period was 6 months ago, she denias any pain while MP. she also details. weight gain of 18 pounds, she has had an unstable diet. she tried to concieve 9 years ago with any success, she has no hayd any misscarragies. she denies any shortness of breath, diaphoresis, head flushing, palpitations, sincope, chills, fever or abdominal pain. pap smear 6 months ago.
38
+
39
+ ros: as above
40
+
41
+ fh: parents healthy, granmother cervical cancer
42
+
43
+ psh: none
44
+
45
+ sh: alcohol: beer in ocaciones, tabaco: none, drugs: none
46
+
47
+ sexual active, with boyfriend, does no use condoms
48
+
49
+ ob gyn: menarche 12 yo , regular cycles until 6 months ago, prolonged to more than a month, took contraceptive pills before (control of mentrual periods)
50
+
51
+ allergies: none,
52
+
53
+ meds: none
54
+
55
+ diet: no strict diet
56
+
57
+ exercise: none
58
+ [Summary]: 35yo F c/o heavy menstrual periods x5mos, weight gain, unstable diet, no conception, no pap smear in 6mos, FH grandmother cervical cancer, SH alcohol, no tabaco, no drugs,
59
+ [Notes]: 17 yr Old M comes to clinic with c/o Heart Pounding, which started 2-3 Months. Symptoms comes and goes and last 3-4 min. Pt had 5-6 episodes so far and goes away on its on. Also feeling chest pressure which is in center x 2 days and difficulty in breathing x 2 days. Denies headache, diaphoresis, loss of consciouness, flushing, diarrhea, constipation, hair and skin chages. Diet and Appetite is normal. Pt is on Health plan for diet and eats fruits, veggies and protein meal.
60
+
61
+ ROS negative except above
62
+
63
+ PMH None Meds Takes addrall from room mate, NKDA
64
+
65
+ PSH none Hospital none No trauma
66
+
67
+ FH Mother had thyroid condition, Father has heart problem
68
+
69
+ SH student, No smoking, ETOH occasional, Recreational drugs Pot one time
70
+
71
+ SEX H Active with GF, Use condom and NO STD.
72
+ [Summary]: 17yo M c/o heart pounding x2-3mos, chest pressure x2days, difficulty breathing x2days, addrall, FH mother thyroid, father heart, SH student, ETOH occasional, recreational drugs
73
+ [Notes]: 67 yo F patient presents to clinic 3 weeks after the death of her son with difficulty falling asleep and waking early in the morning. She has tried ambien to help sleep without success. She also endorses having a sad or depressed mood, decreased energy, decreased interest in things she used to enjoy, and increased appetite. She endorses visual hallucinations of seeing her son at the kitchen table and auditory hallucinations of noise coming from the neighbor. She denies any suicidal or homicidal thoughts, intents, actions, or plans. She reports that she has a good support system with her family and friends.
74
+
75
+ ROS: denies HA, vision changes, fever, chills, night sweats, N/V, changes in bowel or bladder habits, chest pain, SOB, or changes in weight.
76
+
77
+ PMH: HTN, breast cancer 10 years in remission. Meds: HCTZ, lisinopril, ambrian for sleep. NKDA.
78
+
79
+ Sx Hx: lumpectomy, laparotomy for complicated appendicits.
80
+
81
+ Mother suffered depression.
82
+ [Summary]: 67yo F c/o difficulty sleeping, sad/depressed mood, decreased energy, decreased interest, increased appetite, visual/auditory hallucinations, HTN, breast cancer"""
83
 
84
  input_text = st.text_area("Notes:", prompt)
85
  if st.button('Summarize'):