Question: what was patient 11426's first hospital admission type until 2101?

what was the first hospital admission type of patient 11426 until 2101?

Question: select admissions.admission_type from admissions where admissions.subject_id = 11426 and strftime('%Y',admissions.admittime) <= '2101' order by admissions.admittime asc limit 1

what was the [time_filter_exact1] hospital admission type of patient {patient_id} [time_filter_global1]?

what was the [time_filter_exact1:exact-first] hospital admission type of patient {patient_id} [time_filter_global1:abs-year-until]?

Answer: elective


Question: how did patient 70516 last come to the hospital since 2104?

what was the last hospital admission type of patient 70516 since 2104?

Question: select admissions.admission_type from admissions where admissions.subject_id = 70516 and strftime('%Y',admissions.admittime) >= '2104' order by admissions.admittime desc limit 1

what was the [time_filter_exact1] hospital admission type of patient {patient_id} [time_filter_global1]?

what was the [time_filter_exact1:exact-last] hospital admission type of patient {patient_id} [time_filter_global1:abs-year-since]?

Answer: emergency


Question: what is the last ward of patient 269 until 2102?

what was the last ward of patient 269 until 2102?

Question: select transfers.wardid from transfers where transfers.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 269 ) and transfers.wardid is not null and strftime('%Y',transfers.intime) <= '2102' order by transfers.intime desc limit 1

what was the [time_filter_exact1] ward of patient {patient_id} [time_filter_global1]?

what was the [time_filter_exact1:exact-last] ward of patient {patient_id} [time_filter_global1:abs-year-until]?

Answer: 18


Question: what is patient 17638's first ward on the last hospital visit?

what was the first ward of patient 17638 on the last hospital visit?

Question: select transfers.wardid from transfers where transfers.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 17638 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) and transfers.wardid is not null order by transfers.intime asc limit 1

what was the [time_filter_exact1] ward of patient {patient_id} [time_filter_global1]?

what was the [time_filter_exact1:exact-first] ward of patient {patient_id} [time_filter_global1:rel-hosp-last]?

Answer: 33


Question: the first care unit of patient 46422 since 2101 is?

what was the first careunit of patient 46422 since 2101?

Question: select transfers.careunit from transfers where transfers.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 46422 ) and transfers.careunit is not null and strftime('%Y',transfers.intime) >= '2101' order by transfers.intime asc limit 1

what was the [time_filter_exact1] careunit of patient {patient_id} [time_filter_global1]?

what was the [time_filter_exact1:exact-first] careunit of patient {patient_id} [time_filter_global1:abs-year-since]?

Answer: csru


Question: what is the first id of the care unit of patient 47295 in 2100?

what was the first careunit of patient 47295 in 2100?

Question: select transfers.careunit from transfers where transfers.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 47295 ) and transfers.careunit is not null and strftime('%Y',transfers.intime) = '2100' order by transfers.intime asc limit 1

what was the [time_filter_exact1] careunit of patient {patient_id} [time_filter_global1]?

what was the [time_filter_exact1:exact-first] careunit of patient {patient_id} [time_filter_global1:abs-year-in]?

Answer: ccu


Question: what is the last care unit where patient 40059 stayed since 2104?

what was the last careunit of patient 40059 since 2104?

Question: select transfers.careunit from transfers where transfers.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 40059 ) and transfers.careunit is not null and strftime('%Y',transfers.intime) >= '2104' order by transfers.intime desc limit 1

what was the [time_filter_exact1] careunit of patient {patient_id} [time_filter_global1]?

what was the [time_filter_exact1:exact-last] careunit of patient {patient_id} [time_filter_global1:abs-year-since]?

Answer: csru


Question: what is the first careunit that patient 53089 stayed on the last hospital encounter?

what was the first careunit of patient 53089 on the last hospital visit?

Question: select transfers.careunit from transfers where transfers.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 53089 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) and transfers.careunit is not null order by transfers.intime asc limit 1

what was the [time_filter_exact1] careunit of patient {patient_id} [time_filter_global1]?

what was the [time_filter_exact1:exact-first] careunit of patient {patient_id} [time_filter_global1:rel-hosp-last]?

Answer: ccu


Question: whats the last height of patient 19473 since 01/2103?

what was the last measured height of patient 19473 since 01/2103?

Question: select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 19473 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'admit ht' and d_items.linksto = 'chartevents' ) and strftime('%Y-%m',chartevents.charttime) >= '2103-01' order by chartevents.charttime desc limit 1

what was the [time_filter_exact1] measured height of patient {patient_id} [time_filter_global1]?

what was the [time_filter_exact1:exact-last] measured height of patient {patient_id} [time_filter_global1:abs-month-since]?

Answer: 62.0


Question: what is the last measured height of patient 26772 during the last hospital encounter?

what was the last measured height of patient 26772 on the last hospital visit?

Question: select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 26772 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'admit ht' and d_items.linksto = 'chartevents' ) order by chartevents.charttime desc limit 1

what was the [time_filter_exact1] measured height of patient {patient_id} [time_filter_global1]?

what was the [time_filter_exact1:exact-last] measured height of patient {patient_id} [time_filter_global1:rel-hosp-last]?

Answer: 66.0


Question: what is patient 21074's last measured height?

what was the last measured height of patient 21074?

Question: select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 21074 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'admit ht' and d_items.linksto = 'chartevents' ) order by chartevents.charttime desc limit 1

what was the [time_filter_exact1] measured height of patient {patient_id} [time_filter_global1]?

what was the [time_filter_exact1:exact-last] measured height of patient {patient_id} [time_filter_global1:null]?

Answer: 69.0


Question: how much patient 14203 weighs during the first hospital encounter for the first time.

what was the first measured weight of patient 14203 on the first hospital visit?

Question: select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 14203 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'admit wt' and d_items.linksto = 'chartevents' ) order by chartevents.charttime asc limit 1

what was the [time_filter_exact1] measured weight of patient {patient_id} [time_filter_global1]?

what was the [time_filter_exact1:exact-first] measured weight of patient {patient_id} [time_filter_global1:rel-hosp-first]?

Answer: 155.0


Question: how much does patient 728 weigh based on the first measurement during the first hospital visit?

what was the first measured weight of patient 728 on the first hospital visit?

Question: select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 728 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'admit wt' and d_items.linksto = 'chartevents' ) order by chartevents.charttime asc limit 1

what was the [time_filter_exact1] measured weight of patient {patient_id} [time_filter_global1]?

what was the [time_filter_exact1:exact-first] measured weight of patient {patient_id} [time_filter_global1:rel-hosp-first]?

Answer: 90.0


Question: how much does patient 26469 last weigh during their first hospital encounter?

what was the last measured weight of patient 26469 on the first hospital visit?

Question: select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 26469 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'admit wt' and d_items.linksto = 'chartevents' ) order by chartevents.charttime desc limit 1

what was the [time_filter_exact1] measured weight of patient {patient_id} [time_filter_global1]?

what was the [time_filter_exact1:exact-last] measured weight of patient {patient_id} [time_filter_global1:rel-hosp-first]?

Answer: 84.0


Question: what was patient 82132 diagnosed with the first time since 2104?

what was the name of the diagnosis that patient 82132 first received since 2104?

Question: select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select diagnoses_icd.icd9_code from diagnoses_icd where diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 82132 ) and strftime('%Y',diagnoses_icd.charttime) >= '2104' order by diagnoses_icd.charttime asc limit 1 )

what was the name of the diagnosis that patient {patient_id} [time_filter_exact1] received [time_filter_global1]?

what was the name of the diagnosis that patient {patient_id} [time_filter_exact1:exact-first] received [time_filter_global1:abs-year-since]?

['other', 'physician', 'infection_control', 'insurance_review', 'nursing']

Answer: hyposmolality


Question: what was patient 52604 last diagnosed with since 2101?

what was the name of the diagnosis that patient 52604 last received since 2101?

Question: select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select diagnoses_icd.icd9_code from diagnoses_icd where diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 52604 ) and strftime('%Y',diagnoses_icd.charttime) >= '2101' order by diagnoses_icd.charttime desc limit 1 )

what was the name of the diagnosis that patient {patient_id} [time_filter_exact1] received [time_filter_global1]?

what was the name of the diagnosis that patient {patient_id} [time_filter_exact1:exact-last] received [time_filter_global1:abs-year-since]?

['other', 'physician', 'infection_control', 'insurance_review', 'nursing']

Answer: septic shock


Question: what was the name of procedure that patient 24894 were first received until 2103?

what was the name of the procedure that patient 24894 first received until 2103?

Question: select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select procedures_icd.icd9_code from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 24894 ) and strftime('%Y',procedures_icd.charttime) <= '2103' order by procedures_icd.charttime asc limit 1 )

what was the name of the procedure that patient {patient_id} [time_filter_exact1] received [time_filter_global1]?

what was the name of the procedure that patient {patient_id} [time_filter_exact1:exact-first] received [time_filter_global1:abs-year-until]?

Answer: insert endotracheal tube


Question: what procedure did patient 87733 first have until 2102?

what was the name of the procedure that patient 87733 first received until 2102?

Question: select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select procedures_icd.icd9_code from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 87733 ) and strftime('%Y',procedures_icd.charttime) <= '2102' order by procedures_icd.charttime asc limit 1 )

what was the name of the procedure that patient {patient_id} [time_filter_exact1] received [time_filter_global1]?

what was the name of the procedure that patient {patient_id} [time_filter_exact1:exact-first] received [time_filter_global1:abs-year-until]?

Answer: interruption vena cava


Question: what procedure did patient 30171 receive for the first time in the last hospital encounter?

what was the name of the procedure that patient 30171 first received on the last hospital visit?

Question: select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select procedures_icd.icd9_code from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 30171 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) order by procedures_icd.charttime asc limit 1 )

what was the name of the procedure that patient {patient_id} [time_filter_exact1] received [time_filter_global1]?

what was the name of the procedure that patient {patient_id} [time_filter_exact1:exact-first] received [time_filter_global1:rel-hosp-last]?

Answer: below knee amputat nec


Question: what is the first drug that was prescribed to patient 50286 via an po route during their first hospital encounter?

what was the name of the drug that patient 50286 was first prescribed via po route on the first hospital visit?

Question: select prescriptions.drug from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 50286 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) and prescriptions.route = 'po' order by prescriptions.startdate asc limit 1

what was the name of the drug that patient {patient_id} was [time_filter_exact1] prescribed via {drug_route} route [time_filter_global1]?

what was the name of the drug that patient {patient_id} was [time_filter_exact1:exact-first] prescribed via {drug_route} route [time_filter_global1:rel-hosp-first]?

Answer: diltiazem


Question: what was the last drug patient 60347 was prescribed via im in the first hospital visit?

what was the name of the drug that patient 60347 was last prescribed via im route on the first hospital visit?

Question: select prescriptions.drug from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 60347 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) and prescriptions.route = 'im' order by prescriptions.startdate desc limit 1

what was the name of the drug that patient {patient_id} was [time_filter_exact1] prescribed via {drug_route} route [time_filter_global1]?

what was the name of the drug that patient {patient_id} was [time_filter_exact1:exact-last] prescribed via {drug_route} route [time_filter_global1:rel-hosp-first]?

Answer: cyanocobalamin


Question: what was the first medication patient 83062 was prescribed via oral route in the current hospital encounter?

what was the name of the drug that patient 83062 was first prescribed via oral route on the current hospital visit?

Question: select prescriptions.drug from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 83062 and admissions.dischtime is null ) and prescriptions.route = 'oral' order by prescriptions.startdate asc limit 1

what was the name of the drug that patient {patient_id} was [time_filter_exact1] prescribed via {drug_route} route [time_filter_global1]?

what was the name of the drug that patient {patient_id} was [time_filter_exact1:exact-first] prescribed via {drug_route} route [time_filter_global1:rel-hosp-cur]?

Answer: chlorhexidine gluconate 0.12% oral rinse


Question: what was the drug prescribed for patient 25696 for the last time in 05/2105?

what was the name of the drug that patient 25696 was last prescribed in 05/2105?

Question: select prescriptions.drug from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 25696 ) and strftime('%Y-%m',prescriptions.startdate) = '2105-05' order by prescriptions.startdate desc limit 1

what was the name of the drug that patient {patient_id} was [time_filter_exact1] prescribed [time_filter_global1]?

what was the name of the drug that patient {patient_id} was [time_filter_exact1:exact-last] prescribed [time_filter_global1:abs-month-in]?

['other', 'physician', 'infection_control', 'insurance_review', 'nursing']

Answer: alteplase (catheter clearance)


Question: list the drug that patient 17667 has been last prescribed on this hospital visit.

what was the name of the drug that patient 17667 was last prescribed on the current hospital visit?

Question: select prescriptions.drug from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 17667 and admissions.dischtime is null ) order by prescriptions.startdate desc limit 1

what was the name of the drug that patient {patient_id} was [time_filter_exact1] prescribed [time_filter_global1]?

what was the name of the drug that patient {patient_id} was [time_filter_exact1:exact-last] prescribed [time_filter_global1:rel-hosp-cur]?

['other', 'physician', 'infection_control', 'insurance_review', 'nursing']

Answer: calcium acetate


Question: what is the drug that patient 99080 was prescribed with within 2 days after being diagnosed with cysticercosis in 11/2103?

what was the name of the drug that patient 99080 was prescribed within 2 day after having been diagnosed with cysticercosis in 11/2103?

Question: select t2.drug from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where admissions.subject_id = 99080 and diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'cysticercosis' ) and strftime('%Y-%m',diagnoses_icd.charttime) = '2103-11' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where admissions.subject_id = 99080 and strftime('%Y-%m',prescriptions.startdate) = '2103-11' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and datetime(t2.startdate) between datetime(t1.charttime) and datetime(t1.charttime,'+2 day')

what was the name of the drug that patient {patient_id} was prescribed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?

what was the name of the drug that patient {patient_id} was prescribed [time_filter_within:within-n_day] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-month-in]?

Answer: 0.9% sodium chloride

Answer: amoxicillin-clavulanic acid

Answer: fish oil (omega 3)

Answer: fluticasone-salmeterol diskus (100/50)

Answer: glucagon

Answer: heparin flush cvl  (100 units/ml)

Answer: iso-osmotic sodium chloride

Answer: ketorolac

Answer: methylprednisolone na succ.

Answer: metoprolol tartrate

Answer: midazolam hcl

Answer: mycophenolate mofetil

Answer: nitroglycerin

Answer: nitroglycerin

Answer: ns

Answer: ns (glass bottle)

Answer: phenylephrine hcl

Answer: phenytoin (suspension)

Answer: potassium chloride

Answer: quetiapine fumarate

Answer: sw

Answer: 0.9% sodium chloride

Answer: clopidogrel

Answer: dorzolamide 2% ophth. soln.

Answer: eucerin

Answer: lorazepam

Answer: sw


Question: what drug was patient 62298 prescribed for within the same hospital visit after being diagnosed with hyperlipidemia nec/nos since 04/2103?

what was the name of the drug that patient 62298 was prescribed within the same hospital visit after having been diagnosed with hyperlipidemia nec/nos since 04/2103?

Question: select t2.drug from ( select admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where admissions.subject_id = 62298 and diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'hyperlipidemia nec/nos' ) and strftime('%Y-%m',diagnoses_icd.charttime) >= '2103-04' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate, admissions.hadm_id from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where admissions.subject_id = 62298 and strftime('%Y-%m',prescriptions.startdate) >= '2103-04' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and t1.hadm_id = t2.hadm_id

what was the name of the drug that patient {patient_id} was prescribed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?

what was the name of the drug that patient {patient_id} was prescribed [time_filter_within:within-hosp] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-month-since]?

Answer: 5% dextrose

Answer: acetazolamide sodium

Answer: albuterol 0.083% neb soln

Answer: d5 1/2ns

Answer: enalapril maleate

Answer: iso-osmotic dextrose

Answer: iso-osmotic sodium chloride

Answer: isotonic sodium chloride

Answer: lisinopril

Answer: potassium chloride

Answer: 0.9% sodium chloride

Answer: 0.9% sodium chloride (mini bag plus)

Answer: albuterol 0.083% neb soln

Answer: d5w

Answer: heparin

Answer: idarubicin hcl

Answer: lr

Answer: metoprolol tartrate

Answer: ns

Answer: quetiapine fumarate

Answer: sodium phosphate

Answer: furosemide

Answer: morphine sulfate sr

Answer: ns

Answer: oxcarbazepine

Answer: vial

Answer: acetaminophen

Answer: insulin

Answer: iso-osmotic dextrose

Answer: thiamine

Answer: 0.9% sodium chloride (mini bag plus)

Answer: acetaminophen

Answer: albuterol 0.083% neb soln

Answer: albuterol mdi

Answer: insulin

Answer: metronidazole (flagyl)

Answer: morphine sulfate

Answer: ns

Answer: phenytoin sodium

Answer: prednisone

Answer: sodium chloride 0.9%  flush

Answer: ipratropium bromide neb

Answer: potassium chloride

Answer: hydralazine hcl

Answer: potassium chloride


Question: what is the drug that patient 54386 was prescribed with within 2 days after having undergone entral infus nutrit sub on the last hospital encounter?

what was the name of the drug that patient 54386 was prescribed within 2 day after having received a entral infus nutrit sub procedure on the last hospital visit?

Question: select t2.drug from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where admissions.subject_id = 54386 and procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'entral infus nutrit sub' ) and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where admissions.subject_id = 54386 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and datetime(t2.startdate) between datetime(t1.charttime) and datetime(t1.charttime,'+2 day')

what was the name of the drug that patient {patient_id} was prescribed [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?

what was the name of the drug that patient {patient_id} was prescribed [time_filter_within:within-n_day] after having received a {procedure_name} procedure [time_filter_global1:rel-hosp-last]?

Answer: clopidogrel


Question: what is the drug that patient 25668 prescribed for within 2 days after the treatment of percu abdominal drainage until 12/2104?

what was the name of the drug that patient 25668 was prescribed within 2 day after having received a percu abdominal drainage procedure until 12/2104?

Question: select t2.drug from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where admissions.subject_id = 25668 and procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'percu abdominal drainage' ) and strftime('%Y-%m',procedures_icd.charttime) <= '2104-12' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where admissions.subject_id = 25668 and strftime('%Y-%m',prescriptions.startdate) <= '2104-12' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and datetime(t2.startdate) between datetime(t1.charttime) and datetime(t1.charttime,'+2 day')

what was the name of the drug that patient {patient_id} was prescribed [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?

what was the name of the drug that patient {patient_id} was prescribed [time_filter_within:within-n_day] after having received a {procedure_name} procedure [time_filter_global1:abs-month-until]?

Answer: 5% dextrose

Answer: d10w

Answer: famotidine

Answer: hydralazine

Answer: iso-osmotic dextrose

Answer: potassium chloride


Question: what was the last dose of sulfameth/trimethoprim ds that until 03/2105 was prescribed to patient 64292?

what was the dose of sulfameth/trimethoprim ds that patient 64292 was last prescribed until 03/2105?

Question: select prescriptions.dose_val_rx from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 64292 ) and prescriptions.drug = 'sulfameth/trimethoprim ds' and strftime('%Y-%m',prescriptions.startdate) <= '2105-03' order by prescriptions.startdate desc limit 1

what was the dose of {drug_name} that patient {patient_id} was [time_filter_exact1] prescribed [time_filter_global1]?

what was the dose of {drug_name} that patient {patient_id} was [time_filter_exact1:exact-last] prescribed [time_filter_global1:abs-month-until]?

Answer: 1.0


Question: what was the first dose of zidovudine that was prescribed on the last hospital encounter to patient 13841?

what was the dose of zidovudine that patient 13841 was first prescribed on the last hospital visit?

Question: select prescriptions.dose_val_rx from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 13841 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) and prescriptions.drug = 'zidovudine' order by prescriptions.startdate asc limit 1

what was the dose of {drug_name} that patient {patient_id} was [time_filter_exact1] prescribed [time_filter_global1]?

what was the dose of {drug_name} that patient {patient_id} was [time_filter_exact1:exact-first] prescribed [time_filter_global1:rel-hosp-last]?

Answer: 300.0


Question: how much heparin sodium (preservative free) was first prescribed to patient 14035?

what was the dose of heparin sodium (preservative free) that patient 14035 was first prescribed?

Question: select prescriptions.dose_val_rx from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 14035 ) and prescriptions.drug = 'heparin sodium (preservative free)' order by prescriptions.startdate asc limit 1

what was the dose of {drug_name} that patient {patient_id} was [time_filter_exact1] prescribed [time_filter_global1]?

what was the dose of {drug_name} that patient {patient_id} was [time_filter_exact1:exact-first] prescribed [time_filter_global1:null]?

Answer: 10.0


Question: tell me the total dose of d5w (excel bag) that patient 97330 was prescribed in this hospital encounter?

what was the total amount of dose of d5w (excel bag) that patient 97330 were prescribed on the current hospital visit?

Question: select sum(prescriptions.dose_val_rx) from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 97330 and admissions.dischtime is null ) and prescriptions.drug = 'd5w (excel bag)'

what was the total amount of dose of {drug_name} that patient {patient_id} were prescribed [time_filter_global1]?

what was the total amount of dose of {drug_name} that patient {patient_id} were prescribed [time_filter_global1:rel-hosp-cur]?

Answer: 250.0


Question: what was the amount of pioglitazone that patient 16992 were prescribed in total?

what was the total amount of dose of pioglitazone that patient 16992 were prescribed?

Question: select sum(prescriptions.dose_val_rx) from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 16992 ) and prescriptions.drug = 'pioglitazone'

what was the total amount of dose of {drug_name} that patient {patient_id} were prescribed [time_filter_global1]?

what was the total amount of dose of {drug_name} that patient {patient_id} were prescribed [time_filter_global1:null]?

Answer: 15.0


Question: how much ranitidine has been prescribed to patient 24971 in total in 01/2105?

what was the total amount of dose of ranitidine that patient 24971 were prescribed in 01/2105?

Question: select sum(prescriptions.dose_val_rx) from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 24971 ) and prescriptions.drug = 'ranitidine' and strftime('%Y-%m',prescriptions.startdate) = '2105-01'

what was the total amount of dose of {drug_name} that patient {patient_id} were prescribed [time_filter_global1]?

what was the total amount of dose of {drug_name} that patient {patient_id} were prescribed [time_filter_global1:abs-month-in]?

Answer: 150.0


Question: what is the medication that patient 60552 had been prescribed two times on their last hospital encounter?

what was the name of the drug that patient 60552 were prescribed two times on the last hospital visit?

Question: select t1.drug from ( select prescriptions.drug, count( prescriptions.startdate ) as c1 from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 60552 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) group by prescriptions.drug ) as t1 where t1.c1 = 2

what was the name of the drug that patient {patient_id} were prescribed [n_times] [time_filter_global1]?

what was the name of the drug that patient {patient_id} were prescribed [n_times:two times] [time_filter_global1:rel-hosp-last]?

Answer: 0.9% sodium chloride (mini bag plus)

Answer: acetaminophen

Answer: albuterol 0.083% neb soln

Answer: amiodarone

Answer: calcium gluconate

Answer: docusate sodium

Answer: heparin sodium

Answer: humulin-r insulin

Answer: ipratropium bromide neb

Answer: methylprednisolone na succ.

Answer: ondansetron

Answer: phytonadione

Answer: promethazine hcl

Answer: vancomycin hcl

Answer: warfarin


Question: what was the name of the drug that was prescribed two times to patient 67902 since 126 months ago?

what was the name of the drug that patient 67902 were prescribed two times since 126 month ago?

Question: select t1.drug from ( select prescriptions.drug, count( prescriptions.startdate ) as c1 from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 67902 ) and datetime(prescriptions.startdate) >= datetime(current_time,'-126 month') group by prescriptions.drug ) as t1 where t1.c1 = 2

what was the name of the drug that patient {patient_id} were prescribed [n_times] [time_filter_global1]?

what was the name of the drug that patient {patient_id} were prescribed [n_times:two times] [time_filter_global1:rel-month-since]?

Answer: 1/2 ns

Answer: acetaminophen

Answer: d5w

Answer: insulin

Answer: iso-osmotic dextrose

Answer: metoprolol

Answer: pravastatin

Answer: sw


Question: what is the name of the drug that was prescribed two or more times to patient 16992 in 02/2105?

what was the name of the drug that patient 16992 were prescribed two or more times in 02/2105?

Question: select t1.drug from ( select prescriptions.drug, count( prescriptions.startdate ) as c1 from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 16992 ) and strftime('%Y-%m',prescriptions.startdate) = '2105-02' group by prescriptions.drug ) as t1 where t1.c1 >= 2

what was the name of the drug that patient {patient_id} were prescribed [n_times] [time_filter_global1]?

what was the name of the drug that patient {patient_id} were prescribed [n_times:two or more times] [time_filter_global1:abs-month-in]?

Answer: albuterol 0.083% neb soln

Answer: d5w

Answer: furosemide

Answer: heparin

Answer: insulin

Answer: iso-osmotic dextrose

Answer: lr

Answer: metoprolol

Answer: metoprolol tartrate

Answer: milk of magnesia

Answer: ns

Answer: potassium chloride

Answer: sodium chloride 0.9%  flush


Question: what was the last anion gap value when they visited the hospital first time for patient 69819?

what was the last measured value of a anion gap lab test of patient 69819 on the first hospital visit?

Question: select labevents.valuenum from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 69819 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'anion gap' ) order by labevents.charttime desc limit 1

what was the [time_filter_exact1] measured value of a {lab_name} lab test of patient {patient_id} [time_filter_global1]?

what was the [time_filter_exact1:exact-last] measured value of a {lab_name} lab test of patient {patient_id} [time_filter_global1:rel-hosp-first]?

Answer: 11.0


Question: tell me the first value of the calculated total co2 for patient 13163 when they came to the hospital last time?

what was the first measured value of a calculated total co2 lab test of patient 13163 on the last hospital visit?

Question: select labevents.valuenum from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 13163 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'calculated total co2' ) order by labevents.charttime asc limit 1

what was the [time_filter_exact1] measured value of a {lab_name} lab test of patient {patient_id} [time_filter_global1]?

what was the [time_filter_exact1:exact-first] measured value of a {lab_name} lab test of patient {patient_id} [time_filter_global1:rel-hosp-last]?

Answer: 30.0


Question: what was patient 61751's first measured potassium since 05/2105?

what was the first measured value of a potassium lab test of patient 61751 since 05/2105?

Question: select labevents.valuenum from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 61751 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'potassium' ) and strftime('%Y-%m',labevents.charttime) >= '2105-05' order by labevents.charttime asc limit 1

what was the [time_filter_exact1] measured value of a {lab_name} lab test of patient {patient_id} [time_filter_global1]?

what was the [time_filter_exact1:exact-first] measured value of a {lab_name} lab test of patient {patient_id} [time_filter_global1:abs-month-since]?

Answer: 3.9


Question: what is the name of the lab testing that patient 29611 first received during the last hospital encounter?

what was the name of the lab test that patient 29611 first received on the last hospital visit?

Question: select d_labitems.label from d_labitems where d_labitems.itemid in ( select labevents.itemid from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 29611 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) order by labevents.charttime asc limit 1 )

what was the name of the lab test that patient {patient_id} [time_filter_exact1] received [time_filter_global1]?

what was the name of the lab test that patient {patient_id} [time_filter_exact1:exact-first] received [time_filter_global1:rel-hosp-last]?

Answer: ptt


Question: what test did patient 3403 go through for the first time since 04/2105?

what was the name of the lab test that patient 3403 first received since 04/2105?

Question: select d_labitems.label from d_labitems where d_labitems.itemid in ( select labevents.itemid from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 3403 ) and strftime('%Y-%m',labevents.charttime) >= '2105-04' order by labevents.charttime asc limit 1 )

what was the name of the lab test that patient {patient_id} [time_filter_exact1] received [time_filter_global1]?

what was the name of the lab test that patient {patient_id} [time_filter_exact1:exact-first] received [time_filter_global1:abs-month-since]?

Answer: pt


Question: what lab test did patient 59797 first receive?

what was the name of the lab test that patient 59797 first received?

Question: select d_labitems.label from d_labitems where d_labitems.itemid in ( select labevents.itemid from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 59797 ) order by labevents.charttime asc limit 1 )

what was the name of the lab test that patient {patient_id} [time_filter_exact1] received [time_filter_global1]?

what was the name of the lab test that patient {patient_id} [time_filter_exact1:exact-first] received [time_filter_global1:null]?

Answer: mchc


Question: what is patient 53176's average value for bilirubin, total, body fluid since 2 months ago?

what was the average bilirubin, total, body fluid value of patient 53176 since 2 month ago?

Question: select avg(labevents.valuenum) from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 53176 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'bilirubin, total, body fluid' ) and datetime(labevents.charttime) >= datetime(current_time,'-2 month')

what was the [agg_function] {lab_name} value of patient {patient_id} [time_filter_global1]?

what was the [agg_function:average] {lab_name} value of patient {patient_id} [time_filter_global1:rel-month-since]?

Answer: 1.1


Question: what is patient 11095's maximum mch during the last hospital visit?

what was the maximum mch value of patient 11095 on the last hospital visit?

Question: select max(labevents.valuenum) from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 11095 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'mch' )

what was the [agg_function] {lab_name} value of patient {patient_id} [time_filter_global1]?

what was the [agg_function:maximum] {lab_name} value of patient {patient_id} [time_filter_global1:rel-hosp-last]?

Answer: 32.2


Question: what is patient 72364's minimum ethanol value since 06/2105?

what was the minimum ethanol value of patient 72364 since 06/2105?

Question: select min(labevents.valuenum) from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 72364 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'ethanol' ) and strftime('%Y-%m',labevents.charttime) >= '2105-06'

what was the [agg_function] {lab_name} value of patient {patient_id} [time_filter_global1]?

what was the [agg_function:minimum] {lab_name} value of patient {patient_id} [time_filter_global1:abs-month-since]?

Answer: 405.0


Question: what is the name of the organism found in patient 16904's first microbiological abscess test since 05/2105?

what was the organism name found in the first abscess microbiology test of patient 16904 since 05/2105?

Question: select microbiologyevents.org_name from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 16904 ) and microbiologyevents.spec_type_desc = 'abscess' and microbiologyevents.org_name is not null and strftime('%Y-%m',microbiologyevents.charttime) >= '2105-05' order by microbiologyevents.charttime asc limit 1

what was the organism name found in the [time_filter_exact1] {culture_name} microbiology test of patient {patient_id} [time_filter_global1]?

what was the organism name found in the [time_filter_exact1:exact-first] {culture_name} microbiology test of patient {patient_id} [time_filter_global1:abs-month-since]?

Answer: staph aureus coag +


Question: what was the name of the organism detected in patient 5849's last microbiological urine test since 05/2103?

what was the organism name found in the last urine microbiology test of patient 5849 since 05/2103?

Question: select microbiologyevents.org_name from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 5849 ) and microbiologyevents.spec_type_desc = 'urine' and microbiologyevents.org_name is not null and strftime('%Y-%m',microbiologyevents.charttime) >= '2103-05' order by microbiologyevents.charttime desc limit 1

what was the organism name found in the [time_filter_exact1] {culture_name} microbiology test of patient {patient_id} [time_filter_global1]?

what was the organism name found in the [time_filter_exact1:exact-last] {culture_name} microbiology test of patient {patient_id} [time_filter_global1:abs-month-since]?

Answer: klebsiella pneumoniae


Question: what was the organism name found in the last bile test of patient 7107 since 07/2105?

what was the organism name found in the last bile microbiology test of patient 7107 since 07/2105?

Question: select microbiologyevents.org_name from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 7107 ) and microbiologyevents.spec_type_desc = 'bile' and microbiologyevents.org_name is not null and strftime('%Y-%m',microbiologyevents.charttime) >= '2105-07' order by microbiologyevents.charttime desc limit 1

what was the organism name found in the [time_filter_exact1] {culture_name} microbiology test of patient {patient_id} [time_filter_global1]?

what was the organism name found in the [time_filter_exact1:exact-last] {culture_name} microbiology test of patient {patient_id} [time_filter_global1:abs-month-since]?

Answer: citrobacter koseri


Question: what was the name of the specimen test that patient 40707 was last to receive during their current hospital visit?

what was the name of the specimen that patient 40707 was last tested on the current hospital visit?

Question: select microbiologyevents.spec_type_desc from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 40707 and admissions.dischtime is null ) order by microbiologyevents.charttime desc limit 1

what was the name of the specimen that patient {patient_id} was [time_filter_exact1] tested [time_filter_global1]?

what was the name of the specimen that patient {patient_id} was [time_filter_exact1:exact-last] tested [time_filter_global1:rel-hosp-cur]?

Answer: sputum


Question: tell me the last specimen test that patient 71689 was given on this hospital encounter?

what was the name of the specimen that patient 71689 was last tested on the current hospital visit?

Question: select microbiologyevents.spec_type_desc from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 71689 and admissions.dischtime is null ) order by microbiologyevents.charttime desc limit 1

what was the name of the specimen that patient {patient_id} was [time_filter_exact1] tested [time_filter_global1]?

what was the name of the specimen that patient {patient_id} was [time_filter_exact1:exact-last] tested [time_filter_global1:rel-hosp-cur]?

Answer: blood culture


Question: what was patient 76372's first tested specimen in the current hospital encounter?

what was the name of the specimen that patient 76372 was first tested on the current hospital visit?

Question: select microbiologyevents.spec_type_desc from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 76372 and admissions.dischtime is null ) order by microbiologyevents.charttime asc limit 1

what was the name of the specimen that patient {patient_id} was [time_filter_exact1] tested [time_filter_global1]?

what was the name of the specimen that patient {patient_id} was [time_filter_exact1:exact-first] tested [time_filter_global1:rel-hosp-cur]?

Answer: blood culture


Question: what did patient 23929 first have as his intake?

what was the name of the intake that patient 23929 first had?

Question: select d_items.label from d_items where d_items.itemid in ( select inputevents_cv.itemid from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 23929 ) ) order by inputevents_cv.charttime asc limit 1 )

what was the name of the intake that patient {patient_id} [time_filter_exact1] had [time_filter_global1]?

what was the name of the intake that patient {patient_id} [time_filter_exact1:exact-first] had [time_filter_global1:null]?

Answer: .9% normal saline


Question: what intake did patient 14671 eat for the first time on 12/31/2105?

what was the name of the intake that patient 14671 first had on 12/31/2105?

Question: select d_items.label from d_items where d_items.itemid in ( select inputevents_cv.itemid from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 14671 ) ) and strftime('%Y-%m-%d',inputevents_cv.charttime) = '2105-12-31' order by inputevents_cv.charttime asc limit 1 )

what was the name of the intake that patient {patient_id} [time_filter_exact1] had [time_filter_global1]?

what was the name of the intake that patient {patient_id} [time_filter_exact1:exact-first] had [time_filter_global1:abs-day-in]?

Answer: d5w


Question: what intake did patient 24029 last have since 1311 days ago?

what was the name of the intake that patient 24029 last had since 1311 day ago?

Question: select d_items.label from d_items where d_items.itemid in ( select inputevents_cv.itemid from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 24029 ) ) and datetime(inputevents_cv.charttime) >= datetime(current_time,'-1311 day') order by inputevents_cv.charttime desc limit 1 )

what was the name of the intake that patient {patient_id} [time_filter_exact1] had [time_filter_global1]?

what was the name of the intake that patient {patient_id} [time_filter_exact1:exact-last] had [time_filter_global1:rel-day-since]?

Answer: d5w


Question: what did patient 7165 last have as intake?

what was the name of the intake that patient 7165 last had?

Question: select d_items.label from d_items where d_items.itemid in ( select inputevents_cv.itemid from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 7165 ) ) order by inputevents_cv.charttime desc limit 1 )

what was the name of the intake that patient {patient_id} [time_filter_exact1] had [time_filter_global1]?

what was the name of the intake that patient {patient_id} [time_filter_exact1:exact-last] had [time_filter_global1:null]?

Answer: replete w/fiber


Question: what intake did patient 14203 have for the last time?

what was the name of the intake that patient 14203 last had?

Question: select d_items.label from d_items where d_items.itemid in ( select inputevents_cv.itemid from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 14203 ) ) order by inputevents_cv.charttime desc limit 1 )

what was the name of the intake that patient {patient_id} [time_filter_exact1] had [time_filter_global1]?

what was the name of the intake that patient {patient_id} [time_filter_exact1:exact-last] had [time_filter_global1:null]?

Answer: nepro


Question: what is the total of d10w intake that patient 17694 has received on the last intensive care unit visit?

what was the total volume of d10w intake that patient 17694 received on the last icu visit?

Question: select sum(inputevents_cv.amount) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 17694 ) and icustays.outtime is not null order by icustays.intime desc limit 1 ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'd10w' and d_items.linksto = 'inputevents_cv' )

what was the total volume of {intake_name} intake that patient {patient_id} received [time_filter_global1]?

what was the total volume of {intake_name} intake that patient {patient_id} received [time_filter_global1:rel-icu-last]?

Answer: 11.0


Question: calculate patient 20898's total amount of neosure 30 pg intake.

what was the total volume of neosure 30 pg intake that patient 20898 received?

Question: select sum(inputevents_cv.amount) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 20898 ) ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'neosure 30 pg' and d_items.linksto = 'inputevents_cv' )

what was the total volume of {intake_name} intake that patient {patient_id} received [time_filter_global1]?

what was the total volume of {intake_name} intake that patient {patient_id} received [time_filter_global1:null]?

Answer: 53.0


Question: calculate patient 16368's total tpn d10.0 intake.

what was the total volume of tpn d10.0 intake that patient 16368 received?

Question: select sum(inputevents_cv.amount) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 16368 ) ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'tpn d10.0' and d_items.linksto = 'inputevents_cv' )

what was the total volume of {intake_name} intake that patient {patient_id} received [time_filter_global1]?

what was the total volume of {intake_name} intake that patient {patient_id} received [time_filter_global1:null]?

Answer: 12.1999998093


Question: what was the total sum of inputs patient 15209 had received since 1434 days ago?

what was the total volume of intake that patient 15209 received since 1434 day ago?

Question: select sum(inputevents_cv.amount) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 15209 ) ) and datetime(inputevents_cv.charttime) >= datetime(current_time,'-1434 day')

what was the total volume of intake that patient {patient_id} received [time_filter_global1]?

what was the total volume of intake that patient {patient_id} received [time_filter_global1:rel-day-since]?

Answer: 26893.031119597697


Question: get me patient 31506's total input volume on 07/12/2104.

what was the total volume of intake that patient 31506 received on 07/12/2104?

Question: select sum(inputevents_cv.amount) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 31506 ) ) and strftime('%Y-%m-%d',inputevents_cv.charttime) = '2104-07-12'

what was the total volume of intake that patient {patient_id} received [time_filter_global1]?

what was the total volume of intake that patient {patient_id} received [time_filter_global1:abs-day-in]?

Answer: 865.3974981904


Question: show me patient 4092's total input on the last intensive care unit visit.

what was the total volume of intake that patient 4092 received on the last icu visit?

Question: select sum(inputevents_cv.amount) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 4092 ) and icustays.outtime is not null order by icustays.intime desc limit 1 )

what was the total volume of intake that patient {patient_id} received [time_filter_global1]?

what was the total volume of intake that patient {patient_id} received [time_filter_global1:rel-icu-last]?

Answer: 2870.1176231652


Question: what were the outputs of patient 655 for the first time on the last intensive care unit visit?

what was the name of the output that patient 655 first had on the last icu visit?

Question: select d_items.label from d_items where d_items.itemid in ( select outputevents.itemid from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 655 ) and icustays.outtime is not null order by icustays.intime desc limit 1 ) order by outputevents.charttime asc limit 1 )

what was the name of the output that patient {patient_id} [time_filter_exact1] had [time_filter_global1]?

what was the name of the output that patient {patient_id} [time_filter_exact1:exact-first] had [time_filter_global1:rel-icu-last]?

Answer: foley


Question: name the output that patient 29309 had for the first time on 01/06/2105?

what was the name of the output that patient 29309 first had on 01/06/2105?

Question: select d_items.label from d_items where d_items.itemid in ( select outputevents.itemid from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 29309 ) ) and strftime('%Y-%m-%d',outputevents.charttime) = '2105-01-06' order by outputevents.charttime asc limit 1 )

what was the name of the output that patient {patient_id} [time_filter_exact1] had [time_filter_global1]?

what was the name of the output that patient {patient_id} [time_filter_exact1:exact-first] had [time_filter_global1:abs-day-in]?

Answer: urine out foley


Question: what output did patient 31300 last have until 06/14/2105?

what was the name of the output that patient 31300 last had until 06/14/2105?

Question: select d_items.label from d_items where d_items.itemid in ( select outputevents.itemid from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 31300 ) ) and strftime('%Y-%m-%d',outputevents.charttime) <= '2105-06-14' order by outputevents.charttime desc limit 1 )

what was the name of the output that patient {patient_id} [time_filter_exact1] had [time_filter_global1]?

what was the name of the output that patient {patient_id} [time_filter_exact1:exact-last] had [time_filter_global1:abs-day-until]?

Answer: foley


Question: tell me patient 92788's total foley output on the current icu visit.

what was the total volume of foley output that patient 92788 had on the current icu visit?

Question: select sum(outputevents.value) from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 92788 ) and icustays.outtime is null ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'foley' and d_items.linksto = 'outputevents' )

what was the total volume of {output_name} output that patient {patient_id} had [time_filter_global1]?

what was the total volume of {output_name} output that patient {patient_id} had [time_filter_global1:rel-icu-cur]?

Answer: 4335.0


Question: what is the total volume of output patient 28484 had on the first icu visit?

what was the total volume of output that patient 28484 had on the first icu visit?

Question: select sum(outputevents.value) from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 28484 ) and icustays.outtime is not null order by icustays.intime asc limit 1 )

what was the total volume of output that patient {patient_id} had [time_filter_global1]?

what was the total volume of output that patient {patient_id} had [time_filter_global1:rel-icu-first]?

Answer: 7657.5


Question: what is the total amount of output from patient 5828 on the current intensive care unit visit?

what was the total volume of output that patient 5828 had on the current icu visit?

Question: select sum(outputevents.value) from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 5828 ) and icustays.outtime is null )

what was the total volume of output that patient {patient_id} had [time_filter_global1]?

what was the total volume of output that patient {patient_id} had [time_filter_global1:rel-icu-cur]?

Answer: 35124.5


Question: show me patient 55360's total volume of output on the current intensive care unit visit.

what was the total volume of output that patient 55360 had on the current icu visit?

Question: select sum(outputevents.value) from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 55360 ) and icustays.outtime is null )

what was the total volume of output that patient {patient_id} had [time_filter_global1]?

what was the total volume of output that patient {patient_id} had [time_filter_global1:rel-icu-cur]?

Answer: 10243.5500001014


Question: what is the difference between the total output and the input sum of patient 19175 on 11/04/2105?

what is the difference between the total volume of intake and output of patient 19175 on 11/04/2105?

Question: select ( select sum(inputevents_cv.amount) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 19175 ) ) and strftime('%Y-%m-%d',inputevents_cv.charttime) = '2105-11-04' ) - ( select sum(outputevents.value) from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 19175 ) ) and strftime('%Y-%m-%d',outputevents.charttime) = '2105-11-04' )

what is the difference between the total volume of intake and output of patient {patient_id} [time_filter_global1]?

what is the difference between the total volume of intake and output of patient {patient_id} [time_filter_global1:abs-day-in]?

Answer: -857.0700027941


Question: calculate the difference between the total amount of input and output of patient 13054.

what is the difference between the total volume of intake and output of patient 13054?

Question: select ( select sum(inputevents_cv.amount) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 13054 ) ) ) - ( select sum(outputevents.value) from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 13054 ) ) )

what is the difference between the total volume of intake and output of patient {patient_id} [time_filter_global1]?

what is the difference between the total volume of intake and output of patient {patient_id} [time_filter_global1:null]?

Answer: 18155.547315390075


Question: get me the difference between patient 1784's total volume of input and output since 05/20/2101.

what is the difference between the total volume of intake and output of patient 1784 since 05/20/2101?

Question: select ( select sum(inputevents_cv.amount) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 1784 ) ) and strftime('%Y-%m-%d',inputevents_cv.charttime) >= '2101-05-20' ) - ( select sum(outputevents.value) from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 1784 ) ) and strftime('%Y-%m-%d',outputevents.charttime) >= '2101-05-20' )

what is the difference between the total volume of intake and output of patient {patient_id} [time_filter_global1]?

what is the difference between the total volume of intake and output of patient {patient_id} [time_filter_global1:abs-day-since]?

Answer: -1311.1042686105998


Question: since 10/11/2104 what was patient 1784's last arterial bp mean?

what was the last measured arterial bp mean of patient 1784 since 10/11/2104?

Question: select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 1784 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp mean' and d_items.linksto = 'chartevents' ) and strftime('%Y-%m-%d',chartevents.charttime) >= '2104-10-11' order by chartevents.charttime desc limit 1

what was the [time_filter_exact1] measured {vital_name} of patient {patient_id} [time_filter_global1]?

what was the [time_filter_exact1:exact-last] measured {vital_name} of patient {patient_id} [time_filter_global1:abs-day-since]?

['other', 'physician', 'health_records', 'nursing']

Answer: 80.0


Question: what's patient 27465's minimum temperature c (calc) since 03/19/2104.

what was the minimum temperature c (calc) of patient 27465 since 03/19/2104?

Question: select min(chartevents.valuenum) from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 27465 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'temperature c (calc)' and d_items.linksto = 'chartevents' ) and strftime('%Y-%m-%d',chartevents.charttime) >= '2104-03-19'

what was the [agg_function] {vital_name} of patient {patient_id} [time_filter_global1]?

what was the [agg_function:minimum] {vital_name} of patient {patient_id} [time_filter_global1:abs-day-since]?

Answer: 36.05559921264648


Question: what is patient 24517's minimum arterial bp [diastolic] value until 08/22/2104?

what was the minimum arterial bp [diastolic] of patient 24517 until 08/22/2104?

Question: select min(chartevents.valuenum) from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 24517 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp [diastolic]' and d_items.linksto = 'chartevents' ) and strftime('%Y-%m-%d',chartevents.charttime) <= '2104-08-22'

what was the [agg_function] {vital_name} of patient {patient_id} [time_filter_global1]?

what was the [agg_function:minimum] {vital_name} of patient {patient_id} [time_filter_global1:abs-day-until]?

Answer: 40.0


Question: what is patient 4326's minimum arterial bp [diastolic] on 01/24/2105?

what was the minimum arterial bp [diastolic] of patient 4326 on 01/24/2105?

Question: select min(chartevents.valuenum) from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 4326 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp [diastolic]' and d_items.linksto = 'chartevents' ) and strftime('%Y-%m-%d',chartevents.charttime) = '2105-01-24'

what was the [agg_function] {vital_name} of patient {patient_id} [time_filter_global1]?

what was the [agg_function:minimum] {vital_name} of patient {patient_id} [time_filter_global1:abs-day-in]?

Answer: 39.0


Question: how much does patient 74716 pay for his hospitalization on their last hospital visit?

what was the total hospital cost of patient 74716 on the last hospital visit?

Question: select sum(cost.cost) from cost where cost.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 74716 and admissions.dischtime is not null order by admissions.admittime desc limit 1 )

what is_verb the total hospital cost of patient {patient_id} [time_filter_global1]?

what is_verb the total hospital cost of patient {patient_id} [time_filter_global1:rel-hosp-last]?

Answer: 5189.140000000006


Question: how much does patient 20034 have to pay for their hospital stay in 2104?

what was the total hospital cost of patient 20034 in 2104?

Question: select sum(cost.cost) from cost where cost.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 20034 ) and strftime('%Y',cost.chargetime) = '2104'

what is_verb the total hospital cost of patient {patient_id} [time_filter_global1]?

what is_verb the total hospital cost of patient {patient_id} [time_filter_global1:abs-year-in]?

Answer: 2182.249999999999


Question: until 2104, when was the last hospital admission time of patient 32168?

when was the last hospital admission time of patient 32168 until 2104?

Question: select admissions.admittime from admissions where admissions.subject_id = 32168 and strftime('%Y',admissions.admittime) <= '2104' order by admissions.admittime desc limit 1

when was the [time_filter_exact1] hospital admission time of patient {patient_id} [time_filter_global1]?

when was the [time_filter_exact1:exact-last] hospital admission time of patient {patient_id} [time_filter_global1:abs-year-until]?

['other', 'physician', 'insurance_review', 'nursing']

Answer: 2101-03-26 01:16:00


Question: when was the first time patient 96006 was admitted to hospital in 2103?

when was the first hospital admission time of patient 96006 in 2103?

Question: select admissions.admittime from admissions where admissions.subject_id = 96006 and strftime('%Y',admissions.admittime) = '2103' order by admissions.admittime asc limit 1

when was the [time_filter_exact1] hospital admission time of patient {patient_id} [time_filter_global1]?

when was the [time_filter_exact1:exact-first] hospital admission time of patient {patient_id} [time_filter_global1:abs-year-in]?

['other', 'physician', 'insurance_review', 'nursing']

Answer: 2103-10-25 16:49:00


Question: when did patient 59002 last visit the hospital?

when was the last hospital admission time of patient 59002?

Question: select admissions.admittime from admissions where admissions.subject_id = 59002 order by admissions.admittime desc limit 1

when was the [time_filter_exact1] hospital admission time of patient {patient_id} [time_filter_global1]?

when was the [time_filter_exact1:exact-last] hospital admission time of patient {patient_id} [time_filter_global1:null]?

['other', 'physician', 'insurance_review', 'nursing']

Answer: 2103-12-17 07:15:00


Question: what was patient 29666's first hospital admission time since 2105?

when was the first hospital admission time of patient 29666 since 2105?

Question: select admissions.admittime from admissions where admissions.subject_id = 29666 and strftime('%Y',admissions.admittime) >= '2105' order by admissions.admittime asc limit 1

when was the [time_filter_exact1] hospital admission time of patient {patient_id} [time_filter_global1]?

when was the [time_filter_exact1:exact-first] hospital admission time of patient {patient_id} [time_filter_global1:abs-year-since]?

['other', 'physician', 'insurance_review', 'nursing']

Answer: 2105-03-31 18:44:00


Question: when was patient 22120 first admitted via the emergency room admit to the hospital?

when was the first hospital admission time that patient 22120 was admitted via emergency room admit?

Question: select admissions.admittime from admissions where admissions.subject_id = 22120 and admissions.admission_location = 'emergency room admit' order by admissions.admittime asc limit 1

when was the [time_filter_exact1] hospital admission time that patient {patient_id} was admitted via {admission_route} [time_filter_global1]?

when was the [time_filter_exact1:exact-first] hospital admission time that patient {patient_id} was admitted via {admission_route} [time_filter_global1:null]?

Answer: 2105-10-10 05:58:00


Question: until 2103, what was the last hospital admission time of patient 90917 via the clinic referral/premature?

when was the last hospital admission time that patient 90917 was admitted via clinic referral/premature until 2103?

Question: select admissions.admittime from admissions where admissions.subject_id = 90917 and admissions.admission_location = 'clinic referral/premature' and strftime('%Y',admissions.admittime) <= '2103' order by admissions.admittime desc limit 1

when was the [time_filter_exact1] hospital admission time that patient {patient_id} was admitted via {admission_route} [time_filter_global1]?

when was the [time_filter_exact1:exact-last] hospital admission time that patient {patient_id} was admitted via {admission_route} [time_filter_global1:abs-year-until]?

Answer: 2102-11-16 19:55:00


Question: when was patient 88079 last admitted to the hospital via phys referral/normal deli since 3 years ago?

when was the last hospital admission time that patient 88079 was admitted via phys referral/normal deli since 3 year ago?

Question: select admissions.admittime from admissions where admissions.subject_id = 88079 and admissions.admission_location = 'phys referral/normal deli' and datetime(admissions.admittime) >= datetime(current_time,'-3 year') order by admissions.admittime desc limit 1

when was the [time_filter_exact1] hospital admission time that patient {patient_id} was admitted via {admission_route} [time_filter_global1]?

when was the [time_filter_exact1:exact-last] hospital admission time that patient {patient_id} was admitted via {admission_route} [time_filter_global1:rel-year-since]?

Answer: 2103-02-23 17:27:00


Question: what was patient 27146's first hospital admission time via phys referral/normal deli since 2103?

when was the first hospital admission time that patient 27146 was admitted via phys referral/normal deli since 2103?

Question: select admissions.admittime from admissions where admissions.subject_id = 27146 and admissions.admission_location = 'phys referral/normal deli' and strftime('%Y',admissions.admittime) >= '2103' order by admissions.admittime asc limit 1

when was the [time_filter_exact1] hospital admission time that patient {patient_id} was admitted via {admission_route} [time_filter_global1]?

when was the [time_filter_exact1:exact-first] hospital admission time that patient {patient_id} was admitted via {admission_route} [time_filter_global1:abs-year-since]?

Answer: 2105-12-30 14:17:00


Question: when did patient 46252 leave the hospital for the first time since 2104?

when was the first hospital discharge time of patient 46252 since 2104?

Question: select admissions.dischtime from admissions where admissions.subject_id = 46252 and strftime('%Y',admissions.dischtime) >= '2104' order by admissions.dischtime asc limit 1

when was the [time_filter_exact1] hospital discharge time of patient {patient_id} [time_filter_global1]?

when was the [time_filter_exact1:exact-first] hospital discharge time of patient {patient_id} [time_filter_global1:abs-year-since]?

Answer: 2105-04-03 14:33:00


Question: tell me the length of stay of patient 73913's first stay in icu.

what was the first length of icu stay of patient 73913?

Question: select strftime('%j',icustays.outtime) - strftime('%j',icustays.intime) from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 73913 ) and icustays.outtime is not null order by icustays.intime asc limit 1

what was the [time_filter_exact1] length of icu stay of patient {patient_id}?

what was the [time_filter_exact1:exact-first] length of icu stay of patient {patient_id}?

Answer: 1


Question: calculate the length of stay of the first stay of patient 27392 in the icu.

what was the first length of icu stay of patient 27392?

Question: select strftime('%j',icustays.outtime) - strftime('%j',icustays.intime) from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 27392 ) and icustays.outtime is not null order by icustays.intime asc limit 1

what was the [time_filter_exact1] length of icu stay of patient {patient_id}?

what was the [time_filter_exact1:exact-first] length of icu stay of patient {patient_id}?

Answer: 4


Question: give me the length of stay of patient 61683's last icu stay.

what was the last length of icu stay of patient 61683?

Question: select strftime('%j',icustays.outtime) - strftime('%j',icustays.intime) from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 61683 ) and icustays.outtime is not null order by icustays.intime desc limit 1

what was the [time_filter_exact1] length of icu stay of patient {patient_id}?

what was the [time_filter_exact1:exact-last] length of icu stay of patient {patient_id}?

Answer: 1


Question: tell me the length of stay of patient 19352's first intensive care unit stay.

what was the first length of icu stay of patient 19352?

Question: select strftime('%j',icustays.outtime) - strftime('%j',icustays.intime) from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 19352 ) and icustays.outtime is not null order by icustays.intime asc limit 1

what was the [time_filter_exact1] length of icu stay of patient {patient_id}?

what was the [time_filter_exact1:exact-first] length of icu stay of patient {patient_id}?

Answer: 11


Question: calculate the los of patient 28037's last icu stay.

what was the last length of icu stay of patient 28037?

Question: select strftime('%j',icustays.outtime) - strftime('%j',icustays.intime) from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 28037 ) and icustays.outtime is not null order by icustays.intime desc limit 1

what was the [time_filter_exact1] length of icu stay of patient {patient_id}?

what was the [time_filter_exact1:exact-last] length of icu stay of patient {patient_id}?

Answer: 4


Question: when was patient 1232 diagnosed with sed,hyp,anxiolytc ab-con until 2103 for the last time?

when was the last time that patient 1232 was diagnosed with sed,hyp,anxiolytc ab-con until 2103?

Question: select diagnoses_icd.charttime from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'sed,hyp,anxiolytc ab-con' ) and diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 1232 ) and strftime('%Y',diagnoses_icd.charttime) <= '2103' order by diagnoses_icd.charttime desc limit 1

when was the [time_filter_exact1] time that patient {patient_id} was diagnosed with {diagnosis_name} [time_filter_global1]?

when was the [time_filter_exact1:exact-last] time that patient {patient_id} was diagnosed with {diagnosis_name} [time_filter_global1:abs-year-until]?

Answer: 2102-03-31 23:58:00


Question: when was the first time patient 30296 has been diagnosed with liver transplant status since 2105?

when was the first time that patient 30296 was diagnosed with liver transplant status since 2105?

Question: select diagnoses_icd.charttime from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'liver transplant status' ) and diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 30296 ) and strftime('%Y',diagnoses_icd.charttime) >= '2105' order by diagnoses_icd.charttime asc limit 1

when was the [time_filter_exact1] time that patient {patient_id} was diagnosed with {diagnosis_name} [time_filter_global1]?

when was the [time_filter_exact1:exact-first] time that patient {patient_id} was diagnosed with {diagnosis_name} [time_filter_global1:abs-year-since]?

Answer: 2105-05-27 23:43:00


Question: when was patient 15135 diagnosed with undeterm pois-psychotrop for the first time?

when was the first time that patient 15135 was diagnosed with undeterm pois-psychotrop?

Question: select diagnoses_icd.charttime from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'undeterm pois-psychotrop' ) and diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 15135 ) order by diagnoses_icd.charttime asc limit 1

when was the [time_filter_exact1] time that patient {patient_id} was diagnosed with {diagnosis_name} [time_filter_global1]?

when was the [time_filter_exact1:exact-first] time that patient {patient_id} was diagnosed with {diagnosis_name} [time_filter_global1:null]?

Answer: 2105-02-14 04:51:00


Question: tell me the time when patient 48868 was last diagnosed with ac salpingo-oophoritis in their last hospital visit?

when was the last time that patient 48868 was diagnosed with ac salpingo-oophoritis on the last hospital visit?

Question: select diagnoses_icd.charttime from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'ac salpingo-oophoritis' ) and diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 48868 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) order by diagnoses_icd.charttime desc limit 1

when was the [time_filter_exact1] time that patient {patient_id} was diagnosed with {diagnosis_name} [time_filter_global1]?

when was the [time_filter_exact1:exact-last] time that patient {patient_id} was diagnosed with {diagnosis_name} [time_filter_global1:rel-hosp-last]?

Answer: 2102-06-06 21:41:00


Question: what was patient 11914's first procedure time?

when was the first procedure time of patient 11914?

Question: select procedures_icd.charttime from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 11914 ) order by procedures_icd.charttime asc limit 1

when was the [time_filter_exact1] procedure time of patient {patient_id} [time_filter_global1]?

when was the [time_filter_exact1:exact-first] procedure time of patient {patient_id} [time_filter_global1:null]?

Answer: 2105-02-14 15:00:00


Question: when patient 21134 received the procedure for the last time in 2105?

when was the last procedure time of patient 21134 in 2105?

Question: select procedures_icd.charttime from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 21134 ) and strftime('%Y',procedures_icd.charttime) = '2105' order by procedures_icd.charttime desc limit 1

when was the [time_filter_exact1] procedure time of patient {patient_id} [time_filter_global1]?

when was the [time_filter_exact1:exact-last] procedure time of patient {patient_id} [time_filter_global1:abs-year-in]?

Answer: 2105-09-12 12:45:00


Question: when did patient 94937 have a procedure for the first time since 2105?

when was the first procedure time of patient 94937 since 2105?

Question: select procedures_icd.charttime from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 94937 ) and strftime('%Y',procedures_icd.charttime) >= '2105' order by procedures_icd.charttime asc limit 1

when was the [time_filter_exact1] procedure time of patient {patient_id} [time_filter_global1]?

when was the [time_filter_exact1:exact-first] procedure time of patient {patient_id} [time_filter_global1:abs-year-since]?

Answer: 2105-01-21 15:11:00


Question: when did patient 43052 get a procedure for the last time since 1 year ago?

when was the last procedure time of patient 43052 since 1 year ago?

Question: select procedures_icd.charttime from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 43052 ) and datetime(procedures_icd.charttime) >= datetime(current_time,'-1 year') order by procedures_icd.charttime desc limit 1

when was the [time_filter_exact1] procedure time of patient {patient_id} [time_filter_global1]?

when was the [time_filter_exact1:exact-last] procedure time of patient {patient_id} [time_filter_global1:rel-year-since]?

Answer: 2105-04-29 19:00:00


Question: when did patient 19040 first get a procedure on their first hospital visit?

when was the first procedure time of patient 19040 on the first hospital visit?

Question: select procedures_icd.charttime from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 19040 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) order by procedures_icd.charttime asc limit 1

when was the [time_filter_exact1] procedure time of patient {patient_id} [time_filter_global1]?

when was the [time_filter_exact1:exact-first] procedure time of patient {patient_id} [time_filter_global1:rel-hosp-first]?

Answer: 2103-03-07 14:30:00


Question: when did patient 25050 last receive spinal tap since 1 year ago?

when was the last time that patient 25050 received a spinal tap procedure since 1 year ago?

Question: select procedures_icd.charttime from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'spinal tap' ) and procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 25050 ) and datetime(procedures_icd.charttime) >= datetime(current_time,'-1 year') order by procedures_icd.charttime desc limit 1

when was the [time_filter_exact1] time that patient {patient_id} received a {procedure_name} procedure [time_filter_global1]?

when was the [time_filter_exact1:exact-last] time that patient {patient_id} received a {procedure_name} procedure [time_filter_global1:rel-year-since]?

Answer: 2105-12-26 14:14:00


Question: when is the last time patient 9566 was prescribed a drug since 07/2105?

when was the last prescription time of patient 9566 since 07/2105?

Question: select prescriptions.startdate from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 9566 ) and strftime('%Y-%m',prescriptions.startdate) >= '2105-07' order by prescriptions.startdate desc limit 1

when was the [time_filter_exact1] prescription time of patient {patient_id} [time_filter_global1]?

when was the [time_filter_exact1:exact-last] prescription time of patient {patient_id} [time_filter_global1:abs-month-since]?

Answer: 2105-12-31 00:00:00


Question: what time was the last time that patient 9241 was prescribed medicine during the first hospital encounter?

when was the last prescription time of patient 9241 on the first hospital visit?

Question: select prescriptions.startdate from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 9241 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) order by prescriptions.startdate desc limit 1

when was the [time_filter_exact1] prescription time of patient {patient_id} [time_filter_global1]?

when was the [time_filter_exact1:exact-last] prescription time of patient {patient_id} [time_filter_global1:rel-hosp-first]?

Answer: 2105-10-09 00:00:00


Question: when was patient 51858 last prescribed for a medication since 12/2105?

when was the last prescription time of patient 51858 since 12/2105?

Question: select prescriptions.startdate from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 51858 ) and strftime('%Y-%m',prescriptions.startdate) >= '2105-12' order by prescriptions.startdate desc limit 1

when was the [time_filter_exact1] prescription time of patient {patient_id} [time_filter_global1]?

when was the [time_filter_exact1:exact-last] prescription time of patient {patient_id} [time_filter_global1:abs-month-since]?

Answer: 2105-12-31 00:00:00


Question: when did patient 15107 last receive a prescription in 11/2104?

when was the last prescription time of patient 15107 in 11/2104?

Question: select prescriptions.startdate from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 15107 ) and strftime('%Y-%m',prescriptions.startdate) = '2104-11' order by prescriptions.startdate desc limit 1

when was the [time_filter_exact1] prescription time of patient {patient_id} [time_filter_global1]?

when was the [time_filter_exact1:exact-last] prescription time of patient {patient_id} [time_filter_global1:abs-month-in]?

Answer: 2104-11-28 00:00:00


Question: when did patient 47295 have a prescription for the last time until 09/2104?

when was the last prescription time of patient 47295 until 09/2104?

Question: select prescriptions.startdate from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 47295 ) and strftime('%Y-%m',prescriptions.startdate) <= '2104-09' order by prescriptions.startdate desc limit 1

when was the [time_filter_exact1] prescription time of patient {patient_id} [time_filter_global1]?

when was the [time_filter_exact1:exact-last] prescription time of patient {patient_id} [time_filter_global1:abs-month-until]?

Answer: 2100-05-04 00:00:00


Question: when did patient 22517 first get prescribed vancomycin in 05/2102?

when was the first time that patient 22517 was prescribed vancomycin in 05/2102?

Question: select prescriptions.startdate from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 22517 ) and prescriptions.drug = 'vancomycin' and strftime('%Y-%m',prescriptions.startdate) = '2102-05' order by prescriptions.startdate asc limit 1

when was the [time_filter_exact1] time that patient {patient_id} was prescribed {drug_name} [time_filter_global1]?

when was the [time_filter_exact1:exact-first] time that patient {patient_id} was prescribed {drug_name} [time_filter_global1:abs-month-in]?

Answer: 2102-05-14 00:00:00


Question: what was patient 20441's last prescription time for darunavir?

when was the last time that patient 20441 was prescribed darunavir?

Question: select prescriptions.startdate from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 20441 ) and prescriptions.drug = 'darunavir' order by prescriptions.startdate desc limit 1

when was the [time_filter_exact1] time that patient {patient_id} was prescribed {drug_name} [time_filter_global1]?

when was the [time_filter_exact1:exact-last] time that patient {patient_id} was prescribed {drug_name} [time_filter_global1:null]?

Answer: 2105-02-28 00:00:00


Question: when iso-osmotic dextrose and insulin was prescribed to patient 50480 for the first time until 02/2100 at the same time?

when was the first time that patient 50480 was prescribed iso-osmotic dextrose and insulin at the same time until 02/2100?

Question: select t1.startdate from ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'iso-osmotic dextrose' and admissions.subject_id = 50480 and strftime('%Y-%m',prescriptions.startdate) <= '2100-02' ) as t1 join ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'insulin' and admissions.subject_id = 50480 and strftime('%Y-%m',prescriptions.startdate) <= '2100-02' ) as t2 on t1.subject_id = t2.subject_id where datetime(t1.startdate) = datetime(t2.startdate) order by t1.startdate asc limit 1

when was the [time_filter_exact1] time that patient {patient_id} was prescribed {drug_name1} and {drug_name2} [time_filter_within] [time_filter_global1]?

when was the [time_filter_exact1:exact-first] time that patient {patient_id} was prescribed {drug_name1} and {drug_name2} [time_filter_within:within-same] [time_filter_global1:abs-month-until]?

Answer: 2100-01-30 00:00:00


Question: in 04/2104, when was the last time patient 69289 was prescribed lactulose and potassium chloride at the same time?

when was the last time that patient 69289 was prescribed lactulose and potassium chloride at the same time in 04/2104?

Question: select t1.startdate from ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'lactulose' and admissions.subject_id = 69289 and strftime('%Y-%m',prescriptions.startdate) = '2104-04' ) as t1 join ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'potassium chloride' and admissions.subject_id = 69289 and strftime('%Y-%m',prescriptions.startdate) = '2104-04' ) as t2 on t1.subject_id = t2.subject_id where datetime(t1.startdate) = datetime(t2.startdate) order by t1.startdate desc limit 1

when was the [time_filter_exact1] time that patient {patient_id} was prescribed {drug_name1} and {drug_name2} [time_filter_within] [time_filter_global1]?

when was the [time_filter_exact1:exact-last] time that patient {patient_id} was prescribed {drug_name1} and {drug_name2} [time_filter_within:within-same] [time_filter_global1:abs-month-in]?

Answer: 2104-04-03 00:00:00


Question: when was patient 25869 prescribed for the first time since 16 months ago a medication via ng route?

when was the first time that patient 25869 was prescribed a medication via ng route since 16 month ago?

Question: select prescriptions.startdate from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 25869 ) and prescriptions.route = 'ng' and datetime(prescriptions.startdate) >= datetime(current_time,'-16 month') order by prescriptions.startdate asc limit 1

when was the [time_filter_exact1] time that patient {patient_id} was prescribed a medication via {drug_route} route [time_filter_global1]?

when was the [time_filter_exact1:exact-first] time that patient {patient_id} was prescribed a medication via {drug_route} route [time_filter_global1:rel-month-since]?

Answer: 2105-04-15 00:00:00


Question: when was the last time that patient 1902 was prescribed a medication via iv during the current hospital visit?

when was the last time that patient 1902 was prescribed a medication via iv route on the current hospital visit?

Question: select prescriptions.startdate from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 1902 and admissions.dischtime is null ) and prescriptions.route = 'iv' order by prescriptions.startdate desc limit 1

when was the [time_filter_exact1] time that patient {patient_id} was prescribed a medication via {drug_route} route [time_filter_global1]?

when was the [time_filter_exact1:exact-last] time that patient {patient_id} was prescribed a medication via {drug_route} route [time_filter_global1:rel-hosp-cur]?

Answer: 2105-12-30 00:00:00


Question: when was patient 28775 prescribed a drug via im route for the last time in 03/2103?

when was the last time that patient 28775 was prescribed a medication via im route in 03/2103?

Question: select prescriptions.startdate from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 28775 ) and prescriptions.route = 'im' and strftime('%Y-%m',prescriptions.startdate) = '2103-03' order by prescriptions.startdate desc limit 1

when was the [time_filter_exact1] time that patient {patient_id} was prescribed a medication via {drug_route} route [time_filter_global1]?

when was the [time_filter_exact1:exact-last] time that patient {patient_id} was prescribed a medication via {drug_route} route [time_filter_global1:abs-month-in]?

Answer: 2103-03-08 00:00:00


Question: when was patient 27362 first prescribed a medication via tp in 07/2104?

when was the first time that patient 27362 was prescribed a medication via tp route in 07/2104?

Question: select prescriptions.startdate from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 27362 ) and prescriptions.route = 'tp' and strftime('%Y-%m',prescriptions.startdate) = '2104-07' order by prescriptions.startdate asc limit 1

when was the [time_filter_exact1] time that patient {patient_id} was prescribed a medication via {drug_route} route [time_filter_global1]?

when was the [time_filter_exact1:exact-first] time that patient {patient_id} was prescribed a medication via {drug_route} route [time_filter_global1:abs-month-in]?

Answer: 2104-07-24 00:00:00


Question: when did patient 78221 first receive a lab test until 11/2101?

when was the first lab test of patient 78221 until 11/2101?

Question: select labevents.charttime from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 78221 ) and strftime('%Y-%m',labevents.charttime) <= '2101-11' order by labevents.charttime asc limit 1

when was the [time_filter_exact1] lab test of patient {patient_id} [time_filter_global1]?

when was the [time_filter_exact1:exact-first] lab test of patient {patient_id} [time_filter_global1:abs-month-until]?

Answer: 2100-05-31 10:59:00


Question: when did patient 11322 receive a lab test for the first time since 111 months ago?

when was the first lab test of patient 11322 since 111 month ago?

Question: select labevents.charttime from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 11322 ) and datetime(labevents.charttime) >= datetime(current_time,'-111 month') order by labevents.charttime asc limit 1

when was the [time_filter_exact1] lab test of patient {patient_id} [time_filter_global1]?

when was the [time_filter_exact1:exact-first] lab test of patient {patient_id} [time_filter_global1:rel-month-since]?

Answer: 2104-12-05 07:30:00


Question: when did patient 11322 get a lab test for the first time since 111 months ago?

when was the first lab test of patient 11322 since 111 month ago?

Question: select labevents.charttime from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 11322 ) and datetime(labevents.charttime) >= datetime(current_time,'-111 month') order by labevents.charttime asc limit 1

when was the [time_filter_exact1] lab test of patient {patient_id} [time_filter_global1]?

when was the [time_filter_exact1:exact-first] lab test of patient {patient_id} [time_filter_global1:rel-month-since]?

Answer: 2104-12-05 07:30:00


Question: when did patient 20034 last receive oxygen saturation test in 06/2104?

when was the last time that patient 20034 received a oxygen saturation lab test in 06/2104?

Question: select labevents.charttime from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'oxygen saturation' ) and labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 20034 ) and strftime('%Y-%m',labevents.charttime) = '2104-06' order by labevents.charttime desc limit 1

when was the [time_filter_exact1] time that patient {patient_id} received a {lab_name} lab test [time_filter_global1]?

when was the [time_filter_exact1:exact-last] time that patient {patient_id} received a {lab_name} lab test [time_filter_global1:abs-month-in]?

Answer: 2104-06-14 14:18:00