Question: how many patients were prescribed with docusate sodium within 2 months after the procedure of non-invasive mech vent, in 2102?

count the number of patients who were prescribed docusate sodium within 2 month after having received a non-invasive mech vent procedure in 2102.

Question: select count( distinct t1.subject_id ) from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'non-invasive mech vent' ) and strftime('%Y',procedures_icd.charttime) = '2102' ) as t1 join ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'docusate sodium' and strftime('%Y',prescriptions.startdate) = '2102' ) 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 month')

count the number of patients who were prescribed {drug_name} [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1].

count the number of patients who were prescribed {drug_name} [time_filter_within:within-n_month] after having received a {procedure_name} procedure [time_filter_global1:abs-year-in].

Answer: 0


Question: in this year, how many patients were prescribed with hydrochlorothiazide within 2 months after receiving appl ext fix-tib/fibula?

count the number of patients who were prescribed hydrochlorothiazide within 2 month after having received a appl ext fix-tib/fibula procedure this year.

Question: select count( distinct t1.subject_id ) from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'appl ext fix-tib/fibula' ) and datetime(procedures_icd.charttime,'start of year') = datetime(current_time,'start of year','-0 year') ) as t1 join ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'hydrochlorothiazide' and datetime(prescriptions.startdate,'start of year') = datetime(current_time,'start of year','-0 year') ) 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 month')

count the number of patients who were prescribed {drug_name} [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1].

count the number of patients who were prescribed {drug_name} [time_filter_within:within-n_month] after having received a {procedure_name} procedure [time_filter_global1:rel-year-this].

Answer: 0


Question: count the number of patients for whom neostigmine was prescribed in the same month after having been diagnosed during the previous year with atherosclerosis nec.

count the number of patients who were prescribed neostigmine within the same month after having been diagnosed with atherosclerosis nec last year.

Question: select count( distinct t1.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'atherosclerosis nec' ) and datetime(diagnoses_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') ) as t1 join ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'neostigmine' and datetime(prescriptions.startdate,'start of year') = datetime(current_time,'start of year','-1 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and datetime(t1.charttime,'start of month') = datetime(t2.startdate,'start of month')

count the number of patients who were prescribed {drug_name} [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1].

count the number of patients who were prescribed {drug_name} [time_filter_within:within-month] after having been diagnosed with {diagnosis_name} [time_filter_global1:rel-year-last].

Answer: 0


Question: how many patients were prescribed with ciprofloxacin iv within the same month during a year before after diagnosis of ileostomy status?

count the number of patients who were prescribed ciprofloxacin iv within the same month after having been diagnosed with ileostomy status last year.

Question: select count( distinct t1.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'ileostomy status' ) and datetime(diagnoses_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') ) as t1 join ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'ciprofloxacin iv' and datetime(prescriptions.startdate,'start of year') = datetime(current_time,'start of year','-1 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and datetime(t1.charttime,'start of month') = datetime(t2.startdate,'start of month')

count the number of patients who were prescribed {drug_name} [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1].

count the number of patients who were prescribed {drug_name} [time_filter_within:within-month] after having been diagnosed with {diagnosis_name} [time_filter_global1:rel-year-last].

Answer: 0


Question: since 4 years ago, how many patients were prescribed with dextrose 5% within 2 months after diagnosed with septicemia nos?

count the number of patients who were prescribed dextrose 5% within 2 month after having been diagnosed with septicemia nos since 4 year ago.

Question: select count( distinct t1.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'septicemia nos' ) and datetime(diagnoses_icd.charttime) >= datetime(current_time,'-4 year') ) as t1 join ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'dextrose 5%' and datetime(prescriptions.startdate) >= datetime(current_time,'-4 year') ) 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 month')

count the number of patients who were prescribed {drug_name} [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1].

count the number of patients who were prescribed {drug_name} [time_filter_within:within-n_month] after having been diagnosed with {diagnosis_name} [time_filter_global1:rel-year-since].

Answer: 21


Question: how many patients were prescribed with omeprazole in the same hospital encounter after the diagnosis with alcohol cirrhosis liver, until 2103?

count the number of patients who were prescribed omeprazole within the same hospital visit after having been diagnosed with alcohol cirrhosis liver until 2103.

Question: select count( distinct t1.subject_id ) 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 diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'alcohol cirrhosis liver' ) and strftime('%Y',diagnoses_icd.charttime) <= '2103' ) as t1 join ( select admissions.subject_id, prescriptions.startdate, admissions.hadm_id from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'omeprazole' and strftime('%Y',prescriptions.startdate) <= '2103' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and t1.hadm_id = t2.hadm_id

count the number of patients who were prescribed {drug_name} [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1].

count the number of patients who were prescribed {drug_name} [time_filter_within:within-hosp] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-until].

Answer: 2


Question: how many patients were prescribed with morphine sulfate during the same hospital visit after being diagnosed with mitral valve disorder, since 2105?

count the number of patients who were prescribed morphine sulfate within the same hospital visit after having been diagnosed with mitral valve disorder since 2105.

Question: select count( distinct t1.subject_id ) 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 diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'mitral valve disorder' ) and strftime('%Y',diagnoses_icd.charttime) >= '2105' ) as t1 join ( select admissions.subject_id, prescriptions.startdate, admissions.hadm_id from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'morphine sulfate' and strftime('%Y',prescriptions.startdate) >= '2105' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and t1.hadm_id = t2.hadm_id

count the number of patients who were prescribed {drug_name} [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1].

count the number of patients who were prescribed {drug_name} [time_filter_within:within-hosp] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-since].

Answer: 7


Question: calculate the number of patients who have received nonsquamous epithelial cell lab tests in this year.

count the number of patients who received a nonsquamous epithelial cell lab test this year.

Question: select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select labevents.hadm_id from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'nonsquamous epithelial cell' ) and datetime(labevents.charttime,'start of year') = datetime(current_time,'start of year','-0 year') )

count the number of patients who received a {lab_name} lab test [time_filter_global1].

count the number of patients who received a {lab_name} lab test [time_filter_global1:rel-year-this].

Answer: 0


Question: count the number of patients who have received the bicarbonate, stool test since 4 years ago.

count the number of patients who received a bicarbonate, stool lab test since 4 year ago.

Question: select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select labevents.hadm_id from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'bicarbonate, stool' ) and datetime(labevents.charttime) >= datetime(current_time,'-4 year') )

count the number of patients who received a {lab_name} lab test [time_filter_global1].

count the number of patients who received a {lab_name} lab test [time_filter_global1:rel-year-since].

Answer: 1


Question: how many patients were given a parathyroid hormone lab test in this year?

count the number of patients who received a parathyroid hormone lab test this year.

Question: select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select labevents.hadm_id from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'parathyroid hormone' ) and datetime(labevents.charttime,'start of year') = datetime(current_time,'start of year','-0 year') )

count the number of patients who received a {lab_name} lab test [time_filter_global1].

count the number of patients who received a {lab_name} lab test [time_filter_global1:rel-year-this].

Answer: 0


Question: how many patients received a potassium, urine lab test in 2100?

count the number of patients who received a potassium, urine lab test in 2100.

Question: select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select labevents.hadm_id from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'potassium, urine' ) and strftime('%Y',labevents.charttime) = '2100' )

count the number of patients who received a {lab_name} lab test [time_filter_global1].

count the number of patients who received a {lab_name} lab test [time_filter_global1:abs-year-in].

Answer: 6


Question: how many patients received a cd4 cells, percent test the last year?

count the number of patients who received a cd4 cells, percent lab test last year.

Question: select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select labevents.hadm_id from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'cd4 cells, percent' ) and datetime(labevents.charttime,'start of year') = datetime(current_time,'start of year','-1 year') )

count the number of patients who received a {lab_name} lab test [time_filter_global1].

count the number of patients who received a {lab_name} lab test [time_filter_global1:rel-year-last].

Answer: 0


Question: count the number of patients who have received a microbiological eye test since 2 years ago.

count the number of patients who received a eye microbiology test since 2 year ago.

Question: select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select microbiologyevents.hadm_id from microbiologyevents where microbiologyevents.spec_type_desc = 'eye' and datetime(microbiologyevents.charttime) >= datetime(current_time,'-2 year') )

count the number of patients who received a {culture_name} microbiology test [time_filter_global1].

count the number of patients who received a {culture_name} microbiology test [time_filter_global1:rel-year-since].

Answer: 8


Question: count the number of patients who underwent a swab microbiology test until 2104.

count the number of patients who received a swab microbiology test until 2104.

Question: select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select microbiologyevents.hadm_id from microbiologyevents where microbiologyevents.spec_type_desc = 'swab' and strftime('%Y',microbiologyevents.charttime) <= '2104' )

count the number of patients who received a {culture_name} microbiology test [time_filter_global1].

count the number of patients who received a {culture_name} microbiology test [time_filter_global1:abs-year-until].

Answer: 212


Question: how many patients received a foreign body microbiology test until 4 years ago?

count the number of patients who received a foreign body microbiology test until 4 year ago.

Question: select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select microbiologyevents.hadm_id from microbiologyevents where microbiologyevents.spec_type_desc = 'foreign body' and datetime(microbiologyevents.charttime) <= datetime(current_time,'-4 year') )

count the number of patients who received a {culture_name} microbiology test [time_filter_global1].

count the number of patients who received a {culture_name} microbiology test [time_filter_global1:rel-year-until].

Answer: 0


Question: how many patients received a tissue test during a year before?

count the number of patients who received a tissue microbiology test last year.

Question: select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select microbiologyevents.hadm_id from microbiologyevents where microbiologyevents.spec_type_desc = 'tissue' and datetime(microbiologyevents.charttime,'start of year') = datetime(current_time,'start of year','-1 year') )

count the number of patients who received a {culture_name} microbiology test [time_filter_global1].

count the number of patients who received a {culture_name} microbiology test [time_filter_global1:rel-year-last].

Answer: 0


Question: count the number of patients who have had a .25 ns+0.5:1 heparin intake since 4 years ago.

count the number of patients who had a .25 ns+0.5:1 heparin intake since 4 year ago.

Question: select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select icustays.hadm_id from icustays where icustays.icustay_id in ( select inputevents_cv.icustay_id from inputevents_cv where inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = '.25 ns+0.5:1 heparin' and d_items.linksto = 'inputevents_cv' ) and datetime(inputevents_cv.charttime) >= datetime(current_time,'-4 year') ) )

count the number of patients who had a {intake_name} intake [time_filter_global1].

count the number of patients who had a {intake_name} intake [time_filter_global1:rel-year-since].

Answer: 3


Question: how many patients until 2103 had nutren pulmonary intake?

count the number of patients who had a nutren pulmonary intake until 2103.

Question: select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select icustays.hadm_id from icustays where icustays.icustay_id in ( select inputevents_cv.icustay_id from inputevents_cv where inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'nutren pulmonary' and d_items.linksto = 'inputevents_cv' ) and strftime('%Y',inputevents_cv.charttime) <= '2103' ) )

count the number of patients who had a {intake_name} intake [time_filter_global1].

count the number of patients who had a {intake_name} intake [time_filter_global1:abs-year-until].

Answer: 50


Question: how many patients received a bupivicaine intake since 2 years ago?

count the number of patients who had a bupivicaine intake since 2 year ago.

Question: select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select icustays.hadm_id from icustays where icustays.icustay_id in ( select inputevents_cv.icustay_id from inputevents_cv where inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'bupivicaine' and d_items.linksto = 'inputevents_cv' ) and datetime(inputevents_cv.charttime) >= datetime(current_time,'-2 year') ) )

count the number of patients who had a {intake_name} intake [time_filter_global1].

count the number of patients who had a {intake_name} intake [time_filter_global1:rel-year-since].

Answer: 1


Question: how many patients had a atg intake until 2 years ago?

count the number of patients who had a atg intake until 2 year ago.

Question: select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select icustays.hadm_id from icustays where icustays.icustay_id in ( select inputevents_cv.icustay_id from inputevents_cv where inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'atg' and d_items.linksto = 'inputevents_cv' ) and datetime(inputevents_cv.charttime) <= datetime(current_time,'-2 year') ) )

count the number of patients who had a {intake_name} intake [time_filter_global1].

count the number of patients who had a {intake_name} intake [time_filter_global1:rel-year-until].

Answer: 0


Question: since 4 years ago, what were the three most frequently diagnosed conditions?

what are the top three frequent diagnoses since 4 year ago?

Question: select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t1.icd9_code from ( select diagnoses_icd.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from diagnoses_icd where datetime(diagnoses_icd.charttime) >= datetime(current_time,'-4 year') group by diagnoses_icd.icd9_code ) as t1 where t1.c1 <= 3 )

what are_verb the top [n_rank] frequent diagnoses [time_filter_global1]?

what are_verb the top [n_rank:three] frequent diagnoses [time_filter_global1:rel-year-since]?

Answer: hypertension nos

Answer: atrial fibrillation

Answer: chf nos


Question: what were the top three diagnoses most frequently diagnosed since 6 years ago?

what are the top three frequent diagnoses since 6 year ago?

Question: select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t1.icd9_code from ( select diagnoses_icd.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from diagnoses_icd where datetime(diagnoses_icd.charttime) >= datetime(current_time,'-6 year') group by diagnoses_icd.icd9_code ) as t1 where t1.c1 <= 3 )

what are_verb the top [n_rank] frequent diagnoses [time_filter_global1]?

what are_verb the top [n_rank:three] frequent diagnoses [time_filter_global1:rel-year-since]?

Answer: hypertension nos

Answer: atrial fibrillation

Answer: chf nos


Question: give me the top three most common diagnoses?

what are the top three frequent diagnoses?

Question: select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t1.icd9_code from ( select diagnoses_icd.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from diagnoses_icd group by diagnoses_icd.icd9_code ) as t1 where t1.c1 <= 3 )

what are_verb the top [n_rank] frequent diagnoses [time_filter_global1]?

what are_verb the top [n_rank:three] frequent diagnoses [time_filter_global1:null]?

Answer: hypertension nos

Answer: atrial fibrillation

Answer: chf nos


Question: tell me the top three of the most common diagnoses of patients 50s since 6 years ago?

what are the top three frequent diagnoses of patients aged 50s since 6 year ago?

Question: select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t1.icd9_code from ( select diagnoses_icd.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from diagnoses_icd where diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.age between 50 and 59 ) and datetime(diagnoses_icd.charttime) >= datetime(current_time,'-6 year') group by diagnoses_icd.icd9_code ) as t1 where t1.c1 <= 3 )

what are_verb the top [n_rank] frequent diagnoses of patients aged [age_group] [time_filter_global1]?

what are_verb the top [n_rank:three] frequent diagnoses of patients aged [age_group:50s] [time_filter_global1:rel-year-since]?

Answer: hypertension nos

Answer: crnry athrscl natve vssl

Answer: atrial fibrillation


Question: what are the top three most common diagnoses for patients aged 50s until 2103?

what were the top three frequent diagnoses of patients aged 50s until 2103?

Question: select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t1.icd9_code from ( select diagnoses_icd.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from diagnoses_icd where diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.age between 50 and 59 ) and strftime('%Y',diagnoses_icd.charttime) <= '2103' group by diagnoses_icd.icd9_code ) as t1 where t1.c1 <= 3 )

what are_verb the top [n_rank] frequent diagnoses of patients aged [age_group] [time_filter_global1]?

what are_verb the top [n_rank:three] frequent diagnoses of patients aged [age_group:50s] [time_filter_global1:abs-year-until]?

Answer: hypertension nos

Answer: atrial fibrillation

Answer: chf nos


Question: retrieve the top four most frequent diagnoses of patients aged 20s in 2105?

what are the top four frequent diagnoses of patients aged 20s in 2105?

Question: select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t1.icd9_code from ( select diagnoses_icd.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from diagnoses_icd where diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.age between 20 and 29 ) and strftime('%Y',diagnoses_icd.charttime) = '2105' group by diagnoses_icd.icd9_code ) as t1 where t1.c1 <= 4 )

what are_verb the top [n_rank] frequent diagnoses of patients aged [age_group] [time_filter_global1]?

what are_verb the top [n_rank:four] frequent diagnoses of patients aged [age_group:20s] [time_filter_global1:abs-year-in]?

Answer: herpetic encephalitis

Answer: second malig neo liver

Answer: secondary malig neo nec

Answer: hdgk dis unsp xtrndl org

Answer: dmii wo cmp nt st uncntr

Answer: dmi wo cmp uncntrld

Answer: pure hypercholesterolem

Answer: hyperlipidemia nec/nos

Answer: acidosis

Answer: dehydration

Answer: hypovolemia

Answer: obesity nos

Answer: selective ig defic nec

Answer: ac posthemorrhag anemia

Answer: anemia nos

Answer: neutropenia nos

Answer: dysthymic disorder

Answer: alcoh dep nec/nos-unspec

Answer: opioid dependence-contin

Answer: tobacco use disorder

Answer: depressive disorder nec

Answer: obstructiv hydrocephalus

Answer: chronic pain nec

Answer: flccd hmiplga unspf side

Answer: unsp hmiplga nondmnt sde

Answer: metabolic encephalopathy

Answer: diabetic retinopathy nos

Answer: glaucoma nos

Answer: hypertension nos

Answer: subendo infarct, initial

Answer: old myocardial infarct

Answer: angina pectoris nec/nos

Answer: crnry athrscl natve vssl

Answer: chr pulmon heart dis nec

Answer: aortic valve disorder

Answer: atrial fibrillation

Answer: chf nos

Answer: chr diastolic hrt fail

Answer: crbl emblsm w infrct

Answer: hypotension nos

Answer: pneumonia, organism nos

Answer: asthma nos

Answer: fum/vapor bronc/pneumon

Answer: food/vomit pneumonitis

Answer: acute respiratry failure

Answer: other lung disease nec

Answer: esophageal reflux

Answer: irritable bowel syndrome

Answer: acute necrosis of liver

Answer: alcohol cirrhosis liver

Answer: portal hypertension

Answer: acute kidney failure nos

Answer: chr kidney dis stage iii

Answer: end stage renal disease

Answer: pyelonephritis nos

Answer: urin tract infection nos

Answer: bph w urinary obs/luts

Answer: dermatitis nos

Answer: lumbago

Answer: rotator cuff synd nos

Answer: rhabdomyolysis

Answer: osteomyelit nos-oth site

Answer: cong aorta valv insuffic

Answer: resp prob after brth nec

Answer: convulsions nec

Answer: septic shock

Answer: abdmnal pain oth spcf st

Answer: abnrml coagultion prfile

Answer: clos skull base fracture

Answer: fx lumbar vertebra-close

Answer: opn cerebe lac-deep coma

Answer: injury ulnar vessels

Answer: react-oth vasc dev/graft

Answer: surg comp nerv systm nec

Answer: abn react-artif implant

Answer: abn react-anastom/graft

Answer: vaccin for influenza

Answer: need prphyl vc vrl hepat

Answer: inf mcr rst ot drg nt ml

Answer: hx-testicular malignancy

Answer: hx-skin malignancy nec

Answer: hx tia/stroke w/o resid

Answer: history of tobacco use

Answer: nb obs genetc/metabl cnd

Answer: single lb in-hosp w/o cs

Answer: single lb in-hosp w cs

Answer: joint replaced knee

Answer: do not resusctate status

Answer: long-term use anticoagul

Answer: encountr palliative care


Question: since 5 years ago, what were the three most frequent diagnoses that patients were given after receiving a exc/dest hrt lesion open in the same hospital encounter?

what are the top three frequent diagnoses that patients were diagnosed within the same hospital visit after having received a exc/dest hrt lesion open procedure since 5 year ago?

Question: select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, procedures_icd.charttime, admissions.hadm_id from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'exc/dest hrt lesion open' ) and datetime(procedures_icd.charttime) >= datetime(current_time,'-5 year') ) as t1 join ( select admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime, admissions.hadm_id from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where datetime(diagnoses_icd.charttime) >= datetime(current_time,'-5 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and t1.hadm_id = t2.hadm_id group by t2.icd9_code ) as t3 where t3.c1 <= 3 )

what are_verb the top [n_rank] frequent diagnoses that patients were diagnosed [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?

what are_verb the top [n_rank:three] frequent diagnoses that patients were diagnosed [time_filter_within:within-hosp] after having received a {procedure_name} procedure [time_filter_global1:rel-year-since]?

Answer: protein-cal malnutr nos

Answer: prim cardiomyopathy nec

Answer: atrial fibrillation

Answer: acute kidney failure nos

Answer: bph w/o urinary obs/luts

Answer: accidental op laceration


Question: since 6 years ago what are the five most frequent diagnoses that patients were given within 2 months after receiving other destru pancrea les?

what are the top five frequent diagnoses that patients were diagnosed within 2 month after having received a other destru pancrea les procedure since 6 year ago?

Question: select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'other destru pancrea les' ) and datetime(procedures_icd.charttime) >= datetime(current_time,'-6 year') ) as t1 join ( select admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where datetime(diagnoses_icd.charttime) >= datetime(current_time,'-6 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t2.charttime) between datetime(t1.charttime) and datetime(t1.charttime,'+2 month') group by t2.icd9_code ) as t3 where t3.c1 <= 5 )

what are_verb the top [n_rank] frequent diagnoses that patients were diagnosed [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?

what are_verb the top [n_rank:five] frequent diagnoses that patients were diagnosed [time_filter_within:within-n_month] after having received a {procedure_name} procedure [time_filter_global1:rel-year-since]?

Answer: int inf clstrdium dfcile

Answer: klebsiella pneumoniae

Answer: chrnc hpt c wo hpat coma

Answer: acidosis

Answer: mitral valve disorder

Answer: left bb block nec

Answer: atrial fibrillation

Answer: athscl extrm ntv art nos

Answer: pneumonia, organism nos

Answer: obs chr bronc w(ac) exac

Answer: urin tract infection nos

Answer: rhabdomyolysis

Answer: convulsions nec

Answer: diarrhea

Answer: ileostomy status

Answer: routine circumcision


Question: get me the top five most frequent diagnoses that patients were given within the same month after receiving exc/dest hrt lesion open since 3 years ago.

what are the top five frequent diagnoses that patients were diagnosed within the same month after having received a exc/dest hrt lesion open procedure since 3 year ago?

Question: select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'exc/dest hrt lesion open' ) and datetime(procedures_icd.charttime) >= datetime(current_time,'-3 year') ) as t1 join ( select admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where datetime(diagnoses_icd.charttime) >= datetime(current_time,'-3 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t1.charttime,'start of month') = datetime(t2.charttime,'start of month') group by t2.icd9_code ) as t3 where t3.c1 <= 5 )

what are_verb the top [n_rank] frequent diagnoses that patients were diagnosed [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?

what are_verb the top [n_rank:five] frequent diagnoses that patients were diagnosed [time_filter_within:within-month] after having received a {procedure_name} procedure [time_filter_global1:rel-year-since]?

Answer: protein-cal malnutr nos

Answer: prim cardiomyopathy nec

Answer: atrial fibrillation

Answer: acute kidney failure nos

Answer: bph w/o urinary obs/luts

Answer: accidental op laceration


Question: among patients who received exc/dest hrt lesion open , what are the top four most frequent diagnoses that followed afterwards during the same hospital visit?

what are the top four frequent diagnoses that patients were diagnosed within the same hospital visit after having received a exc/dest hrt lesion open procedure?

Question: select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, procedures_icd.charttime, admissions.hadm_id from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'exc/dest hrt lesion open' ) ) as t1 join ( select admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime, admissions.hadm_id from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and t1.hadm_id = t2.hadm_id group by t2.icd9_code ) as t3 where t3.c1 <= 4 )

what are_verb the top [n_rank] frequent diagnoses that patients were diagnosed [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?

what are_verb the top [n_rank:four] frequent diagnoses that patients were diagnosed [time_filter_within:within-hosp] after having received a {procedure_name} procedure [time_filter_global1:null]?

Answer: protein-cal malnutr nos

Answer: prim cardiomyopathy nec

Answer: atrial fibrillation

Answer: acute kidney failure nos

Answer: bph w/o urinary obs/luts

Answer: accidental op laceration


Question: tell me the top five most frequent diagnoses that patients were diagnosed with within the same month after receiving replace trach tube until 2104.

what were the top five frequent diagnoses that patients were diagnosed within the same month after having received a replace trach tube procedure until 2104?

Question: select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'replace trach tube' ) and strftime('%Y',procedures_icd.charttime) <= '2104' ) as t1 join ( select admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where strftime('%Y',diagnoses_icd.charttime) <= '2104' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t1.charttime,'start of month') = datetime(t2.charttime,'start of month') group by t2.icd9_code ) as t3 where t3.c1 <= 5 )

what are_verb the top [n_rank] frequent diagnoses that patients were diagnosed [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?

what are_verb the top [n_rank:five] frequent diagnoses that patients were diagnosed [time_filter_within:within-month] after having received a {procedure_name} procedure [time_filter_global1:abs-year-until]?

Answer: mal neo middle 3rd esoph

Answer: hypothyroidism nos

Answer: dmii neuro nt st uncntrl

Answer: hyperlipidemia nec/nos

Answer: obstructiv hydrocephalus

Answer: hypertension nos

Answer: intermed coronary synd

Answer: need prphyl vc vrl hepat

Answer: hx of alcoholism


Question: list the top five most frequent diagnoses that the patients were diagnosed with within 2 months after being diagnosed with alcohol cirrhosis liver until 2104.

what were the top five frequent diagnoses that patients were diagnosed within 2 month after having been diagnosed with alcohol cirrhosis liver until 2104?

Question: select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'alcohol cirrhosis liver' ) and strftime('%Y',diagnoses_icd.charttime) <= '2104' ) as t1 join ( select admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where strftime('%Y',diagnoses_icd.charttime) <= '2104' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t2.charttime) between datetime(t1.charttime) and datetime(t1.charttime,'+2 month') group by t2.icd9_code ) as t3 where t3.c1 <= 5 )

what are_verb the top [n_rank] frequent diagnoses that patients were diagnosed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?

what are_verb the top [n_rank:five] frequent diagnoses that patients were diagnosed [time_filter_within:within-n_month] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-until]?

Answer: meth susc staph aur sept

Answer: malignant neoplasm cecum

Answer: pure hypercholesterolem

Answer: hyperlipidemia nec/nos

Answer: hypovolemia

Answer: acq hemolytic anemia nos

Answer: adjustmnt dis w depressn

Answer: blindness, one eye

Answer: hypertension nos

Answer: crnry athrscl natve vssl

Answer: pulm embol/infarct nec

Answer: chr pulmon heart dis nec

Answer: atrial fibrillation

Answer: chf nos

Answer: esoph varice oth dis nos

Answer: pneumonia, organism nos

Answer: bronchiectas w/o ac exac

Answer: dvrtclo colon w/o hmrhg

Answer: pancreat cyst/pseudocyst

Answer: end stage renal disease

Answer: backache nos

Answer: biliary & liver anom nec

Answer: insomnia nos

Answer: fever nos

Answer: epistaxis

Answer: severe sepsis

Answer: surg compl-heart

Answer: adv eff analgesic nos

Answer: carrier nec


Question: for patients diagnosed with gangrene until 2104, what are the top five most frequent diagnoses that followed within 2 months?

what were the top five frequent diagnoses that patients were diagnosed within 2 month after having been diagnosed with gangrene until 2104?

Question: select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'gangrene' ) and strftime('%Y',diagnoses_icd.charttime) <= '2104' ) as t1 join ( select admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where strftime('%Y',diagnoses_icd.charttime) <= '2104' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t2.charttime) between datetime(t1.charttime) and datetime(t1.charttime,'+2 month') group by t2.icd9_code ) as t3 where t3.c1 <= 5 )

what are_verb the top [n_rank] frequent diagnoses that patients were diagnosed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?

what are_verb the top [n_rank:five] frequent diagnoses that patients were diagnosed [time_filter_within:within-n_month] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-until]?

Answer: cryptosporidiosis

Answer: hypothyroidism nos

Answer: dmii wo cmp uncntrld

Answer: acidosis

Answer: tobacco use disorder

Answer: cereb degeneration nos

Answer: ami anterolateral, init

Answer: pneumonia e coli

Answer: food/vomit pneumonitis

Answer: acute necrosis of liver

Answer: end stage renal disease

Answer: cardiac murmurs nec

Answer: abn react-anastom/graft

Answer: abn react-procedure nec

Answer: adv eff blood products

Answer: inf mcrg rstn pncllins


Question: what are the three commonly given diagnoses for patients diagnosed with acute pericarditis nec previously in the same month, in 2105?

what are the top three frequent diagnoses that patients were diagnosed within the same month after having been diagnosed with acute pericarditis nec in 2105?

Question: select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'acute pericarditis nec' ) and strftime('%Y',diagnoses_icd.charttime) = '2105' ) as t1 join ( select admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where strftime('%Y',diagnoses_icd.charttime) = '2105' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t1.charttime,'start of month') = datetime(t2.charttime,'start of month') group by t2.icd9_code ) as t3 where t3.c1 <= 3 )

what are_verb the top [n_rank] frequent diagnoses that patients were diagnosed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?

what are_verb the top [n_rank:three] frequent diagnoses that patients were diagnosed [time_filter_within:within-month] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-in]?

Answer: secondary malig neo nec

Answer: hypothyroidism nos

Answer: dmii wo cmp nt st uncntr

Answer: protein-cal malnutr nos

Answer: acute gouty arthropathy

Answer: hyperosmolality

Answer: hypopotassemia

Answer: iron defic anemia nos

Answer: drug induced neutropenia

Answer: panic dis w/o agorphobia

Answer: depressive disorder nec

Answer: encephalopathy nos

Answer: toxic encephalopathy

Answer: hypertension nos

Answer: intermed coronary synd

Answer: cor ath unsp vsl ntv/gft

Answer: atrial fibrillation

Answer: cardiac dysrhythmias nec

Answer: ocl crtd art w infrct

Answer: pneumonia, organism nos

Answer: gstr/ddnts nos w/o hmrhg

Answer: bilat inguinal hernia

Answer: peritoneal abscess

Answer: chronic kidney dis nos

Answer: urin tract infection nos

Answer: secundum atrial sept def

Answer: convulsions nec

Answer: complic med care nec/nos

Answer: accid in resident instit

Answer: abn react-procedure nec

Answer: inf mcrg rstn pncllins

Answer: personal history uti

Answer: long-term use anticoagul

Answer: long-term use of insulin


Question: tell me what are the top four most common procedures until 2102?

what were the top four frequent procedures until 2102?

Question: select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select t1.icd9_code from ( select procedures_icd.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from procedures_icd where strftime('%Y',procedures_icd.charttime) <= '2102' group by procedures_icd.icd9_code ) as t1 where t1.c1 <= 4 )

what are_verb the top [n_rank] frequent procedures [time_filter_global1]?

what are_verb the top [n_rank:four] frequent procedures [time_filter_global1:abs-year-until]?

Answer: venous cath nec

Answer: insert endotracheal tube

Answer: entral infus nutrit sub

Answer: cont inv mec ven <96 hrs

Answer: packed cell transfusion


Question: show me the top three most frequent treatments?

what are the top three frequent procedures?

Question: select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select t1.icd9_code from ( select procedures_icd.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from procedures_icd group by procedures_icd.icd9_code ) as t1 where t1.c1 <= 3 )

what are_verb the top [n_rank] frequent procedures [time_filter_global1]?

what are_verb the top [n_rank:three] frequent procedures [time_filter_global1:null]?

Answer: venous cath nec

Answer: insert endotracheal tube

Answer: entral infus nutrit sub


Question: since 2104, what was the four most frequent procedure for patients 20s?

what are the top four frequent procedures of patients aged 20s since 2104?

Question: select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select t1.icd9_code from ( select procedures_icd.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.age between 20 and 29 ) and strftime('%Y',procedures_icd.charttime) >= '2104' group by procedures_icd.icd9_code ) as t1 where t1.c1 <= 4 )

what are_verb the top [n_rank] frequent procedures of patients aged [age_group] [time_filter_global1]?

what are_verb the top [n_rank:four] frequent procedures of patients aged [age_group:20s] [time_filter_global1:abs-year-since]?

Answer: venous cath nec

Answer: insert endotracheal tube

Answer: cont inv mec ven <96 hrs

Answer: cont inv mec ven 96+ hrs


Question: what are the three most frequently given procedures for patients with age 60 or above?

what are the top three frequent procedures of patients aged 60 or above?

Question: select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select t1.icd9_code from ( select procedures_icd.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.age >= 60 ) group by procedures_icd.icd9_code ) as t1 where t1.c1 <= 3 )

what are_verb the top [n_rank] frequent procedures of patients aged [age_group] [time_filter_global1]?

what are_verb the top [n_rank:three] frequent procedures of patients aged [age_group:60 or above] [time_filter_global1:null]?

Answer: venous cath nec

Answer: insert endotracheal tube

Answer: entral infus nutrit sub


Question: until 2100, what are the three commonly ordered procedures for patients of age 30s?

what were the top three frequent procedures of patients aged 30s until 2100?

Question: select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select t1.icd9_code from ( select procedures_icd.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.age between 30 and 39 ) and strftime('%Y',procedures_icd.charttime) <= '2100' group by procedures_icd.icd9_code ) as t1 where t1.c1 <= 3 )

what are_verb the top [n_rank] frequent procedures of patients aged [age_group] [time_filter_global1]?

what are_verb the top [n_rank:three] frequent procedures of patients aged [age_group:30s] [time_filter_global1:abs-year-until]?

Answer: closed bronchial biopsy

Answer: open lung biopsy

Answer: left heart cardiac cath

Answer: int inser lead atri-vent

Answer: arterial catheterization

Answer: venous cath nec

Answer: suture of vein

Answer: endosc destru lg int les

Answer: insert endotracheal tube

Answer: entral infus nutrit sub

Answer: cont inv mec ven 96+ hrs

Answer: remov ureteral drain

Answer: packed cell transfusion

Answer: parent infus nutrit sub


Question: what are the four common procedures for patients 40s since 2100?

what are the top four frequent procedures of patients aged 40s since 2100?

Question: select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select t1.icd9_code from ( select procedures_icd.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.age between 40 and 49 ) and strftime('%Y',procedures_icd.charttime) >= '2100' group by procedures_icd.icd9_code ) as t1 where t1.c1 <= 4 )

what are_verb the top [n_rank] frequent procedures of patients aged [age_group] [time_filter_global1]?

what are_verb the top [n_rank:four] frequent procedures of patients aged [age_group:40s] [time_filter_global1:abs-year-since]?

Answer: venous cath nec

Answer: insert endotracheal tube

Answer: entral infus nutrit sub

Answer: cont inv mec ven <96 hrs

Answer: vaccination nec


Question: since 2101, what are the four most frequent interventions that patients were given in the same month after receiving aortocor bypas-3 cor art?

what are the top four frequent procedures that patients received within the same month after having received a aortocor bypas-3 cor art procedure since 2101?

Question: select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'aortocor bypas-3 cor art' ) and strftime('%Y',procedures_icd.charttime) >= '2101' ) as t1 join ( select admissions.subject_id, procedures_icd.icd9_code, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where strftime('%Y',procedures_icd.charttime) >= '2101' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t1.charttime,'start of month') = datetime(t2.charttime,'start of month') group by t2.icd9_code ) as t3 where t3.c1 <= 4 )

what are_verb the top [n_rank] frequent procedures that patients received [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?

what are_verb the top [n_rank:four] frequent procedures that patients received [time_filter_within:within-month] after having received a {procedure_name} procedure [time_filter_global1:abs-year-since]?

Answer: closed bronchial biopsy

Answer: left heart cardiac cath

Answer: pulsation balloon implan

Answer: implt/repl carddefib tot

Answer: arterial catheterization

Answer: cv cath plcmt w guidance

Answer: simp exc lymph struc nec

Answer: packed cell transfusion

Answer: vaccination nec


Question: list the top four most frequent procedures that patients were given within the same month after receiving endosc remove bile stone since 2105.

what are the top four frequent procedures that patients received within the same month after having received a endosc remove bile stone procedure since 2105?

Question: select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'endosc remove bile stone' ) and strftime('%Y',procedures_icd.charttime) >= '2105' ) as t1 join ( select admissions.subject_id, procedures_icd.icd9_code, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where strftime('%Y',procedures_icd.charttime) >= '2105' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t1.charttime,'start of month') = datetime(t2.charttime,'start of month') group by t2.icd9_code ) as t3 where t3.c1 <= 4 )

what are_verb the top [n_rank] frequent procedures that patients received [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?

what are_verb the top [n_rank:four] frequent procedures that patients received [time_filter_within:within-month] after having received a {procedure_name} procedure [time_filter_global1:abs-year-since]?

Answer: create cutanperiton fist

Answer: lingual thyroid excision

Answer: parent infus nutrit sub

Answer: vaccination nec


Question: among patients who received other skin & subq i & d since 2105, what are the top four most common procedures that followed afterwards in the same month?

what are the top four frequent procedures that patients received within the same month after having received a other skin & subq i & d procedure since 2105?

Question: select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'other skin & subq i & d' ) and strftime('%Y',procedures_icd.charttime) >= '2105' ) as t1 join ( select admissions.subject_id, procedures_icd.icd9_code, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where strftime('%Y',procedures_icd.charttime) >= '2105' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t1.charttime,'start of month') = datetime(t2.charttime,'start of month') group by t2.icd9_code ) as t3 where t3.c1 <= 4 )

what are_verb the top [n_rank] frequent procedures that patients received [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?

what are_verb the top [n_rank:four] frequent procedures that patients received [time_filter_within:within-month] after having received a {procedure_name} procedure [time_filter_global1:abs-year-since]?

Answer: create cutanperiton fist

Answer: lingual thyroid excision

Answer: parent infus nutrit sub

Answer: vaccination nec


Question: what were the three most frequent procedures that patients received within 2 months after the diagnosis of wbc disease nec?

what are the top three frequent procedures that patients received within 2 month after having been diagnosed with wbc disease nec?

Question: select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'wbc disease nec' ) ) as t1 join ( select admissions.subject_id, procedures_icd.icd9_code, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t2.charttime) between datetime(t1.charttime) and datetime(t1.charttime,'+2 month') group by t2.icd9_code ) as t3 where t3.c1 <= 3 )

what are_verb the top [n_rank] frequent procedures that patients received [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?

what are_verb the top [n_rank:three] frequent procedures that patients received [time_filter_within:within-n_month] after having been diagnosed with {diagnosis_name} [time_filter_global1:null]?

Answer: venous cath nec

Answer: ven cath renal dialysis

Answer: sympath nerve inject nec

Answer: dx ultrasound-heart

Answer: insert endotracheal tube

Answer: cont inv mec ven <96 hrs


Question: what are the four most frequently given procedures for patients diagnosed with ath ext ntv art gngrene previously in the same month, since 4 years ago?

what are the top four frequent procedures that patients received within the same month after having been diagnosed with ath ext ntv art gngrene since 4 year ago?

Question: select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'ath ext ntv art gngrene' ) and datetime(diagnoses_icd.charttime) >= datetime(current_time,'-4 year') ) as t1 join ( select admissions.subject_id, procedures_icd.icd9_code, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where datetime(procedures_icd.charttime) >= datetime(current_time,'-4 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t1.charttime,'start of month') = datetime(t2.charttime,'start of month') group by t2.icd9_code ) as t3 where t3.c1 <= 4 )

what are_verb the top [n_rank] frequent procedures that patients received [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?

what are_verb the top [n_rank:four] frequent procedures that patients received [time_filter_within:within-month] after having been diagnosed with {diagnosis_name} [time_filter_global1:rel-year-since]?

Answer: ivus intrathoracic ves

Answer: opn tricus valvuloplasty

Answer: annuloplasty

Answer: interruption vena cava

Answer: arterial catheterization

Answer: ven cath renal dialysis

Answer: oth endo proc oth vessel

Answer: procedure-one vessel

Answer: part sm bowel resect nec

Answer: endosc sphincterotomy

Answer: lt heart angiocardiogram

Answer: coronar arteriogr-2 cath

Answer: immobiliz/wound attn nec

Answer: cont inv mec ven <96 hrs

Answer: cont inv mec ven 96+ hrs

Answer: packed cell transfusion

Answer: parent infus nutrit sub

Answer: inj/inf platelet inhibit


Question: for patients who were diagnosed with cystic kidney diseas nos since 2102, what are the top five most common treatments that followed afterwards during the same month?

what are the top five frequent procedures that patients received within the same month after having been diagnosed with cystic kidney diseas nos since 2102?

Question: select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'cystic kidney diseas nos' ) and strftime('%Y',diagnoses_icd.charttime) >= '2102' ) as t1 join ( select admissions.subject_id, procedures_icd.icd9_code, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where strftime('%Y',procedures_icd.charttime) >= '2102' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t1.charttime,'start of month') = datetime(t2.charttime,'start of month') group by t2.icd9_code ) as t3 where t3.c1 <= 5 )

what are_verb the top [n_rank] frequent procedures that patients received [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?

what are_verb the top [n_rank:five] frequent procedures that patients received [time_filter_within:within-month] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-since]?

Answer: contr cerebr arteriogram

Answer: dx ultrasound-heart

Answer: other phototherapy


Question: show me the top four most commonly prescribed medications since 2 years ago?

what are the top four frequently prescribed drugs since 2 year ago?

Question: select t1.drug from ( select prescriptions.drug, dense_rank() over ( order by count(*) desc ) as c1 from prescriptions where datetime(prescriptions.startdate) >= datetime(current_time,'-2 year') group by prescriptions.drug ) as t1 where t1.c1 <= 4

what are_verb the top [n_rank] frequently prescribed drugs [time_filter_global1]?

what are_verb the top [n_rank:four] frequently prescribed drugs [time_filter_global1:rel-year-since]?

Answer: potassium chloride

Answer: insulin

Answer: d5w

Answer: furosemide


Question: show the top three most commonly prescribed drugs for patients of the age of 40s until 2100?

what were the top three frequently prescribed drugs of patients aged 40s until 2100?

Question: select t1.drug from ( select prescriptions.drug, dense_rank() over ( order by count(*) desc ) as c1 from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.age between 40 and 49 ) and strftime('%Y',prescriptions.startdate) <= '2100' group by prescriptions.drug ) as t1 where t1.c1 <= 3

what are_verb the top [n_rank] frequently prescribed drugs of patients aged [age_group] [time_filter_global1]?

what are_verb the top [n_rank:three] frequently prescribed drugs of patients aged [age_group:40s] [time_filter_global1:abs-year-until]?

Answer: potassium chloride

Answer: furosemide

Answer: insulin

Answer: d5w


Question: retrieve the top four most commonly prescribed drugs for patients 20s in 2102?

what were the top four frequently prescribed drugs of patients aged 20s in 2102?

Question: select t1.drug from ( select prescriptions.drug, dense_rank() over ( order by count(*) desc ) as c1 from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.age between 20 and 29 ) and strftime('%Y',prescriptions.startdate) = '2102' group by prescriptions.drug ) as t1 where t1.c1 <= 4

what are_verb the top [n_rank] frequently prescribed drugs of patients aged [age_group] [time_filter_global1]?

what are_verb the top [n_rank:four] frequently prescribed drugs of patients aged [age_group:20s] [time_filter_global1:abs-year-in]?

Answer: insulin

Answer: potassium chloride

Answer: ns

Answer: sodium chloride 0.9%  flush


Question: for patients 60 or above since 2102, what are the top five prescribed drugs?

what are the top five frequently prescribed drugs of patients aged 60 or above since 2102?

Question: select t1.drug from ( select prescriptions.drug, dense_rank() over ( order by count(*) desc ) as c1 from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.age >= 60 ) and strftime('%Y',prescriptions.startdate) >= '2102' group by prescriptions.drug ) as t1 where t1.c1 <= 5

what are_verb the top [n_rank] frequently prescribed drugs of patients aged [age_group] [time_filter_global1]?

what are_verb the top [n_rank:five] frequently prescribed drugs of patients aged [age_group:60 or above] [time_filter_global1:abs-year-since]?

Answer: potassium chloride

Answer: insulin

Answer: furosemide

Answer: d5w

Answer: ns


Question: what are the three most frequently prescribed drugs for patients who are also prescribed amlodipine besylate at the same time in 2105?

what are the top three frequent prescribed drugs for patients who were also prescribed amlodipine besylate at the same time in 2105?

Question: select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'amlodipine besylate' and strftime('%Y',prescriptions.startdate) = '2105' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where strftime('%Y',prescriptions.startdate) = '2105' ) as t2 on t1.subject_id = t2.subject_id where datetime(t1.startdate) = datetime(t2.startdate) group by t2.drug ) as t3 where t3.c1 <= 3

what are_verb the top [n_rank] frequent prescribed drugs for patients who were also prescribed {drug_name} [time_filter_within] [time_filter_global1]?

what are_verb the top [n_rank:three] frequent prescribed drugs for patients who were also prescribed {drug_name} [time_filter_within:within-same] [time_filter_global1:abs-year-in]?

Answer: ns

Answer: amlodipine besylate

Answer: warfarin

Answer: iso-osmotic dextrose

Answer: dexamethasone


Question: what are the four most frequently prescribed drugs for patients also prescribed with amlodipine besylate at the same time, in 2105?

what are the top four frequent prescribed drugs for patients who were also prescribed amlodipine besylate at the same time in 2105?

Question: select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'amlodipine besylate' and strftime('%Y',prescriptions.startdate) = '2105' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where strftime('%Y',prescriptions.startdate) = '2105' ) as t2 on t1.subject_id = t2.subject_id where datetime(t1.startdate) = datetime(t2.startdate) group by t2.drug ) as t3 where t3.c1 <= 4

what are_verb the top [n_rank] frequent prescribed drugs for patients who were also prescribed {drug_name} [time_filter_within] [time_filter_global1]?

what are_verb the top [n_rank:four] frequent prescribed drugs for patients who were also prescribed {drug_name} [time_filter_within:within-same] [time_filter_global1:abs-year-in]?

Answer: ns

Answer: amlodipine besylate

Answer: warfarin

Answer: iso-osmotic dextrose

Answer: dexamethasone

Answer: sodium chloride 0.9%  flush

Answer: morphine sulfate

Answer: lr

Answer: heparin

Answer: docusate sodium

Answer: diltiazem

Answer: acetaminophen

Answer: 0.9% sodium chloride


Question: retrieve the top four most ordered drugs for patients also prescribed with cefepime at the same time?

what are the top four frequent prescribed drugs for patients who were also prescribed cefepime at the same time?

Question: select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'cefepime' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id ) as t2 on t1.subject_id = t2.subject_id where datetime(t1.startdate) = datetime(t2.startdate) group by t2.drug ) as t3 where t3.c1 <= 4

what are_verb the top [n_rank] frequent prescribed drugs for patients who were also prescribed {drug_name} [time_filter_within] [time_filter_global1]?

what are_verb the top [n_rank:four] frequent prescribed drugs for patients who were also prescribed {drug_name} [time_filter_within:within-same] [time_filter_global1:null]?

Answer: cefepime

Answer: potassium chloride

Answer: insulin

Answer: d5w


Question: list the top three most frequently prescribed drugs that patients were prescribed with within 2 months after they were prescribed with syringe (iv room) until 2102.

what were the top three frequent drugs that patients were prescribed within 2 month after having been prescribed with syringe (iv room) until 2102?

Question: select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'syringe (iv room)' and strftime('%Y',prescriptions.startdate) <= '2102' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where strftime('%Y',prescriptions.startdate) <= '2102' ) as t2 on t1.subject_id = t2.subject_id where t1.startdate < t2.startdate and datetime(t2.startdate) between datetime(t1.startdate) and datetime(t1.startdate,'+2 month') group by t2.drug ) as t3 where t3.c1 <= 3

what are_verb the top [n_rank] frequent drugs that patients were prescribed [time_filter_within] after having been prescribed with {drug_name} [time_filter_global1]?

what are_verb the top [n_rank:three] frequent drugs that patients were prescribed [time_filter_within:within-n_month] after having been prescribed with {drug_name} [time_filter_global1:abs-year-until]?

Answer: potassium chloride

Answer: furosemide

Answer: insulin


Question: what are the top four most frequent medications that followed during the same month for those patients that were prescribed creon 12 in 2104?

what were the top four frequent drugs that patients were prescribed within the same month after having been prescribed with creon 12 in 2104?

Question: select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'creon 12' and strftime('%Y',prescriptions.startdate) = '2104' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where strftime('%Y',prescriptions.startdate) = '2104' ) as t2 on t1.subject_id = t2.subject_id where t1.startdate < t2.startdate and datetime(t1.startdate,'start of month') = datetime(t2.startdate,'start of month') group by t2.drug ) as t3 where t3.c1 <= 4

what are_verb the top [n_rank] frequent drugs that patients were prescribed [time_filter_within] after having been prescribed with {drug_name} [time_filter_global1]?

what are_verb the top [n_rank:four] frequent drugs that patients were prescribed [time_filter_within:within-month] after having been prescribed with {drug_name} [time_filter_global1:abs-year-in]?

Answer: pantoprazole

Answer: metoprolol tartrate

Answer: d5w

Answer: zolpidem tartrate

Answer: vancomycin

Answer: sodium bicarbonate

Answer: oxycodone-acetaminophen

Answer: ns

Answer: metoprolol

Answer: mannitol 20%

Answer: magnesium sulfate

Answer: lr

Answer: iso-osmotic dextrose

Answer: heparin flush (10 units/ml)

Answer: furosemide

Answer: epinephrine

Answer: desitin

Answer: chlorhexidine gluconate 0.12% oral rinse

Answer: cephalexin

Answer: ceftriaxone

Answer: aspirin

Answer: alteplase (catheter clearance)

Answer: albuterol 0.083% neb soln


Question: among patients that were prescribed with sterile water for irrigation since 5 years ago, what are the top five most common drugs that followed afterwards during the same month?

what are the top five frequent drugs that patients were prescribed within the same month after having been prescribed with sterile water for irrigation since 5 year ago?

Question: select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'sterile water for irrigation' and datetime(prescriptions.startdate) >= datetime(current_time,'-5 year') ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where datetime(prescriptions.startdate) >= datetime(current_time,'-5 year') ) as t2 on t1.subject_id = t2.subject_id where t1.startdate < t2.startdate and datetime(t1.startdate,'start of month') = datetime(t2.startdate,'start of month') group by t2.drug ) as t3 where t3.c1 <= 5

what are_verb the top [n_rank] frequent drugs that patients were prescribed [time_filter_within] after having been prescribed with {drug_name} [time_filter_global1]?

what are_verb the top [n_rank:five] frequent drugs that patients were prescribed [time_filter_within:within-month] after having been prescribed with {drug_name} [time_filter_global1:rel-year-since]?

Answer: ns

Answer: iso-osmotic dextrose

Answer: propofol

Answer: lr

Answer: levothyroxine sodium

Answer: levofloxacin

Answer: furosemide

Answer: bag

Answer: 5% dextrose (excel bag)


Question: for patients who were prescribed with d15w , what are the top four most common medications that followed within 2 months?

what are the top four frequent drugs that patients were prescribed within 2 month after having been prescribed with d15w?

Question: select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'd15w' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id ) as t2 on t1.subject_id = t2.subject_id where t1.startdate < t2.startdate and datetime(t2.startdate) between datetime(t1.startdate) and datetime(t1.startdate,'+2 month') group by t2.drug ) as t3 where t3.c1 <= 4

what are_verb the top [n_rank] frequent drugs that patients were prescribed [time_filter_within] after having been prescribed with {drug_name} [time_filter_global1]?

what are_verb the top [n_rank:four] frequent drugs that patients were prescribed [time_filter_within:within-n_month] after having been prescribed with {drug_name} [time_filter_global1:null]?

Answer: potassium chloride

Answer: d5w

Answer: ns

Answer: insulin

Answer: furosemide


Question: among patients that were prescribed with acetami since 2105, what are the top four most common drugs that followed in the same hospital encounter?

what are the top four frequent drugs that patients were prescribed within the same hospital visit after having been prescribed with acetami since 2105?

Question: select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, prescriptions.startdate, admissions.hadm_id from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'acetami' and strftime('%Y',prescriptions.startdate) >= '2105' ) 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 strftime('%Y',prescriptions.startdate) >= '2105' ) as t2 on t1.subject_id = t2.subject_id where t1.startdate < t2.startdate and t1.hadm_id = t2.hadm_id group by t2.drug ) as t3 where t3.c1 <= 4

what are_verb the top [n_rank] frequent drugs that patients were prescribed [time_filter_within] after having been prescribed with {drug_name} [time_filter_global1]?

what are_verb the top [n_rank:four] frequent drugs that patients were prescribed [time_filter_within:within-hosp] after having been prescribed with {drug_name} [time_filter_global1:abs-year-since]?

Answer: potassium chloride

Answer: furosemide

Answer: 0.9% sodium chloride

Answer: d5w

Answer: iso-osmotic dextrose


Question: what are the three most commonly prescribed medications for patients who previously received the platelet transfusion within 2 months,?

what are the top three frequently prescribed drugs that patients were prescribed within 2 month after having received a platelet transfusion procedure?

Question: select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'platelet transfusion' ) ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id ) 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 month') group by t2.drug ) as t3 where t3.c1 <= 3

what are_verb the top [n_rank] frequently prescribed drugs that patients were prescribed [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?

what are_verb the top [n_rank:three] frequently prescribed drugs that patients were prescribed [time_filter_within:within-n_month] after having received a {procedure_name} procedure [time_filter_global1:null]?

Answer: furosemide

Answer: d5w

Answer: potassium chloride

Answer: ns


Question: what are the five frequently ordered drugs for patients that received cont inv mec ven 96+ hrs previously within the same hospital visit, in 2102?

what were the top five frequently prescribed drugs that patients were prescribed within the same hospital visit after having received a cont inv mec ven 96+ hrs procedure in 2102?

Question: select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, procedures_icd.charttime, admissions.hadm_id from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'cont inv mec ven 96+ hrs' ) and strftime('%Y',procedures_icd.charttime) = '2102' ) 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 strftime('%Y',prescriptions.startdate) = '2102' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and t1.hadm_id = t2.hadm_id group by t2.drug ) as t3 where t3.c1 <= 5

what are_verb the top [n_rank] frequently prescribed drugs that patients were prescribed [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?

what are_verb the top [n_rank:five] frequently prescribed drugs that patients were prescribed [time_filter_within:within-hosp] after having received a {procedure_name} procedure [time_filter_global1:abs-year-in]?

Answer: syringe

Answer: atenolol


Question: for patients who took lingual thyroid excision in 2105, what are the top five most frequent drugs that followed in the same month?

what are the top five frequently prescribed drugs that patients were prescribed within the same month after having received a lingual thyroid excision procedure in 2105?

Question: select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'lingual thyroid excision' ) and strftime('%Y',procedures_icd.charttime) = '2105' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where strftime('%Y',prescriptions.startdate) = '2105' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and datetime(t1.charttime,'start of month') = datetime(t2.startdate,'start of month') group by t2.drug ) as t3 where t3.c1 <= 5

what are_verb the top [n_rank] frequently prescribed drugs that patients were prescribed [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?

what are_verb the top [n_rank:five] frequently prescribed drugs that patients were prescribed [time_filter_within:within-month] after having received a {procedure_name} procedure [time_filter_global1:abs-year-in]?

Answer: potassium chloride

Answer: insulin

Answer: 5% dextrose

Answer: vial

Answer: metoprolol

Answer: iso-osmotic dextrose

Answer: hydralazine

Answer: potassium chl 20 meq / 1000 ml d5 1/2 ns

Answer: magnesium sulfate

Answer: lisinopril

Answer: levofloxacin

Answer: d5w

Answer: ciprofloxacin iv

Answer: atorvastatin

Answer: 0.9% sodium chloride

Answer: warfarin

Answer: vancomycin enema

Answer: vancomycin

Answer: valganciclovir

Answer: trazodone

Answer: sw

Answer: sterile water

Answer: sodium bicarbonate

Answer: senna

Answer: ranitidine (liquid)

Answer: prismasate (b22 k4)

Answer: potassium phosphate

Answer: phenytoin sodium

Answer: phenylephrine

Answer: pantoprazole sodium

Answer: oxycodone sr (oxycontin)

Answer: ns

Answer: norepinephrine

Answer: nitroglycerin

Answer: neutra-phos

Answer: neostigmine

Answer: neo*iv*gentamicin

Answer: montelukast sodium

Answer: mirtazapine

Answer: milrinone

Answer: metronidazole

Answer: metoprolol tartrate

Answer: metoclopramide

Answer: magnesium citrate

Answer: maalox/diphenhydramine/lidocaine

Answer: linezolid

Answer: levothyroxine sodium

Answer: lactated ringers

Answer: iso-osmotic sodium chloride

Answer: ipratropium bromide neb

Answer: humulin-r insulin

Answer: furosemide

Answer: fentanyl patch

Answer: esmolol

Answer: docusate sodium (liquid)

Answer: docusate sodium

Answer: ciprofloxacin hcl

Answer: ceftriaxone

Answer: calcium gluconate

Answer: bupivacaine 0.5%

Answer: bupivacaine 0.1%

Answer: bag

Answer: aspirin

Answer: ampicillin sodium

Answer: amlodipine

Answer: albuterol mdi

Answer: albuterol inhaler

Answer: acetazolamide sodium

Answer: 5% dextrose (excel bag)


Question: what were the three most common medications prescribed for patients who had previously been diagnosed with pleurisy w/o effus or tb within 2 months, since 5 years ago?

what are the top three frequently prescribed drugs that patients were prescribed within 2 month after having been diagnosed with pleurisy w/o effus or tb since 5 year ago?

Question: select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'pleurisy w/o effus or tb' ) and datetime(diagnoses_icd.charttime) >= datetime(current_time,'-5 year') ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where datetime(prescriptions.startdate) >= datetime(current_time,'-5 year') ) 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 month') group by t2.drug ) as t3 where t3.c1 <= 3

what are_verb the top [n_rank] frequently prescribed drugs that patients were prescribed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?

what are_verb the top [n_rank:three] frequently prescribed drugs that patients were prescribed [time_filter_within:within-n_month] after having been diagnosed with {diagnosis_name} [time_filter_global1:rel-year-since]?

Answer: potassium chloride

Answer: insulin

Answer: ns

Answer: metoprolol tartrate

Answer: iso-osmotic dextrose

Answer: d5w

Answer: 5% dextrose

Answer: docusate sodium

Answer: 0.9% sodium chloride


Question: what were the top four most commonly prescribed drugs to patients in the same hospital visit after they were diagnosed with fracture two ribs-closed?

what are the top four frequently prescribed drugs that patients were prescribed within the same hospital visit after having been diagnosed with fracture two ribs-closed?

Question: select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 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 diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'fracture two ribs-closed' ) ) 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 ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and t1.hadm_id = t2.hadm_id group by t2.drug ) as t3 where t3.c1 <= 4

what are_verb the top [n_rank] frequently prescribed drugs that patients were prescribed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?

what are_verb the top [n_rank:four] frequently prescribed drugs that patients were prescribed [time_filter_within:within-hosp] after having been diagnosed with {diagnosis_name} [time_filter_global1:null]?

Answer: potassium chloride

Answer: magnesium sulfate

Answer: insulin

Answer: 0.9% sodium chloride

Answer: d5w

Answer: furosemide


Question: what are the five commonly ordered medications for patients who were diagnosed with chf nos previously within 2 months, until 2103?

what were the top five frequently prescribed drugs that patients were prescribed within 2 month after having been diagnosed with chf nos until 2103?

Question: select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'chf nos' ) and strftime('%Y',diagnoses_icd.charttime) <= '2103' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where strftime('%Y',prescriptions.startdate) <= '2103' ) 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 month') group by t2.drug ) as t3 where t3.c1 <= 5

what are_verb the top [n_rank] frequently prescribed drugs that patients were prescribed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?

what are_verb the top [n_rank:five] frequently prescribed drugs that patients were prescribed [time_filter_within:within-n_month] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-until]?

Answer: potassium chloride

Answer: d5w

Answer: furosemide

Answer: insulin

Answer: ns


Question: among patients who were diagnosed with liver transplant status since 2105, what are the top five most frequent medications that followed afterwards in the same hospital visit?

what are the top five frequently prescribed drugs that patients were prescribed within the same hospital visit after having been diagnosed with liver transplant status since 2105?

Question: select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 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 diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'liver transplant status' ) and strftime('%Y',diagnoses_icd.charttime) >= '2105' ) 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 strftime('%Y',prescriptions.startdate) >= '2105' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and t1.hadm_id = t2.hadm_id group by t2.drug ) as t3 where t3.c1 <= 5

what are_verb the top [n_rank] frequently prescribed drugs that patients were prescribed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?

what are_verb the top [n_rank:five] frequently prescribed drugs that patients were prescribed [time_filter_within:within-hosp] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-since]?

Answer: potassium chloride

Answer: furosemide

Answer: sodium chloride 0.9%  flush

Answer: insulin

Answer: bisacodyl

Answer: sodium bicarbonate

Answer: iso-osmotic dextrose

Answer: d5w


Question: what are the five commonly ordered drugs for patients that were diagnosed with surg compl-heart previously during the same hospital visit, since 2103?

what are the top five frequently prescribed drugs that patients were prescribed within the same hospital visit after having been diagnosed with surg compl-heart since 2103?

Question: select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 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 diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'surg compl-heart' ) and strftime('%Y',diagnoses_icd.charttime) >= '2103' ) 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 strftime('%Y',prescriptions.startdate) >= '2103' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and t1.hadm_id = t2.hadm_id group by t2.drug ) as t3 where t3.c1 <= 5

what are_verb the top [n_rank] frequently prescribed drugs that patients were prescribed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?

what are_verb the top [n_rank:five] frequently prescribed drugs that patients were prescribed [time_filter_within:within-hosp] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-since]?

Answer: potassium chloride

Answer: insulin

Answer: furosemide

Answer: d5w

Answer: ns

Answer: 0.9% sodium chloride


Question: what is the five drug most frequently prescribed to the patients aged 60 or above within 2 months after they have been diagnosed with comp-oth cardiac device?

what are the top five frequently prescribed drugs that patients aged 60 or above were prescribed within 2 month after having been diagnosed with comp-oth cardiac device?

Question: select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'comp-oth cardiac device' ) ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where admissions.age >= 60 ) 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 month') group by t2.drug ) as t3 where t3.c1 <= 5

what are_verb the top [n_rank] frequently prescribed drugs that patients aged [age_group] were prescribed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?

what are_verb the top [n_rank:five] frequently prescribed drugs that patients aged [age_group:60 or above] were prescribed [time_filter_within:within-n_month] after having been diagnosed with {diagnosis_name} [time_filter_global1:null]?

Answer: potassium chloride

Answer: ns

Answer: d5w

Answer: furosemide

Answer: insulin

Answer: 0.9% sodium chloride


Question: what were the four most frequent drugs that were prescribed to patients in their 20s within 2 months after they had been diagnosed with osteoporosis nos until 2104?

what were the top four frequently prescribed drugs that patients aged 20s were prescribed within 2 month after having been diagnosed with osteoporosis nos until 2104?

Question: select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'osteoporosis nos' ) and strftime('%Y',diagnoses_icd.charttime) <= '2104' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where admissions.age between 20 and 29 and strftime('%Y',prescriptions.startdate) <= '2104' ) 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 month') group by t2.drug ) as t3 where t3.c1 <= 4

what are_verb the top [n_rank] frequently prescribed drugs that patients aged [age_group] were prescribed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?

what are_verb the top [n_rank:four] frequently prescribed drugs that patients aged [age_group:20s] were prescribed [time_filter_within:within-n_month] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-until]?

Answer: insulin

Answer: furosemide

Answer: heparin

Answer: vancomycin hcl

Answer: iso-osmotic dextrose

Answer: sodium chloride 0.9%  flush

Answer: sodium bicarbonate

Answer: nystatin oral suspension

Answer: ns

Answer: famotidine

Answer: acetaminophen


Question: among patients who were diagnosed with anemia in chr kidney dis since 2104, what are the top four most commonly prescribed medications that followed afterwards within 2 months to the patients aged 40s?

what are the top four frequently prescribed drugs that patients aged 40s were prescribed within 2 month after having been diagnosed with anemia in chr kidney dis since 2104?

Question: select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'anemia in chr kidney dis' ) and strftime('%Y',diagnoses_icd.charttime) >= '2104' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where admissions.age between 40 and 49 and strftime('%Y',prescriptions.startdate) >= '2104' ) 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 month') group by t2.drug ) as t3 where t3.c1 <= 4

what are_verb the top [n_rank] frequently prescribed drugs that patients aged [age_group] were prescribed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?

what are_verb the top [n_rank:four] frequently prescribed drugs that patients aged [age_group:40s] were prescribed [time_filter_within:within-n_month] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-since]?

Answer: potassium chloride

Answer: ns

Answer: iso-osmotic dextrose

Answer: insulin

Answer: sw

Answer: metoprolol

Answer: docusate sodium

Answer: warfarin

Answer: neutra-phos

Answer: iso-osmotic sodium chloride

Answer: heparin sodium

Answer: 5% dextrose