Skip to content

Commit

Permalink
chore: fix incompatible return value type
Browse files Browse the repository at this point in the history
  • Loading branch information
honghanhh committed Oct 25, 2024
1 parent 1dd3c71 commit 2ee1254
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 349 deletions.
9 changes: 4 additions & 5 deletions lib/questions_eval/configs/run_mimoracle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ dataset: "/Users/hanh.tran/Desktop/open-nlp/lib/questions_eval/data_sample/mimor

prompts:
summary: >-
As a clinician assistant, you must write a summary for a specified section in clinical report given these patients information.
section_title: {section_title}
text: {text}
As a clinician assistant, you must write a summary for a specified section in clinical report
given these patients information. section_title: {section_title} text: {text}
Synthetic Summary:
Expand Down Expand Up @@ -40,6 +39,6 @@ prompts:
Document : {summary}
Question : {question}
Question : {question}
Answer:
94 changes: 47 additions & 47 deletions lib/questions_eval/data_sample/mimoracle_train_sample.csv
Original file line number Diff line number Diff line change
Expand Up @@ -146846,32 +146846,32 @@ outpatient counseling and adjustment of medications


Medications on Admission:
amlodipine 10 mg Tablet daily
amlodipine 10 mg Tablet daily
B complex-vitamin C-folic acid [[**Location (un) **] Caps] 1 mg Capsule) by
mouth once a day
Benzonatate 100 mg 1 Capsule(s) by mouth three times a day as
needed for cough
needed for cough
Bupropion HCl 150 mg 1 Tablet(s) by mouth
Monday/Wednesday/Friday only take after hemodialysis
Carvedilol 25 mg 1 Tablet(s) by mouth twice a day
Gabapentin 300 mg Capsule by mouth q48hr
Glucagon (human recombinant) [Glucagon Emergency] 1 mg Kit use
as needed prn
Hydroxyzine HCl 25 mg 1 Tablet(s) by mouth every six (6) hours
as needed for pruritus
as needed for pruritus
Insulin aspart [Novolog Flexpen] 100 unit/mL Insulin Pen inject
per sliding scale four times a day or as directed ; max 12u for
BG >400
Insulin aspart [Novolog Flexpen] 100 unit/mL Insulin Pen per sl
sc prn
Lorazepam 1 mg Tablet by mouth three times weekly before
dialysis as needed for anxiety
dialysis as needed for anxiety
Omeprazole 20 mg Capsule, Delayed Release(E.C.) 1 Capsule(s) by
mouth twice a day
Oxycodone 10 mg Tablet by mouth up to tid as needed for severe
pain
Simvastatin 5 mg Tablet by mouth once a day (Prescribed by Other
Provider)
Provider)
acetaminophen [APAP] 325 mg Tablet 1 Tablet(s) by mouth prn
aspirin [Aspir-81] 81 mg Tablet, Delayed Release (E.C.) by mouth
daily
Expand Down Expand Up @@ -147391,32 +147391,32 @@ outpatient counseling and adjustment of medications


Medications on Admission:
amlodipine 10 mg Tablet daily
amlodipine 10 mg Tablet daily
B complex-vitamin C-folic acid [[**Location (un) **] Caps] 1 mg Capsule) by
mouth once a day
Benzonatate 100 mg 1 Capsule(s) by mouth three times a day as
needed for cough
needed for cough
Bupropion HCl 150 mg 1 Tablet(s) by mouth
Monday/Wednesday/Friday only take after hemodialysis
Carvedilol 25 mg 1 Tablet(s) by mouth twice a day
Gabapentin 300 mg Capsule by mouth q48hr
Glucagon (human recombinant) [Glucagon Emergency] 1 mg Kit use
as needed prn
Hydroxyzine HCl 25 mg 1 Tablet(s) by mouth every six (6) hours
as needed for pruritus
as needed for pruritus
Insulin aspart [Novolog Flexpen] 100 unit/mL Insulin Pen inject
per sliding scale four times a day or as directed ; max 12u for
BG >400
Insulin aspart [Novolog Flexpen] 100 unit/mL Insulin Pen per sl
sc prn
Lorazepam 1 mg Tablet by mouth three times weekly before
dialysis as needed for anxiety
dialysis as needed for anxiety
Omeprazole 20 mg Capsule, Delayed Release(E.C.) 1 Capsule(s) by
mouth twice a day
Oxycodone 10 mg Tablet by mouth up to tid as needed for severe
pain
Simvastatin 5 mg Tablet by mouth once a day (Prescribed by Other
Provider)
Provider)
acetaminophen [APAP] 325 mg Tablet 1 Tablet(s) by mouth prn
aspirin [Aspir-81] 81 mg Tablet, Delayed Release (E.C.) by mouth
daily
Expand Down Expand Up @@ -147969,32 +147969,32 @@ outpatient counseling and adjustment of medications


Medications on Admission:
amlodipine 10 mg Tablet daily
amlodipine 10 mg Tablet daily
B complex-vitamin C-folic acid [[**Location (un) **] Caps] 1 mg Capsule) by
mouth once a day
Benzonatate 100 mg 1 Capsule(s) by mouth three times a day as
needed for cough
needed for cough
Bupropion HCl 150 mg 1 Tablet(s) by mouth
Monday/Wednesday/Friday only take after hemodialysis
Carvedilol 25 mg 1 Tablet(s) by mouth twice a day
Gabapentin 300 mg Capsule by mouth q48hr
Glucagon (human recombinant) [Glucagon Emergency] 1 mg Kit use
as needed prn
Hydroxyzine HCl 25 mg 1 Tablet(s) by mouth every six (6) hours
as needed for pruritus
as needed for pruritus
Insulin aspart [Novolog Flexpen] 100 unit/mL Insulin Pen inject
per sliding scale four times a day or as directed ; max 12u for
BG >400
Insulin aspart [Novolog Flexpen] 100 unit/mL Insulin Pen per sl
sc prn
Lorazepam 1 mg Tablet by mouth three times weekly before
dialysis as needed for anxiety
dialysis as needed for anxiety
Omeprazole 20 mg Capsule, Delayed Release(E.C.) 1 Capsule(s) by
mouth twice a day
Oxycodone 10 mg Tablet by mouth up to tid as needed for severe
pain
Simvastatin 5 mg Tablet by mouth once a day (Prescribed by Other
Provider)
Provider)
acetaminophen [APAP] 325 mg Tablet 1 Tablet(s) by mouth prn
aspirin [Aspir-81] 81 mg Tablet, Delayed Release (E.C.) by mouth
daily
Expand Down Expand Up @@ -148523,32 +148523,32 @@ outpatient counseling and adjustment of medications


Medications on Admission:
amlodipine 10 mg Tablet daily
amlodipine 10 mg Tablet daily
B complex-vitamin C-folic acid [[**Location (un) **] Caps] 1 mg Capsule) by
mouth once a day
Benzonatate 100 mg 1 Capsule(s) by mouth three times a day as
needed for cough
needed for cough
Bupropion HCl 150 mg 1 Tablet(s) by mouth
Monday/Wednesday/Friday only take after hemodialysis
Carvedilol 25 mg 1 Tablet(s) by mouth twice a day
Gabapentin 300 mg Capsule by mouth q48hr
Glucagon (human recombinant) [Glucagon Emergency] 1 mg Kit use
as needed prn
Hydroxyzine HCl 25 mg 1 Tablet(s) by mouth every six (6) hours
as needed for pruritus
as needed for pruritus
Insulin aspart [Novolog Flexpen] 100 unit/mL Insulin Pen inject
per sliding scale four times a day or as directed ; max 12u for
BG >400
Insulin aspart [Novolog Flexpen] 100 unit/mL Insulin Pen per sl
sc prn
Lorazepam 1 mg Tablet by mouth three times weekly before
dialysis as needed for anxiety
dialysis as needed for anxiety
Omeprazole 20 mg Capsule, Delayed Release(E.C.) 1 Capsule(s) by
mouth twice a day
Oxycodone 10 mg Tablet by mouth up to tid as needed for severe
pain
Simvastatin 5 mg Tablet by mouth once a day (Prescribed by Other
Provider)
Provider)
acetaminophen [APAP] 325 mg Tablet 1 Tablet(s) by mouth prn
aspirin [Aspir-81] 81 mg Tablet, Delayed Release (E.C.) by mouth
daily
Expand Down Expand Up @@ -149070,32 +149070,32 @@ outpatient counseling and adjustment of medications


Medications on Admission:
amlodipine 10 mg Tablet daily
amlodipine 10 mg Tablet daily
B complex-vitamin C-folic acid [[**Location (un) **] Caps] 1 mg Capsule) by
mouth once a day
Benzonatate 100 mg 1 Capsule(s) by mouth three times a day as
needed for cough
needed for cough
Bupropion HCl 150 mg 1 Tablet(s) by mouth
Monday/Wednesday/Friday only take after hemodialysis
Carvedilol 25 mg 1 Tablet(s) by mouth twice a day
Gabapentin 300 mg Capsule by mouth q48hr
Glucagon (human recombinant) [Glucagon Emergency] 1 mg Kit use
as needed prn
Hydroxyzine HCl 25 mg 1 Tablet(s) by mouth every six (6) hours
as needed for pruritus
as needed for pruritus
Insulin aspart [Novolog Flexpen] 100 unit/mL Insulin Pen inject
per sliding scale four times a day or as directed ; max 12u for
BG >400
Insulin aspart [Novolog Flexpen] 100 unit/mL Insulin Pen per sl
sc prn
Lorazepam 1 mg Tablet by mouth three times weekly before
dialysis as needed for anxiety
dialysis as needed for anxiety
Omeprazole 20 mg Capsule, Delayed Release(E.C.) 1 Capsule(s) by
mouth twice a day
Oxycodone 10 mg Tablet by mouth up to tid as needed for severe
pain
Simvastatin 5 mg Tablet by mouth once a day (Prescribed by Other
Provider)
Provider)
acetaminophen [APAP] 325 mg Tablet 1 Tablet(s) by mouth prn
aspirin [Aspir-81] 81 mg Tablet, Delayed Release (E.C.) by mouth
daily
Expand Down Expand Up @@ -149252,32 +149252,32 @@ You will be followed by your Nephrologist at hemodialysis.



Completed by:[**2185-6-3**]",medications on admission,"amlodipine 10 mg Tablet daily
Completed by:[**2185-6-3**]",medications on admission,"amlodipine 10 mg Tablet daily
B complex-vitamin C-folic acid [[**Location (un) **] Caps] 1 mg Capsule) by
mouth once a day
Benzonatate 100 mg 1 Capsule(s) by mouth three times a day as
needed for cough
needed for cough
Bupropion HCl 150 mg 1 Tablet(s) by mouth
Monday/Wednesday/Friday only take after hemodialysis
Carvedilol 25 mg 1 Tablet(s) by mouth twice a day
Gabapentin 300 mg Capsule by mouth q48hr
Glucagon (human recombinant) [Glucagon Emergency] 1 mg Kit use
as needed prn
Hydroxyzine HCl 25 mg 1 Tablet(s) by mouth every six (6) hours
as needed for pruritus
as needed for pruritus
Insulin aspart [Novolog Flexpen] 100 unit/mL Insulin Pen inject
per sliding scale four times a day or as directed ; max 12u for
BG >400
Insulin aspart [Novolog Flexpen] 100 unit/mL Insulin Pen per sl
sc prn
Lorazepam 1 mg Tablet by mouth three times weekly before
dialysis as needed for anxiety
dialysis as needed for anxiety
Omeprazole 20 mg Capsule, Delayed Release(E.C.) 1 Capsule(s) by
mouth twice a day
Oxycodone 10 mg Tablet by mouth up to tid as needed for severe
pain
Simvastatin 5 mg Tablet by mouth once a day (Prescribed by Other
Provider)
Provider)
acetaminophen [APAP] 325 mg Tablet 1 Tablet(s) by mouth prn
aspirin [Aspir-81] 81 mg Tablet, Delayed Release (E.C.) by mouth
daily
Expand Down Expand Up @@ -149648,32 +149648,32 @@ outpatient counseling and adjustment of medications


Medications on Admission:
amlodipine 10 mg Tablet daily
amlodipine 10 mg Tablet daily
B complex-vitamin C-folic acid [[**Location (un) **] Caps] 1 mg Capsule) by
mouth once a day
Benzonatate 100 mg 1 Capsule(s) by mouth three times a day as
needed for cough
needed for cough
Bupropion HCl 150 mg 1 Tablet(s) by mouth
Monday/Wednesday/Friday only take after hemodialysis
Carvedilol 25 mg 1 Tablet(s) by mouth twice a day
Gabapentin 300 mg Capsule by mouth q48hr
Glucagon (human recombinant) [Glucagon Emergency] 1 mg Kit use
as needed prn
Hydroxyzine HCl 25 mg 1 Tablet(s) by mouth every six (6) hours
as needed for pruritus
as needed for pruritus
Insulin aspart [Novolog Flexpen] 100 unit/mL Insulin Pen inject
per sliding scale four times a day or as directed ; max 12u for
BG >400
Insulin aspart [Novolog Flexpen] 100 unit/mL Insulin Pen per sl
sc prn
Lorazepam 1 mg Tablet by mouth three times weekly before
dialysis as needed for anxiety
dialysis as needed for anxiety
Omeprazole 20 mg Capsule, Delayed Release(E.C.) 1 Capsule(s) by
mouth twice a day
Oxycodone 10 mg Tablet by mouth up to tid as needed for severe
pain
Simvastatin 5 mg Tablet by mouth once a day (Prescribed by Other
Provider)
Provider)
acetaminophen [APAP] 325 mg Tablet 1 Tablet(s) by mouth prn
aspirin [Aspir-81] 81 mg Tablet, Delayed Release (E.C.) by mouth
daily
Expand Down Expand Up @@ -213385,7 +213385,7 @@ LEUKOCYTES.

ANAEROBIC CULTURE (Preliminary): NO GROWTH.

[**2167-10-3**] BLOOD CULTURE pending
[**2167-10-3**] BLOOD CULTURE pending
[**2167-10-1**] BLOOD CULTURE AEROBIC BOTTLE-PENDING; ANAEROBIC
BOTTLE-PENDING INPATIENT
[**2167-10-1**] BLOOD CULTURE AEROBIC BOTTLE-PENDING; ANAEROBIC
Expand Down Expand Up @@ -213760,7 +213760,7 @@ LEUKOCYTES.

ANAEROBIC CULTURE (Preliminary): NO GROWTH.

[**2167-10-3**] BLOOD CULTURE pending
[**2167-10-3**] BLOOD CULTURE pending
[**2167-10-1**] BLOOD CULTURE AEROBIC BOTTLE-PENDING; ANAEROBIC
BOTTLE-PENDING INPATIENT
[**2167-10-1**] BLOOD CULTURE AEROBIC BOTTLE-PENDING; ANAEROBIC
Expand Down Expand Up @@ -214152,7 +214152,7 @@ LEUKOCYTES.

ANAEROBIC CULTURE (Preliminary): NO GROWTH.

[**2167-10-3**] BLOOD CULTURE pending
[**2167-10-3**] BLOOD CULTURE pending
[**2167-10-1**] BLOOD CULTURE AEROBIC BOTTLE-PENDING; ANAEROBIC
BOTTLE-PENDING INPATIENT
[**2167-10-1**] BLOOD CULTURE AEROBIC BOTTLE-PENDING; ANAEROBIC
Expand Down Expand Up @@ -214542,7 +214542,7 @@ LEUKOCYTES.

ANAEROBIC CULTURE (Preliminary): NO GROWTH.

[**2167-10-3**] BLOOD CULTURE pending
[**2167-10-3**] BLOOD CULTURE pending
[**2167-10-1**] BLOOD CULTURE AEROBIC BOTTLE-PENDING; ANAEROBIC
BOTTLE-PENDING INPATIENT
[**2167-10-1**] BLOOD CULTURE AEROBIC BOTTLE-PENDING; ANAEROBIC
Expand Down Expand Up @@ -214917,7 +214917,7 @@ LEUKOCYTES.

ANAEROBIC CULTURE (Preliminary): NO GROWTH.

[**2167-10-3**] BLOOD CULTURE pending
[**2167-10-3**] BLOOD CULTURE pending
[**2167-10-1**] BLOOD CULTURE AEROBIC BOTTLE-PENDING; ANAEROBIC
BOTTLE-PENDING INPATIENT
[**2167-10-1**] BLOOD CULTURE AEROBIC BOTTLE-PENDING; ANAEROBIC
Expand Down Expand Up @@ -215296,7 +215296,7 @@ LEUKOCYTES.

ANAEROBIC CULTURE (Preliminary): NO GROWTH.

[**2167-10-3**] BLOOD CULTURE pending
[**2167-10-3**] BLOOD CULTURE pending
[**2167-10-1**] BLOOD CULTURE AEROBIC BOTTLE-PENDING; ANAEROBIC
BOTTLE-PENDING INPATIENT
[**2167-10-1**] BLOOD CULTURE AEROBIC BOTTLE-PENDING; ANAEROBIC
Expand Down Expand Up @@ -282735,7 +282735,7 @@ Non-contributory

Physical Exam:
Vitals T 95.5 P 75 BP 70/48 Resp 20 96%RA

Gen Alert, oriented, cooperative male in NAD
HEENT PERRLA, MMM, OP clear
Neck JVD at 15 cm, no lymphadenopathy or thyromegally
Expand Down Expand Up @@ -282990,7 +282990,7 @@ Non-contributory

Physical Exam:
Vitals T 95.5 P 75 BP 70/48 Resp 20 96%RA

Gen Alert, oriented, cooperative male in NAD
HEENT PERRLA, MMM, OP clear
Neck JVD at 15 cm, no lymphadenopathy or thyromegally
Expand Down Expand Up @@ -283264,7 +283264,7 @@ Non-contributory

Physical Exam:
Vitals T 95.5 P 75 BP 70/48 Resp 20 96%RA

Gen Alert, oriented, cooperative male in NAD
HEENT PERRLA, MMM, OP clear
Neck JVD at 15 cm, no lymphadenopathy or thyromegally
Expand Down Expand Up @@ -283528,7 +283528,7 @@ Non-contributory

Physical Exam:
Vitals T 95.5 P 75 BP 70/48 Resp 20 96%RA

Gen Alert, oriented, cooperative male in NAD
HEENT PERRLA, MMM, OP clear
Neck JVD at 15 cm, no lymphadenopathy or thyromegally
Expand Down Expand Up @@ -283783,7 +283783,7 @@ Non-contributory

Physical Exam:
Vitals T 95.5 P 75 BP 70/48 Resp 20 96%RA

Gen Alert, oriented, cooperative male in NAD
HEENT PERRLA, MMM, OP clear
Neck JVD at 15 cm, no lymphadenopathy or thyromegally
Expand Down Expand Up @@ -284038,7 +284038,7 @@ Non-contributory

Physical Exam:
Vitals T 95.5 P 75 BP 70/48 Resp 20 96%RA

Gen Alert, oriented, cooperative male in NAD
HEENT PERRLA, MMM, OP clear
Neck JVD at 15 cm, no lymphadenopathy or thyromegally
Expand Down
Loading

0 comments on commit 2ee1254

Please sign in to comment.