question
stringlengths 67
166
| goldSQL
stringlengths 4
199
| predSQL
stringlengths 6.73k
9.97k
|
---|---|---|
WHAT SHOULD BE THE MODE OF ENTRY OF THE DRUG DYE INTO THE BODY OF THE PATIENT HAVING AN ADMISSION ID = 105360 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'D_ITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), ABBREVIATION (VARCHAR), DBSOURCE (VARCHAR), LINKSTO (VARCHAR), CATEGORY (VARCHAR), UNITNAME (VARCHAR), PARAM_TYPE (VARCHAR), CONCEPTID (INTEGER), . The table is: This table contains information about various laboratory items, including their labels, categories, and LOINC codes.{'ROW_ID': 457, 'ITEMID': 497, 'LABEL': 'PATIENT CONTROLLED ANALGESIA (PCA) [INJECT]', 'ABBREVIATION': None, 'DBSOURCE': 'CAREVUE', 'LINKSTO': 'CHARTEVENTS', 'CATEGORY': None, 'UNITNAME': None, 'PARAM_TYPE': None, 'CONCEPTID': None}
Table 'D_CPT' has columns: ROW_ID (INTEGER), CATEGORY (INTEGER), SECTIONRANGE (VARCHAR), SECTIONHEADER (VARCHAR), SUBSECTIONRANGE (VARCHAR), SUBSECTIONHEADER (VARCHAR), CODESUFFIX (VARCHAR), MINCODEINSUBSECTION (INTEGER), MAXCODEINSUBSECTION (INTEGER), . The table is: Codes for evaluation and management services with their corresponding categories and subsection headers.{'ROW_ID': 1, 'CATEGORY': 1, 'SECTIONRANGE': '99201-99499', 'SECTIONHEADER': 'EVALUATION AND MANAGEMENT', 'SUBSECTIONRANGE': '99201-99216', 'SUBSECTIONHEADER': 'OFFICE/OTHER OUTPATIENT SERVICES', 'CODESUFFIX': None, 'MINCODEINSUBSECTION': 99201, 'MAXCODEINSUBSECTION': 99216}
Question: WHAT SHOULD BE THE MODE OF ENTRY OF THE DRUG DYE INTO THE BODY OF THE PATIENT HAVING AN ADMISSION ID = 105360
SQLQuery:
|
FOR THE PATIENT HAVING AN ADMISSION ID = 101779, WHAT IS THE RECOMMENDED ROUTE OF DRUG ADMINISTRATION FOR ACYCLOVIR | SELECT PRESCRIPTIONS.ROUTE FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 101779 AND PRESCRIPTIONS.DRUG = "ACYCLOVIR" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Question: FOR THE PATIENT HAVING AN ADMISSION ID = 101779, WHAT IS THE RECOMMENDED ROUTE OF DRUG ADMINISTRATION FOR ACYCLOVIR
SQLQuery:
|
WHAT WAS THE DOSAGE OF NYSTATIN THAT WAS PRESCRIBED TO THE PATIENT WITH ADMISSION ID = 112140 | SELECT PRESCRIPTIONS.DOSE_VAL_RX, PRESCRIPTIONS.DOSE_UNIT_RX FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 112140 AND PRESCRIPTIONS.DRUG = "NYSTATIN" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'D_ITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), ABBREVIATION (VARCHAR), DBSOURCE (VARCHAR), LINKSTO (VARCHAR), CATEGORY (VARCHAR), UNITNAME (VARCHAR), PARAM_TYPE (VARCHAR), CONCEPTID (INTEGER), . The table is: This table contains information about various laboratory items, including their labels, categories, and LOINC codes.{'ROW_ID': 457, 'ITEMID': 497, 'LABEL': 'PATIENT CONTROLLED ANALGESIA (PCA) [INJECT]', 'ABBREVIATION': None, 'DBSOURCE': 'CAREVUE', 'LINKSTO': 'CHARTEVENTS', 'CATEGORY': None, 'UNITNAME': None, 'PARAM_TYPE': None, 'CONCEPTID': None}
Question: WHAT WAS THE DOSAGE OF NYSTATIN THAT WAS PRESCRIBED TO THE PATIENT WITH ADMISSION ID = 112140
SQLQuery:
|
WHAT IS THE DOSE OF ACETAMINOPHE N THAT THE PATIENT WITH ADMISSION ID = 185982 HAS BEEN PRESCRIBED | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'D_CPT' has columns: ROW_ID (INTEGER), CATEGORY (INTEGER), SECTIONRANGE (VARCHAR), SECTIONHEADER (VARCHAR), SUBSECTIONRANGE (VARCHAR), SUBSECTIONHEADER (VARCHAR), CODESUFFIX (VARCHAR), MINCODEINSUBSECTION (INTEGER), MAXCODEINSUBSECTION (INTEGER), . The table is: Codes for evaluation and management services with their corresponding categories and subsection headers.{'ROW_ID': 1, 'CATEGORY': 1, 'SECTIONRANGE': '99201-99499', 'SECTIONHEADER': 'EVALUATION AND MANAGEMENT', 'SUBSECTIONRANGE': '99201-99216', 'SUBSECTIONHEADER': 'OFFICE/OTHER OUTPATIENT SERVICES', 'CODESUFFIX': None, 'MINCODEINSUBSECTION': 99201, 'MAXCODEINSUBSECTION': 99216}
Table 'CAREGIVER' has columns: ROW_ID (INTEGER), CGID (INTEGER), LABEL (VARCHAR), DESCRIPTION (VARCHAR), . The table is: This table contains information about caregivers, including their roles and descriptions.{'ROW_ID': 2228, 'CGID': 16174, 'LABEL': 'RO', 'DESCRIPTION': 'READ ONLY'}
Question: WHAT IS THE DOSE OF ACETAMINOPHE N THAT THE PATIENT WITH ADMISSION ID = 185982 HAS BEEN PRESCRIBED
SQLQuery:
|
WHAT IS THE DOSAGE OF SODIUM CHLORIDE PRESCRIBED TO THE PATIENT WITH ADMISSION ID 186876 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Question: WHAT IS THE DOSAGE OF SODIUM CHLORIDE PRESCRIBED TO THE PATIENT WITH ADMISSION ID 186876
SQLQuery:
|
MENTION THE ROUTE OF ADMINISTRATION FOR THE MEDICINE CALCIUM CARBONATE RECOMMENDED TO THE PATIENT WITH ADMISSION ID = 109397 | SELECT PRESCRIPTIONS.ROUTE FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 109397 AND PRESCRIPTIONS.DRUG = "CALCIUM CARBONATE" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Question: MENTION THE ROUTE OF ADMINISTRATION FOR THE MEDICINE CALCIUM CARBONATE RECOMMENDED TO THE PATIENT WITH ADMISSION ID = 109397
SQLQuery:
|
FOR THE PATIENT HAVING AN ADMISSION ID = 133235, WHAT IS THE RECOMMENDED ROUTE OF DRUG ADMINISTRATION FOR ATENOLOL | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Question: FOR THE PATIENT HAVING AN ADMISSION ID = 133235, WHAT IS THE RECOMMENDED ROUTE OF DRUG ADMINISTRATION FOR ATENOLOL
SQLQuery:
|
WHAT SHOULD BE THE MODE OF ENTRY OF THE DRUG LASIX INTO THE BODY OF THE PATIENT HAVING AN ADMISSION ID = 124917 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Question: WHAT SHOULD BE THE MODE OF ENTRY OF THE DRUG LASIX INTO THE BODY OF THE PATIENT HAVING AN ADMISSION ID = 124917
SQLQuery:
|
WHAT IS THE DRUG STRENGTH OF ACETAMINOPHEN PRESCRIBED TO THE PATIENT WITH ADMISSION ID 111274 | SELECT PRESCRIPTIONS.PROD_STRENGTH FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 111274 AND PRESCRIPTIONS.DRUG = "ACETAMINOPHEN" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Question: WHAT IS THE DRUG STRENGTH OF ACETAMINOPHEN PRESCRIBED TO THE PATIENT WITH ADMISSION ID 111274
SQLQuery:
|
WHAT IS THE DOSE OF ALBUTEROL SULFATE THAT THE PATIENT WITH ADMISSION ID = 101786 HAS BEEN PRESCRIBED | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'MICROBIOLOGYEVENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), CHARTDATE (VARCHAR), CHARTTIME (VARCHAR), SPEC_ITEMID (INTEGER), SPEC_TYPE_DESC (VARCHAR), ORG_ITEMID (INTEGER), ORG_NAME (VARCHAR), ISOLATE_NUM (INTEGER), AB_ITEMID (INTEGER), AB_NAME (VARCHAR), DILUTION_TEXT (VARCHAR), DILUTION_COMPARISON (VARCHAR), DILUTION_VALUE (INTEGER), INTERPRETATION (VARCHAR), . The table is: Table containing various medical event labels and their corresponding item IDs.{'ROW_ID': 744, 'SUBJECT_ID': 96, 'HADM_ID': 170324, 'CHARTDATE': '2156-04-13 00:00:00', 'CHARTTIME': '2156-04-13 14:18:00', 'SPEC_ITEMID': 70021, 'SPEC_TYPE_DESC': 'BRONCHOALVEOLAR LAVAGE', 'ORG_ITEMID': 80026, 'ORG_NAME': 'PSEUDOMONAS AERUGINOSA', 'ISOLATE_NUM': 1, 'AB_ITEMID': None, 'AB_NAME': None, 'DILUTION_TEXT': None, 'DILUTION_COMPARISON': None, 'DILUTION_VALUE': None, 'INTERPRETATION': None}
Table 'D_ITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), ABBREVIATION (VARCHAR), DBSOURCE (VARCHAR), LINKSTO (VARCHAR), CATEGORY (VARCHAR), UNITNAME (VARCHAR), PARAM_TYPE (VARCHAR), CONCEPTID (INTEGER), . The table is: This table contains information about various laboratory items, including their labels, categories, and LOINC codes.{'ROW_ID': 457, 'ITEMID': 497, 'LABEL': 'PATIENT CONTROLLED ANALGESIA (PCA) [INJECT]', 'ABBREVIATION': None, 'DBSOURCE': 'CAREVUE', 'LINKSTO': 'CHARTEVENTS', 'CATEGORY': None, 'UNITNAME': None, 'PARAM_TYPE': None, 'CONCEPTID': None}
Question: WHAT IS THE DOSE OF ALBUTEROL SULFATE THAT THE PATIENT WITH ADMISSION ID = 101786 HAS BEEN PRESCRIBED
SQLQuery:
|
WHAT IS THE DOSE OF CLONIDINE THAT THE PATIENT WITH ADMISSION ID = 106629 HAS BEEN PRESCRIBED | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), ABBREVIATION (VARCHAR), DBSOURCE (VARCHAR), LINKSTO (VARCHAR), CATEGORY (VARCHAR), UNITNAME (VARCHAR), PARAM_TYPE (VARCHAR), CONCEPTID (INTEGER), . The table is: This table contains information about various laboratory items, including their labels, categories, and LOINC codes.{'ROW_ID': 457, 'ITEMID': 497, 'LABEL': 'PATIENT CONTROLLED ANALGESIA (PCA) [INJECT]', 'ABBREVIATION': None, 'DBSOURCE': 'CAREVUE', 'LINKSTO': 'CHARTEVENTS', 'CATEGORY': None, 'UNITNAME': None, 'PARAM_TYPE': None, 'CONCEPTID': None}
Question: WHAT IS THE DOSE OF CLONIDINE THAT THE PATIENT WITH ADMISSION ID = 106629 HAS BEEN PRESCRIBED
SQLQuery:
|
WHAT IS THE DRUG INTENSITY OF HYDROCORTISONE GIVEN TO THE PATIENT WITH AN ADMISSION ID = 143562 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Question: WHAT IS THE DRUG INTENSITY OF HYDROCORTISONE GIVEN TO THE PATIENT WITH AN ADMISSION ID = 143562
SQLQuery:
|
WHAT IS THE DRUG INTENSITY OF ALBUMIN GIVEN TO THE PATIENT WITH AN ADMISSION ID = 114044 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Question: WHAT IS THE DRUG INTENSITY OF ALBUMIN GIVEN TO THE PATIENT WITH AN ADMISSION ID = 114044
SQLQuery:
|
WHAT SHOULD BE THE MODE OF ENTRY OF THE DRUG ASPIRIN INTO THE BODY OF THE PATIENT HAVING AN ADMISSION ID = 135234 | SELECT PRESCRIPTIONS.ROUTE FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 135234 AND PRESCRIPTIONS.DRUG = "ASPIRIN" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Question: WHAT SHOULD BE THE MODE OF ENTRY OF THE DRUG ASPIRIN INTO THE BODY OF THE PATIENT HAVING AN ADMISSION ID = 135234
SQLQuery:
|
WHAT IS THE FORM OF METOPROLOL SUCCINATE PRESCRIBED TO THE PATIENT WITH ADMISSION ID 146944 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'PROCEDUREEVENTS_MV' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTTIME (VARCHAR), ENDTIME (VARCHAR), ITEMID (INTEGER), VALUE (INTEGER), VALUEUOM (VARCHAR), LOCATION (VARCHAR), LOCATIONCATEGORY (VARCHAR), STORETIME (VARCHAR), CGID (INTEGER), ORDERID (INTEGER), LINKORDERID (INTEGER), ORDERCATEGORYNAME (VARCHAR), SECONDARYORDERCATEGORYNAME (INTEGER), ORDERCATEGORYDESCRIPTION (VARCHAR), ISOPENBAG (INTEGER), CONTINUEINNEXTDEPT (INTEGER), CANCELREASON (INTEGER), STATUSDESCRIPTION (VARCHAR), COMMENTS_EDITEDBY (VARCHAR), COMMENTS_CANCELEDBY (VARCHAR), COMMENTS_DATE (VARCHAR), . The table is: Table containing medical procedure events with various details such as chart time, item ID, value, and unit of measurement.{'ROW_ID': 379, 'SUBJECT_ID': 29070, 'HADM_ID': 115071, 'ICUSTAY_ID': 232563, 'STARTTIME': '2145-03-12 23:04:00', 'ENDTIME': '2145-03-12 23:05:00', 'ITEMID': 225401, 'VALUE': 1, 'VALUEUOM': None, 'LOCATION': None, 'LOCATIONCATEGORY': None, 'STORETIME': '2145-03-12 23:04:00', 'CGID': 20855, 'ORDERID': 5092605, 'LINKORDERID': 5092605, 'ORDERCATEGORYNAME': 'PROCEDURES', 'SECONDARYORDERCATEGORYNAME': None, 'ORDERCATEGORYDESCRIPTION': 'ELECTROLYTES', 'ISOPENBAG': 0, 'CONTINUEINNEXTDEPT': 0, 'CANCELREASON': 0, 'STATUSDESCRIPTION': 'FINISHEDRUNNING', 'COMMENTS_EDITEDBY': None, 'COMMENTS_CANCELEDBY': None, 'COMMENTS_DATE': None}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Question: WHAT IS THE FORM OF METOPROLOL SUCCINATE PRESCRIBED TO THE PATIENT WITH ADMISSION ID 146944
SQLQuery:
|
WHAT SHOULD BE THE MODE OF ENTRY OF THE DRUG MAGNESIUM INTO THE BODY OF THE PATIENT HAVING AN ADMISSION ID = 187736 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'PROCEDUREEVENTS_MV' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTTIME (VARCHAR), ENDTIME (VARCHAR), ITEMID (INTEGER), VALUE (INTEGER), VALUEUOM (VARCHAR), LOCATION (VARCHAR), LOCATIONCATEGORY (VARCHAR), STORETIME (VARCHAR), CGID (INTEGER), ORDERID (INTEGER), LINKORDERID (INTEGER), ORDERCATEGORYNAME (VARCHAR), SECONDARYORDERCATEGORYNAME (INTEGER), ORDERCATEGORYDESCRIPTION (VARCHAR), ISOPENBAG (INTEGER), CONTINUEINNEXTDEPT (INTEGER), CANCELREASON (INTEGER), STATUSDESCRIPTION (VARCHAR), COMMENTS_EDITEDBY (VARCHAR), COMMENTS_CANCELEDBY (VARCHAR), COMMENTS_DATE (VARCHAR), . The table is: Table containing medical procedure events with various details such as chart time, item ID, value, and unit of measurement.{'ROW_ID': 379, 'SUBJECT_ID': 29070, 'HADM_ID': 115071, 'ICUSTAY_ID': 232563, 'STARTTIME': '2145-03-12 23:04:00', 'ENDTIME': '2145-03-12 23:05:00', 'ITEMID': 225401, 'VALUE': 1, 'VALUEUOM': None, 'LOCATION': None, 'LOCATIONCATEGORY': None, 'STORETIME': '2145-03-12 23:04:00', 'CGID': 20855, 'ORDERID': 5092605, 'LINKORDERID': 5092605, 'ORDERCATEGORYNAME': 'PROCEDURES', 'SECONDARYORDERCATEGORYNAME': None, 'ORDERCATEGORYDESCRIPTION': 'ELECTROLYTES', 'ISOPENBAG': 0, 'CONTINUEINNEXTDEPT': 0, 'CANCELREASON': 0, 'STATUSDESCRIPTION': 'FINISHEDRUNNING', 'COMMENTS_EDITEDBY': None, 'COMMENTS_CANCELEDBY': None, 'COMMENTS_DATE': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'D_ITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), ABBREVIATION (VARCHAR), DBSOURCE (VARCHAR), LINKSTO (VARCHAR), CATEGORY (VARCHAR), UNITNAME (VARCHAR), PARAM_TYPE (VARCHAR), CONCEPTID (INTEGER), . The table is: This table contains information about various laboratory items, including their labels, categories, and LOINC codes.{'ROW_ID': 457, 'ITEMID': 497, 'LABEL': 'PATIENT CONTROLLED ANALGESIA (PCA) [INJECT]', 'ABBREVIATION': None, 'DBSOURCE': 'CAREVUE', 'LINKSTO': 'CHARTEVENTS', 'CATEGORY': None, 'UNITNAME': None, 'PARAM_TYPE': None, 'CONCEPTID': None}
Question: WHAT SHOULD BE THE MODE OF ENTRY OF THE DRUG MAGNESIUM INTO THE BODY OF THE PATIENT HAVING AN ADMISSION ID = 187736
SQLQuery:
|
MENTION THE FORM OF OXYCODONE TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 103377 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Question: MENTION THE FORM OF OXYCODONE TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 103377
SQLQuery:
|
MENTION THE FORM OF IPRATROPIUM BROMIDE TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 103761 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Question: MENTION THE FORM OF IPRATROPIUM BROMIDE TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 103761
SQLQuery:
|
WHAT IS THE STRENGTH OF THE MEDICINE LEVOFLOXACIN TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 110335 | SELECT PRESCRIPTIONS.PROD_STRENGTH FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 110335 AND PRESCRIPTIONS.DRUG = "LEVOFLOXACIN" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Table 'MICROBIOLOGYEVENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), CHARTDATE (VARCHAR), CHARTTIME (VARCHAR), SPEC_ITEMID (INTEGER), SPEC_TYPE_DESC (VARCHAR), ORG_ITEMID (INTEGER), ORG_NAME (VARCHAR), ISOLATE_NUM (INTEGER), AB_ITEMID (INTEGER), AB_NAME (VARCHAR), DILUTION_TEXT (VARCHAR), DILUTION_COMPARISON (VARCHAR), DILUTION_VALUE (INTEGER), INTERPRETATION (VARCHAR), . The table is: Table containing various medical event labels and their corresponding item IDs.{'ROW_ID': 744, 'SUBJECT_ID': 96, 'HADM_ID': 170324, 'CHARTDATE': '2156-04-13 00:00:00', 'CHARTTIME': '2156-04-13 14:18:00', 'SPEC_ITEMID': 70021, 'SPEC_TYPE_DESC': 'BRONCHOALVEOLAR LAVAGE', 'ORG_ITEMID': 80026, 'ORG_NAME': 'PSEUDOMONAS AERUGINOSA', 'ISOLATE_NUM': 1, 'AB_ITEMID': None, 'AB_NAME': None, 'DILUTION_TEXT': None, 'DILUTION_COMPARISON': None, 'DILUTION_VALUE': None, 'INTERPRETATION': None}
Table 'D_ITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), ABBREVIATION (VARCHAR), DBSOURCE (VARCHAR), LINKSTO (VARCHAR), CATEGORY (VARCHAR), UNITNAME (VARCHAR), PARAM_TYPE (VARCHAR), CONCEPTID (INTEGER), . The table is: This table contains information about various laboratory items, including their labels, categories, and LOINC codes.{'ROW_ID': 457, 'ITEMID': 497, 'LABEL': 'PATIENT CONTROLLED ANALGESIA (PCA) [INJECT]', 'ABBREVIATION': None, 'DBSOURCE': 'CAREVUE', 'LINKSTO': 'CHARTEVENTS', 'CATEGORY': None, 'UNITNAME': None, 'PARAM_TYPE': None, 'CONCEPTID': None}
Table 'LABEVENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ITEMID (INTEGER), CHARTTIME (VARCHAR), VALUE (VARCHAR), VALUENUM (INTEGER), VALUEUOM (VARCHAR), FLAG (VARCHAR), . The table is: Table containing laboratory test results for patients, including values, units, and flags.{'ROW_ID': 281, 'SUBJECT_ID': 3, 'HADM_ID': None, 'ITEMID': 50820, 'CHARTTIME': '2101-10-12 16:07:00', 'VALUE': '7.39', 'VALUENUM': 7.39, 'VALUEUOM': 'UNITS', 'FLAG': None}
Question: WHAT IS THE STRENGTH OF THE MEDICINE LEVOFLOXACIN TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 110335
SQLQuery:
|
WHAT IS THE DRUG STRENGTH OF TIOTROPIUM BROMIDE PRESCRIBED TO THE PATIENT WITH ADMISSION ID 155980 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Question: WHAT IS THE DRUG STRENGTH OF TIOTROPIUM BROMIDE PRESCRIBED TO THE PATIENT WITH ADMISSION ID 155980
SQLQuery:
|
WHAT IS THE DRUG INTENSITY OF ACETAMINOPHEN GIVEN TO THE PATIENT WITH AN ADMISSION ID = 109697 | SELECT PRESCRIPTIONS.PROD_STRENGTH FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 109697 AND PRESCRIPTIONS.DRUG = "ACETAMINOPHEN" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Question: WHAT IS THE DRUG INTENSITY OF ACETAMINOPHEN GIVEN TO THE PATIENT WITH AN ADMISSION ID = 109697
SQLQuery:
|
WHAT IS THE DOSAGE OF CLOMIPRAMINE HCL PRESCRIBED TO THE PATIENT WITH ADMISSION ID 121116 | SELECT PRESCRIPTIONS.DOSE_VAL_RX, PRESCRIPTIONS.DOSE_UNIT_RX FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 121116 AND PRESCRIPTIONS.DRUG = "CLOMIPRAMINE HCL" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Question: WHAT IS THE DOSAGE OF CLOMIPRAMINE HCL PRESCRIBED TO THE PATIENT WITH ADMISSION ID 121116
SQLQuery:
|
WHAT WAS THE DOSAGE OF FFP THAT WAS PRESCRIBED TO THE PATIENT WITH ADMISSION ID = 196798 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Table 'MICROBIOLOGYEVENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), CHARTDATE (VARCHAR), CHARTTIME (VARCHAR), SPEC_ITEMID (INTEGER), SPEC_TYPE_DESC (VARCHAR), ORG_ITEMID (INTEGER), ORG_NAME (VARCHAR), ISOLATE_NUM (INTEGER), AB_ITEMID (INTEGER), AB_NAME (VARCHAR), DILUTION_TEXT (VARCHAR), DILUTION_COMPARISON (VARCHAR), DILUTION_VALUE (INTEGER), INTERPRETATION (VARCHAR), . The table is: Table containing various medical event labels and their corresponding item IDs.{'ROW_ID': 744, 'SUBJECT_ID': 96, 'HADM_ID': 170324, 'CHARTDATE': '2156-04-13 00:00:00', 'CHARTTIME': '2156-04-13 14:18:00', 'SPEC_ITEMID': 70021, 'SPEC_TYPE_DESC': 'BRONCHOALVEOLAR LAVAGE', 'ORG_ITEMID': 80026, 'ORG_NAME': 'PSEUDOMONAS AERUGINOSA', 'ISOLATE_NUM': 1, 'AB_ITEMID': None, 'AB_NAME': None, 'DILUTION_TEXT': None, 'DILUTION_COMPARISON': None, 'DILUTION_VALUE': None, 'INTERPRETATION': None}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Question: WHAT WAS THE DOSAGE OF FFP THAT WAS PRESCRIBED TO THE PATIENT WITH ADMISSION ID = 196798
SQLQuery:
|
WHAT WAS THE DOSAGE OF NS THAT WAS PRESCRIBED TO THE PATIENT WITH ADMISSION ID = 110384 | SELECT PRESCRIPTIONS.DOSE_VAL_RX, PRESCRIPTIONS.DOSE_UNIT_RX FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 110384 AND PRESCRIPTIONS.DRUG = "NS" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'MICROBIOLOGYEVENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), CHARTDATE (VARCHAR), CHARTTIME (VARCHAR), SPEC_ITEMID (INTEGER), SPEC_TYPE_DESC (VARCHAR), ORG_ITEMID (INTEGER), ORG_NAME (VARCHAR), ISOLATE_NUM (INTEGER), AB_ITEMID (INTEGER), AB_NAME (VARCHAR), DILUTION_TEXT (VARCHAR), DILUTION_COMPARISON (VARCHAR), DILUTION_VALUE (INTEGER), INTERPRETATION (VARCHAR), . The table is: Table containing various medical event labels and their corresponding item IDs.{'ROW_ID': 744, 'SUBJECT_ID': 96, 'HADM_ID': 170324, 'CHARTDATE': '2156-04-13 00:00:00', 'CHARTTIME': '2156-04-13 14:18:00', 'SPEC_ITEMID': 70021, 'SPEC_TYPE_DESC': 'BRONCHOALVEOLAR LAVAGE', 'ORG_ITEMID': 80026, 'ORG_NAME': 'PSEUDOMONAS AERUGINOSA', 'ISOLATE_NUM': 1, 'AB_ITEMID': None, 'AB_NAME': None, 'DILUTION_TEXT': None, 'DILUTION_COMPARISON': None, 'DILUTION_VALUE': None, 'INTERPRETATION': None}
Question: WHAT WAS THE DOSAGE OF NS THAT WAS PRESCRIBED TO THE PATIENT WITH ADMISSION ID = 110384
SQLQuery:
|
WHAT IS THE DRUG STRENGTH OF NITRO PRESCRIBED TO THE PATIENT WITH ADMISSION ID 164726 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Question: WHAT IS THE DRUG STRENGTH OF NITRO PRESCRIBED TO THE PATIENT WITH ADMISSION ID 164726
SQLQuery:
|
WHAT IS THE FORM OF ROSUVASTATIN CALCIUM PRESCRIBED TO THE PATIENT WITH ADMISSION ID 110186 | SELECT PRESCRIPTIONS.FORM_UNIT_DISP FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 110186 AND PRESCRIPTIONS.DRUG = "ROSUVASTATIN CALCIUM" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Table 'D_ITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), ABBREVIATION (VARCHAR), DBSOURCE (VARCHAR), LINKSTO (VARCHAR), CATEGORY (VARCHAR), UNITNAME (VARCHAR), PARAM_TYPE (VARCHAR), CONCEPTID (INTEGER), . The table is: This table contains information about various laboratory items, including their labels, categories, and LOINC codes.{'ROW_ID': 457, 'ITEMID': 497, 'LABEL': 'PATIENT CONTROLLED ANALGESIA (PCA) [INJECT]', 'ABBREVIATION': None, 'DBSOURCE': 'CAREVUE', 'LINKSTO': 'CHARTEVENTS', 'CATEGORY': None, 'UNITNAME': None, 'PARAM_TYPE': None, 'CONCEPTID': None}
Question: WHAT IS THE FORM OF ROSUVASTATIN CALCIUM PRESCRIBED TO THE PATIENT WITH ADMISSION ID 110186
SQLQuery:
|
WHAT IS THE DRUG STRENGTH OF ACETAMINOPHEN PRESCRIBED TO THE PATIENT WITH ADMISSION ID 105585 | SELECT PRESCRIPTIONS.PROD_STRENGTH FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 105585 AND PRESCRIPTIONS.DRUG = "ACETAMINOPHEN" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'CAREGIVER' has columns: ROW_ID (INTEGER), CGID (INTEGER), LABEL (VARCHAR), DESCRIPTION (VARCHAR), . The table is: This table contains information about caregivers, including their roles and descriptions.{'ROW_ID': 2228, 'CGID': 16174, 'LABEL': 'RO', 'DESCRIPTION': 'READ ONLY'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Question: WHAT IS THE DRUG STRENGTH OF ACETAMINOPHEN PRESCRIBED TO THE PATIENT WITH ADMISSION ID 105585
SQLQuery:
|
MENTION THE DRUG INTENSITY OF METOPROLOL TARTRATE PRESCRIBED TO THE PATIENT WHOSE ADMISSION ID IS 105778 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_CPT' has columns: ROW_ID (INTEGER), CATEGORY (INTEGER), SECTIONRANGE (VARCHAR), SECTIONHEADER (VARCHAR), SUBSECTIONRANGE (VARCHAR), SUBSECTIONHEADER (VARCHAR), CODESUFFIX (VARCHAR), MINCODEINSUBSECTION (INTEGER), MAXCODEINSUBSECTION (INTEGER), . The table is: Codes for evaluation and management services with their corresponding categories and subsection headers.{'ROW_ID': 1, 'CATEGORY': 1, 'SECTIONRANGE': '99201-99499', 'SECTIONHEADER': 'EVALUATION AND MANAGEMENT', 'SUBSECTIONRANGE': '99201-99216', 'SUBSECTIONHEADER': 'OFFICE/OTHER OUTPATIENT SERVICES', 'CODESUFFIX': None, 'MINCODEINSUBSECTION': 99201, 'MAXCODEINSUBSECTION': 99216}
Question: MENTION THE DRUG INTENSITY OF METOPROLOL TARTRATE PRESCRIBED TO THE PATIENT WHOSE ADMISSION ID IS 105778
SQLQuery:
|
WHAT IS THE DRUG INTENSITY OF METOPROLOL TARTRATE GIVEN TO THE PATIENT WITH AN ADMISSION ID = 105445 | SELECT PRESCRIPTIONS.PROD_STRENGTH FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 105445 AND PRESCRIPTIONS.DRUG = "METOPROLOL TARTRATE" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'PROCEDUREEVENTS_MV' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTTIME (VARCHAR), ENDTIME (VARCHAR), ITEMID (INTEGER), VALUE (INTEGER), VALUEUOM (VARCHAR), LOCATION (VARCHAR), LOCATIONCATEGORY (VARCHAR), STORETIME (VARCHAR), CGID (INTEGER), ORDERID (INTEGER), LINKORDERID (INTEGER), ORDERCATEGORYNAME (VARCHAR), SECONDARYORDERCATEGORYNAME (INTEGER), ORDERCATEGORYDESCRIPTION (VARCHAR), ISOPENBAG (INTEGER), CONTINUEINNEXTDEPT (INTEGER), CANCELREASON (INTEGER), STATUSDESCRIPTION (VARCHAR), COMMENTS_EDITEDBY (VARCHAR), COMMENTS_CANCELEDBY (VARCHAR), COMMENTS_DATE (VARCHAR), . The table is: Table containing medical procedure events with various details such as chart time, item ID, value, and unit of measurement.{'ROW_ID': 379, 'SUBJECT_ID': 29070, 'HADM_ID': 115071, 'ICUSTAY_ID': 232563, 'STARTTIME': '2145-03-12 23:04:00', 'ENDTIME': '2145-03-12 23:05:00', 'ITEMID': 225401, 'VALUE': 1, 'VALUEUOM': None, 'LOCATION': None, 'LOCATIONCATEGORY': None, 'STORETIME': '2145-03-12 23:04:00', 'CGID': 20855, 'ORDERID': 5092605, 'LINKORDERID': 5092605, 'ORDERCATEGORYNAME': 'PROCEDURES', 'SECONDARYORDERCATEGORYNAME': None, 'ORDERCATEGORYDESCRIPTION': 'ELECTROLYTES', 'ISOPENBAG': 0, 'CONTINUEINNEXTDEPT': 0, 'CANCELREASON': 0, 'STATUSDESCRIPTION': 'FINISHEDRUNNING', 'COMMENTS_EDITEDBY': None, 'COMMENTS_CANCELEDBY': None, 'COMMENTS_DATE': None}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Question: WHAT IS THE DRUG INTENSITY OF METOPROLOL TARTRATE GIVEN TO THE PATIENT WITH AN ADMISSION ID = 105445
SQLQuery:
|
FOR THE PATIENT HAVING AN ADMISSION ID = 102527, WHAT IS THE RECOMMENDED ROUTE OF DRUG ADMINISTRATION FOR ENOXAPARIN | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'D_CPT' has columns: ROW_ID (INTEGER), CATEGORY (INTEGER), SECTIONRANGE (VARCHAR), SECTIONHEADER (VARCHAR), SUBSECTIONRANGE (VARCHAR), SUBSECTIONHEADER (VARCHAR), CODESUFFIX (VARCHAR), MINCODEINSUBSECTION (INTEGER), MAXCODEINSUBSECTION (INTEGER), . The table is: Codes for evaluation and management services with their corresponding categories and subsection headers.{'ROW_ID': 1, 'CATEGORY': 1, 'SECTIONRANGE': '99201-99499', 'SECTIONHEADER': 'EVALUATION AND MANAGEMENT', 'SUBSECTIONRANGE': '99201-99216', 'SUBSECTIONHEADER': 'OFFICE/OTHER OUTPATIENT SERVICES', 'CODESUFFIX': None, 'MINCODEINSUBSECTION': 99201, 'MAXCODEINSUBSECTION': 99216}
Question: FOR THE PATIENT HAVING AN ADMISSION ID = 102527, WHAT IS THE RECOMMENDED ROUTE OF DRUG ADMINISTRATION FOR ENOXAPARIN
SQLQuery:
|
WHAT IS THE DOSAGE OF HEPARIN (PORCINE) PRESCRIBED TO THE PATIENT WITH ADMISSION ID 104140 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'MICROBIOLOGYEVENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), CHARTDATE (VARCHAR), CHARTTIME (VARCHAR), SPEC_ITEMID (INTEGER), SPEC_TYPE_DESC (VARCHAR), ORG_ITEMID (INTEGER), ORG_NAME (VARCHAR), ISOLATE_NUM (INTEGER), AB_ITEMID (INTEGER), AB_NAME (VARCHAR), DILUTION_TEXT (VARCHAR), DILUTION_COMPARISON (VARCHAR), DILUTION_VALUE (INTEGER), INTERPRETATION (VARCHAR), . The table is: Table containing various medical event labels and their corresponding item IDs.{'ROW_ID': 744, 'SUBJECT_ID': 96, 'HADM_ID': 170324, 'CHARTDATE': '2156-04-13 00:00:00', 'CHARTTIME': '2156-04-13 14:18:00', 'SPEC_ITEMID': 70021, 'SPEC_TYPE_DESC': 'BRONCHOALVEOLAR LAVAGE', 'ORG_ITEMID': 80026, 'ORG_NAME': 'PSEUDOMONAS AERUGINOSA', 'ISOLATE_NUM': 1, 'AB_ITEMID': None, 'AB_NAME': None, 'DILUTION_TEXT': None, 'DILUTION_COMPARISON': None, 'DILUTION_VALUE': None, 'INTERPRETATION': None}
Question: WHAT IS THE DOSAGE OF HEPARIN (PORCINE) PRESCRIBED TO THE PATIENT WITH ADMISSION ID 104140
SQLQuery:
|
MENTION THE FORM OF ACETAMINOPHEN TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 105360 | SELECT PRESCRIPTIONS.FORM_UNIT_DISP FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 105360 AND PRESCRIPTIONS.DRUG = "ACETAMINOPHEN" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'CAREGIVER' has columns: ROW_ID (INTEGER), CGID (INTEGER), LABEL (VARCHAR), DESCRIPTION (VARCHAR), . The table is: This table contains information about caregivers, including their roles and descriptions.{'ROW_ID': 2228, 'CGID': 16174, 'LABEL': 'RO', 'DESCRIPTION': 'READ ONLY'}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Question: MENTION THE FORM OF ACETAMINOPHEN TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 105360
SQLQuery:
|
WHAT IS THE DRUG INTENSITY OF DILT GIVEN TO THE PATIENT WITH AN ADMISSION ID = 116204 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'D_ITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), ABBREVIATION (VARCHAR), DBSOURCE (VARCHAR), LINKSTO (VARCHAR), CATEGORY (VARCHAR), UNITNAME (VARCHAR), PARAM_TYPE (VARCHAR), CONCEPTID (INTEGER), . The table is: This table contains information about various laboratory items, including their labels, categories, and LOINC codes.{'ROW_ID': 457, 'ITEMID': 497, 'LABEL': 'PATIENT CONTROLLED ANALGESIA (PCA) [INJECT]', 'ABBREVIATION': None, 'DBSOURCE': 'CAREVUE', 'LINKSTO': 'CHARTEVENTS', 'CATEGORY': None, 'UNITNAME': None, 'PARAM_TYPE': None, 'CONCEPTID': None}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Question: WHAT IS THE DRUG INTENSITY OF DILT GIVEN TO THE PATIENT WITH AN ADMISSION ID = 116204
SQLQuery:
|
WHAT IS THE ROUTE OF ADMINISTRATION OF THE DRUG ADVAIR DISKUS FOR PATIENT WITH ADMISSION ID 106588 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_CPT' has columns: ROW_ID (INTEGER), CATEGORY (INTEGER), SECTIONRANGE (VARCHAR), SECTIONHEADER (VARCHAR), SUBSECTIONRANGE (VARCHAR), SUBSECTIONHEADER (VARCHAR), CODESUFFIX (VARCHAR), MINCODEINSUBSECTION (INTEGER), MAXCODEINSUBSECTION (INTEGER), . The table is: Codes for evaluation and management services with their corresponding categories and subsection headers.{'ROW_ID': 1, 'CATEGORY': 1, 'SECTIONRANGE': '99201-99499', 'SECTIONHEADER': 'EVALUATION AND MANAGEMENT', 'SUBSECTIONRANGE': '99201-99216', 'SUBSECTIONHEADER': 'OFFICE/OTHER OUTPATIENT SERVICES', 'CODESUFFIX': None, 'MINCODEINSUBSECTION': 99201, 'MAXCODEINSUBSECTION': 99216}
Question: WHAT IS THE ROUTE OF ADMINISTRATION OF THE DRUG ADVAIR DISKUS FOR PATIENT WITH ADMISSION ID 106588
SQLQuery:
|
WHAT IS THE DOSAGE OF MORPHINE PRESCRIBED TO THE PATIENT WITH ADMISSION ID 115191 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Question: WHAT IS THE DOSAGE OF MORPHINE PRESCRIBED TO THE PATIENT WITH ADMISSION ID 115191
SQLQuery:
|
WHAT IS THE FORM OF PERPHENAZINE PRESCRIBED TO THE PATIENT WITH ADMISSION ID 129109 | SELECT PRESCRIPTIONS.FORM_UNIT_DISP FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 129109 AND PRESCRIPTIONS.DRUG = "PERPHENAZINE" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Question: WHAT IS THE FORM OF PERPHENAZINE PRESCRIBED TO THE PATIENT WITH ADMISSION ID 129109
SQLQuery:
|
MENTION THE DRUG INTENSITY OF ASIPRIN PRESCRIBED TO THE PATIENT WHOSE ADMISSION ID IS 114004 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'D_CPT' has columns: ROW_ID (INTEGER), CATEGORY (INTEGER), SECTIONRANGE (VARCHAR), SECTIONHEADER (VARCHAR), SUBSECTIONRANGE (VARCHAR), SUBSECTIONHEADER (VARCHAR), CODESUFFIX (VARCHAR), MINCODEINSUBSECTION (INTEGER), MAXCODEINSUBSECTION (INTEGER), . The table is: Codes for evaluation and management services with their corresponding categories and subsection headers.{'ROW_ID': 1, 'CATEGORY': 1, 'SECTIONRANGE': '99201-99499', 'SECTIONHEADER': 'EVALUATION AND MANAGEMENT', 'SUBSECTIONRANGE': '99201-99216', 'SUBSECTIONHEADER': 'OFFICE/OTHER OUTPATIENT SERVICES', 'CODESUFFIX': None, 'MINCODEINSUBSECTION': 99201, 'MAXCODEINSUBSECTION': 99216}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Question: MENTION THE DRUG INTENSITY OF ASIPRIN PRESCRIBED TO THE PATIENT WHOSE ADMISSION ID IS 114004
SQLQuery:
|
WHAT IS THE DRUG INTENSITY OF LISINOPRIL GIVEN TO THE PATIENT WITH AN ADMISSION ID = 115347 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), ABBREVIATION (VARCHAR), DBSOURCE (VARCHAR), LINKSTO (VARCHAR), CATEGORY (VARCHAR), UNITNAME (VARCHAR), PARAM_TYPE (VARCHAR), CONCEPTID (INTEGER), . The table is: This table contains information about various laboratory items, including their labels, categories, and LOINC codes.{'ROW_ID': 457, 'ITEMID': 497, 'LABEL': 'PATIENT CONTROLLED ANALGESIA (PCA) [INJECT]', 'ABBREVIATION': None, 'DBSOURCE': 'CAREVUE', 'LINKSTO': 'CHARTEVENTS', 'CATEGORY': None, 'UNITNAME': None, 'PARAM_TYPE': None, 'CONCEPTID': None}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Question: WHAT IS THE DRUG INTENSITY OF LISINOPRIL GIVEN TO THE PATIENT WITH AN ADMISSION ID = 115347
SQLQuery:
|
WHAT IS THE ROUTE OF ADMINISTRATION OF THE DRUG GLUCOSE FOR PATIENT WITH ADMISSION ID 109724 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Question: WHAT IS THE ROUTE OF ADMINISTRATION OF THE DRUG GLUCOSE FOR PATIENT WITH ADMISSION ID 109724
SQLQuery:
|
WHAT IS THE DOSE OF LIPITOR THAT THE PATIENT WITH ADMISSION ID = 102557 HAS BEEN PRESCRIBED | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'D_ITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), ABBREVIATION (VARCHAR), DBSOURCE (VARCHAR), LINKSTO (VARCHAR), CATEGORY (VARCHAR), UNITNAME (VARCHAR), PARAM_TYPE (VARCHAR), CONCEPTID (INTEGER), . The table is: This table contains information about various laboratory items, including their labels, categories, and LOINC codes.{'ROW_ID': 457, 'ITEMID': 497, 'LABEL': 'PATIENT CONTROLLED ANALGESIA (PCA) [INJECT]', 'ABBREVIATION': None, 'DBSOURCE': 'CAREVUE', 'LINKSTO': 'CHARTEVENTS', 'CATEGORY': None, 'UNITNAME': None, 'PARAM_TYPE': None, 'CONCEPTID': None}
Question: WHAT IS THE DOSE OF LIPITOR THAT THE PATIENT WITH ADMISSION ID = 102557 HAS BEEN PRESCRIBED
SQLQuery:
|
WHAT IS THE STRENGTH OF THE MEDICINE ASPIRIN TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 117871 | SELECT PRESCRIPTIONS.PROD_STRENGTH FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 117871 AND PRESCRIPTIONS.DRUG = "ASPIRIN" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'MICROBIOLOGYEVENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), CHARTDATE (VARCHAR), CHARTTIME (VARCHAR), SPEC_ITEMID (INTEGER), SPEC_TYPE_DESC (VARCHAR), ORG_ITEMID (INTEGER), ORG_NAME (VARCHAR), ISOLATE_NUM (INTEGER), AB_ITEMID (INTEGER), AB_NAME (VARCHAR), DILUTION_TEXT (VARCHAR), DILUTION_COMPARISON (VARCHAR), DILUTION_VALUE (INTEGER), INTERPRETATION (VARCHAR), . The table is: Table containing various medical event labels and their corresponding item IDs.{'ROW_ID': 744, 'SUBJECT_ID': 96, 'HADM_ID': 170324, 'CHARTDATE': '2156-04-13 00:00:00', 'CHARTTIME': '2156-04-13 14:18:00', 'SPEC_ITEMID': 70021, 'SPEC_TYPE_DESC': 'BRONCHOALVEOLAR LAVAGE', 'ORG_ITEMID': 80026, 'ORG_NAME': 'PSEUDOMONAS AERUGINOSA', 'ISOLATE_NUM': 1, 'AB_ITEMID': None, 'AB_NAME': None, 'DILUTION_TEXT': None, 'DILUTION_COMPARISON': None, 'DILUTION_VALUE': None, 'INTERPRETATION': None}
Question: WHAT IS THE STRENGTH OF THE MEDICINE ASPIRIN TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 117871
SQLQuery:
|
WHAT IS THE FORM OF LEVOFLOXACIN PRESCRIBED TO THE PATIENT WITH ADMISSION ID 102456 | SELECT PRESCRIPTIONS.FORM_UNIT_DISP FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 102456 AND PRESCRIPTIONS.DRUG = "LEVOFLOXACIN" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_ITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), ABBREVIATION (VARCHAR), DBSOURCE (VARCHAR), LINKSTO (VARCHAR), CATEGORY (VARCHAR), UNITNAME (VARCHAR), PARAM_TYPE (VARCHAR), CONCEPTID (INTEGER), . The table is: This table contains information about various laboratory items, including their labels, categories, and LOINC codes.{'ROW_ID': 457, 'ITEMID': 497, 'LABEL': 'PATIENT CONTROLLED ANALGESIA (PCA) [INJECT]', 'ABBREVIATION': None, 'DBSOURCE': 'CAREVUE', 'LINKSTO': 'CHARTEVENTS', 'CATEGORY': None, 'UNITNAME': None, 'PARAM_TYPE': None, 'CONCEPTID': None}
Table 'MICROBIOLOGYEVENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), CHARTDATE (VARCHAR), CHARTTIME (VARCHAR), SPEC_ITEMID (INTEGER), SPEC_TYPE_DESC (VARCHAR), ORG_ITEMID (INTEGER), ORG_NAME (VARCHAR), ISOLATE_NUM (INTEGER), AB_ITEMID (INTEGER), AB_NAME (VARCHAR), DILUTION_TEXT (VARCHAR), DILUTION_COMPARISON (VARCHAR), DILUTION_VALUE (INTEGER), INTERPRETATION (VARCHAR), . The table is: Table containing various medical event labels and their corresponding item IDs.{'ROW_ID': 744, 'SUBJECT_ID': 96, 'HADM_ID': 170324, 'CHARTDATE': '2156-04-13 00:00:00', 'CHARTTIME': '2156-04-13 14:18:00', 'SPEC_ITEMID': 70021, 'SPEC_TYPE_DESC': 'BRONCHOALVEOLAR LAVAGE', 'ORG_ITEMID': 80026, 'ORG_NAME': 'PSEUDOMONAS AERUGINOSA', 'ISOLATE_NUM': 1, 'AB_ITEMID': None, 'AB_NAME': None, 'DILUTION_TEXT': None, 'DILUTION_COMPARISON': None, 'DILUTION_VALUE': None, 'INTERPRETATION': None}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Question: WHAT IS THE FORM OF LEVOFLOXACIN PRESCRIBED TO THE PATIENT WITH ADMISSION ID 102456
SQLQuery:
|
MENTION THE TOTAL DURATION DURING WHICH THE PATIENT WITH ADMISSION ID = 113705 HAS BEEN TAKING HYDROCODONE- ACETAMINOPHEN | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Question: MENTION THE TOTAL DURATION DURING WHICH THE PATIENT WITH ADMISSION ID = 113705 HAS BEEN TAKING HYDROCODONE- ACETAMINOPHEN
SQLQuery:
|
WHAT IS THE DRUG STRENGTH OF ASA PRESCRIBED TO THE PATIENT WITH ADMISSION ID 182160 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'D_CPT' has columns: ROW_ID (INTEGER), CATEGORY (INTEGER), SECTIONRANGE (VARCHAR), SECTIONHEADER (VARCHAR), SUBSECTIONRANGE (VARCHAR), SUBSECTIONHEADER (VARCHAR), CODESUFFIX (VARCHAR), MINCODEINSUBSECTION (INTEGER), MAXCODEINSUBSECTION (INTEGER), . The table is: Codes for evaluation and management services with their corresponding categories and subsection headers.{'ROW_ID': 1, 'CATEGORY': 1, 'SECTIONRANGE': '99201-99499', 'SECTIONHEADER': 'EVALUATION AND MANAGEMENT', 'SUBSECTIONRANGE': '99201-99216', 'SUBSECTIONHEADER': 'OFFICE/OTHER OUTPATIENT SERVICES', 'CODESUFFIX': None, 'MINCODEINSUBSECTION': 99201, 'MAXCODEINSUBSECTION': 99216}
Question: WHAT IS THE DRUG STRENGTH OF ASA PRESCRIBED TO THE PATIENT WITH ADMISSION ID 182160
SQLQuery:
|
WHAT IS THE DRUG INTENSITY OF PREVASTATIN GIVEN TO THE PATIENT WITH AN ADMISSION ID = 124142 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'PROCEDUREEVENTS_MV' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTTIME (VARCHAR), ENDTIME (VARCHAR), ITEMID (INTEGER), VALUE (INTEGER), VALUEUOM (VARCHAR), LOCATION (VARCHAR), LOCATIONCATEGORY (VARCHAR), STORETIME (VARCHAR), CGID (INTEGER), ORDERID (INTEGER), LINKORDERID (INTEGER), ORDERCATEGORYNAME (VARCHAR), SECONDARYORDERCATEGORYNAME (INTEGER), ORDERCATEGORYDESCRIPTION (VARCHAR), ISOPENBAG (INTEGER), CONTINUEINNEXTDEPT (INTEGER), CANCELREASON (INTEGER), STATUSDESCRIPTION (VARCHAR), COMMENTS_EDITEDBY (VARCHAR), COMMENTS_CANCELEDBY (VARCHAR), COMMENTS_DATE (VARCHAR), . The table is: Table containing medical procedure events with various details such as chart time, item ID, value, and unit of measurement.{'ROW_ID': 379, 'SUBJECT_ID': 29070, 'HADM_ID': 115071, 'ICUSTAY_ID': 232563, 'STARTTIME': '2145-03-12 23:04:00', 'ENDTIME': '2145-03-12 23:05:00', 'ITEMID': 225401, 'VALUE': 1, 'VALUEUOM': None, 'LOCATION': None, 'LOCATIONCATEGORY': None, 'STORETIME': '2145-03-12 23:04:00', 'CGID': 20855, 'ORDERID': 5092605, 'LINKORDERID': 5092605, 'ORDERCATEGORYNAME': 'PROCEDURES', 'SECONDARYORDERCATEGORYNAME': None, 'ORDERCATEGORYDESCRIPTION': 'ELECTROLYTES', 'ISOPENBAG': 0, 'CONTINUEINNEXTDEPT': 0, 'CANCELREASON': 0, 'STATUSDESCRIPTION': 'FINISHEDRUNNING', 'COMMENTS_EDITEDBY': None, 'COMMENTS_CANCELEDBY': None, 'COMMENTS_DATE': None}
Question: WHAT IS THE DRUG INTENSITY OF PREVASTATIN GIVEN TO THE PATIENT WITH AN ADMISSION ID = 124142
SQLQuery:
|
FOR THE PATIENT HAVING AN ADMISSION ID = 127741, WHAT IS THE RECOMMENDED ROUTE OF DRUG ADMINISTRATION FOR OXYGEN | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Question: FOR THE PATIENT HAVING AN ADMISSION ID = 127741, WHAT IS THE RECOMMENDED ROUTE OF DRUG ADMINISTRATION FOR OXYGEN
SQLQuery:
|
WHAT IS THE FORM OF GUAIFENESIN PRESCRIBED TO THE PATIENT WITH ADMISSION ID 113391 | SELECT PRESCRIPTIONS.FORM_UNIT_DISP FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 113391 AND PRESCRIPTIONS.DRUG = "GUAIFENESIN" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Question: WHAT IS THE FORM OF GUAIFENESIN PRESCRIBED TO THE PATIENT WITH ADMISSION ID 113391
SQLQuery:
|
WHAT IS THE DRUG INTENSITY OF AMITRIPTYLINE GIVEN TO THE PATIENT WITH AN ADMISSION ID = 159079 | SELECT PRESCRIPTIONS.PROD_STRENGTH FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 159079 AND PRESCRIPTIONS.DRUG = "AMITRIPTYLINE" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Question: WHAT IS THE DRUG INTENSITY OF AMITRIPTYLINE GIVEN TO THE PATIENT WITH AN ADMISSION ID = 159079
SQLQuery:
|
WHAT WAS THE DOSAGE OF ACETAMINOPHEN THAT WAS PRESCRIBED TO THE PATIENT WITH ADMISSION ID = 104549 | SELECT PRESCRIPTIONS.DOSE_VAL_RX, PRESCRIPTIONS.DOSE_UNIT_RX FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 104549 AND PRESCRIPTIONS.DRUG = "ACETAMINOPHEN" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Question: WHAT WAS THE DOSAGE OF ACETAMINOPHEN THAT WAS PRESCRIBED TO THE PATIENT WITH ADMISSION ID = 104549
SQLQuery:
|
MENTION THE DRUG INTENSITY OF ZOFRAN PRESCRIBED TO THE PATIENT WHOSE ADMISSION ID IS 103928 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Question: MENTION THE DRUG INTENSITY OF ZOFRAN PRESCRIBED TO THE PATIENT WHOSE ADMISSION ID IS 103928
SQLQuery:
|
MENTION THE FORM OF ASPIRIN TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 112030 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Question: MENTION THE FORM OF ASPIRIN TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 112030
SQLQuery:
|
WHAT IS THE FORM OF ACETAMINOPHE N PRESCRIBED TO THE PATIENT WITH ADMISSION ID 106064 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Question: WHAT IS THE FORM OF ACETAMINOPHE N PRESCRIBED TO THE PATIENT WITH ADMISSION ID 106064
SQLQuery:
|
WHAT IS THE STRENGTH OF THE MEDICINE OXYCODONE TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 100229 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Question: WHAT IS THE STRENGTH OF THE MEDICINE OXYCODONE TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 100229
SQLQuery:
|
WHAT IS THE DOSE OF METOPROLOL TARTRATE THAT THE PATIENT WITH ADMISSION ID = 191061 HAS BEEN PRESCRIBED | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'PROCEDUREEVENTS_MV' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTTIME (VARCHAR), ENDTIME (VARCHAR), ITEMID (INTEGER), VALUE (INTEGER), VALUEUOM (VARCHAR), LOCATION (VARCHAR), LOCATIONCATEGORY (VARCHAR), STORETIME (VARCHAR), CGID (INTEGER), ORDERID (INTEGER), LINKORDERID (INTEGER), ORDERCATEGORYNAME (VARCHAR), SECONDARYORDERCATEGORYNAME (INTEGER), ORDERCATEGORYDESCRIPTION (VARCHAR), ISOPENBAG (INTEGER), CONTINUEINNEXTDEPT (INTEGER), CANCELREASON (INTEGER), STATUSDESCRIPTION (VARCHAR), COMMENTS_EDITEDBY (VARCHAR), COMMENTS_CANCELEDBY (VARCHAR), COMMENTS_DATE (VARCHAR), . The table is: Table containing medical procedure events with various details such as chart time, item ID, value, and unit of measurement.{'ROW_ID': 379, 'SUBJECT_ID': 29070, 'HADM_ID': 115071, 'ICUSTAY_ID': 232563, 'STARTTIME': '2145-03-12 23:04:00', 'ENDTIME': '2145-03-12 23:05:00', 'ITEMID': 225401, 'VALUE': 1, 'VALUEUOM': None, 'LOCATION': None, 'LOCATIONCATEGORY': None, 'STORETIME': '2145-03-12 23:04:00', 'CGID': 20855, 'ORDERID': 5092605, 'LINKORDERID': 5092605, 'ORDERCATEGORYNAME': 'PROCEDURES', 'SECONDARYORDERCATEGORYNAME': None, 'ORDERCATEGORYDESCRIPTION': 'ELECTROLYTES', 'ISOPENBAG': 0, 'CONTINUEINNEXTDEPT': 0, 'CANCELREASON': 0, 'STATUSDESCRIPTION': 'FINISHEDRUNNING', 'COMMENTS_EDITEDBY': None, 'COMMENTS_CANCELEDBY': None, 'COMMENTS_DATE': None}
Question: WHAT IS THE DOSE OF METOPROLOL TARTRATE THAT THE PATIENT WITH ADMISSION ID = 191061 HAS BEEN PRESCRIBED
SQLQuery:
|
WHAT IS THE DRUG INTENSITY OF HYDROXYZINE HCL GIVEN TO THE PATIENT WITH AN ADMISSION ID = 107872 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Question: WHAT IS THE DRUG INTENSITY OF HYDROXYZINE HCL GIVEN TO THE PATIENT WITH AN ADMISSION ID = 107872
SQLQuery:
|
FOR THE PATIENT HAVING AN ADMISSION ID = 112368, WHAT IS THE RECOMMENDED ROUTE OF DRUG ADMINISTRATION FOR OMEPRAZOLE | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_CPT' has columns: ROW_ID (INTEGER), CATEGORY (INTEGER), SECTIONRANGE (VARCHAR), SECTIONHEADER (VARCHAR), SUBSECTIONRANGE (VARCHAR), SUBSECTIONHEADER (VARCHAR), CODESUFFIX (VARCHAR), MINCODEINSUBSECTION (INTEGER), MAXCODEINSUBSECTION (INTEGER), . The table is: Codes for evaluation and management services with their corresponding categories and subsection headers.{'ROW_ID': 1, 'CATEGORY': 1, 'SECTIONRANGE': '99201-99499', 'SECTIONHEADER': 'EVALUATION AND MANAGEMENT', 'SUBSECTIONRANGE': '99201-99216', 'SUBSECTIONHEADER': 'OFFICE/OTHER OUTPATIENT SERVICES', 'CODESUFFIX': None, 'MINCODEINSUBSECTION': 99201, 'MAXCODEINSUBSECTION': 99216}
Question: FOR THE PATIENT HAVING AN ADMISSION ID = 112368, WHAT IS THE RECOMMENDED ROUTE OF DRUG ADMINISTRATION FOR OMEPRAZOLE
SQLQuery:
|
WHAT IS THE ROUTE OF ADMINISTRATION OF THE DRUG FERROUS SULFATE FOR PATIENT WITH ADMISSION ID 157713 | SELECT PRESCRIPTIONS.ROUTE FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 157713 AND PRESCRIPTIONS.DRUG = "FERROUS SULFATE" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Question: WHAT IS THE ROUTE OF ADMINISTRATION OF THE DRUG FERROUS SULFATE FOR PATIENT WITH ADMISSION ID 157713
SQLQuery:
|
FOR THE PATIENT HAVING AN ADMISSION ID = 195689, WHAT IS THE RECOMMENDED ROUTE OF DRUG ADMINISTRATION FOR METFORMIN | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'D_CPT' has columns: ROW_ID (INTEGER), CATEGORY (INTEGER), SECTIONRANGE (VARCHAR), SECTIONHEADER (VARCHAR), SUBSECTIONRANGE (VARCHAR), SUBSECTIONHEADER (VARCHAR), CODESUFFIX (VARCHAR), MINCODEINSUBSECTION (INTEGER), MAXCODEINSUBSECTION (INTEGER), . The table is: Codes for evaluation and management services with their corresponding categories and subsection headers.{'ROW_ID': 1, 'CATEGORY': 1, 'SECTIONRANGE': '99201-99499', 'SECTIONHEADER': 'EVALUATION AND MANAGEMENT', 'SUBSECTIONRANGE': '99201-99216', 'SUBSECTIONHEADER': 'OFFICE/OTHER OUTPATIENT SERVICES', 'CODESUFFIX': None, 'MINCODEINSUBSECTION': 99201, 'MAXCODEINSUBSECTION': 99216}
Question: FOR THE PATIENT HAVING AN ADMISSION ID = 195689, WHAT IS THE RECOMMENDED ROUTE OF DRUG ADMINISTRATION FOR METFORMIN
SQLQuery:
|
WHAT IS THE FORM OF CALCIUM CARBONATE PRESCRIBED TO THE PATIENT WITH ADMISSION ID 114248 | SELECT PRESCRIPTIONS.FORM_UNIT_DISP FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 114248 AND PRESCRIPTIONS.DRUG = "CALCIUM CARBONATE" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Question: WHAT IS THE FORM OF CALCIUM CARBONATE PRESCRIBED TO THE PATIENT WITH ADMISSION ID 114248
SQLQuery:
|
WHAT IS THE DRUG INTENSITY OF TRIMETHOPRIM- SULFAMETHOXAZOLE GIVEN TO THE PATIENT WITH AN ADMISSION ID = 125281 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_CPT' has columns: ROW_ID (INTEGER), CATEGORY (INTEGER), SECTIONRANGE (VARCHAR), SECTIONHEADER (VARCHAR), SUBSECTIONRANGE (VARCHAR), SUBSECTIONHEADER (VARCHAR), CODESUFFIX (VARCHAR), MINCODEINSUBSECTION (INTEGER), MAXCODEINSUBSECTION (INTEGER), . The table is: Codes for evaluation and management services with their corresponding categories and subsection headers.{'ROW_ID': 1, 'CATEGORY': 1, 'SECTIONRANGE': '99201-99499', 'SECTIONHEADER': 'EVALUATION AND MANAGEMENT', 'SUBSECTIONRANGE': '99201-99216', 'SUBSECTIONHEADER': 'OFFICE/OTHER OUTPATIENT SERVICES', 'CODESUFFIX': None, 'MINCODEINSUBSECTION': 99201, 'MAXCODEINSUBSECTION': 99216}
Question: WHAT IS THE DRUG INTENSITY OF TRIMETHOPRIM- SULFAMETHOXAZOLE GIVEN TO THE PATIENT WITH AN ADMISSION ID = 125281
SQLQuery:
|
FOR THE PATIENT HAVING AN ADMISSION ID = 115771, WHAT IS THE RECOMMENDED ROUTE OF DRUG ADMINISTRATION FOR TPN | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_CPT' has columns: ROW_ID (INTEGER), CATEGORY (INTEGER), SECTIONRANGE (VARCHAR), SECTIONHEADER (VARCHAR), SUBSECTIONRANGE (VARCHAR), SUBSECTIONHEADER (VARCHAR), CODESUFFIX (VARCHAR), MINCODEINSUBSECTION (INTEGER), MAXCODEINSUBSECTION (INTEGER), . The table is: Codes for evaluation and management services with their corresponding categories and subsection headers.{'ROW_ID': 1, 'CATEGORY': 1, 'SECTIONRANGE': '99201-99499', 'SECTIONHEADER': 'EVALUATION AND MANAGEMENT', 'SUBSECTIONRANGE': '99201-99216', 'SUBSECTIONHEADER': 'OFFICE/OTHER OUTPATIENT SERVICES', 'CODESUFFIX': None, 'MINCODEINSUBSECTION': 99201, 'MAXCODEINSUBSECTION': 99216}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Question: FOR THE PATIENT HAVING AN ADMISSION ID = 115771, WHAT IS THE RECOMMENDED ROUTE OF DRUG ADMINISTRATION FOR TPN
SQLQuery:
|
MENTION THE FORM OF GUAIFENESIN TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 102027 | SELECT PRESCRIPTIONS.FORM_UNIT_DISP FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 102027 AND PRESCRIPTIONS.DRUG = "GUAIFENESIN" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Question: MENTION THE FORM OF GUAIFENESIN TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 102027
SQLQuery:
|
WHAT IS THE DRUG INTENSITY OF ZOLPIDEM GIVEN TO THE PATIENT WITH AN ADMISSION ID = 121915 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Question: WHAT IS THE DRUG INTENSITY OF ZOLPIDEM GIVEN TO THE PATIENT WITH AN ADMISSION ID = 121915
SQLQuery:
|
WHAT IS THE DOSE OF HYDROMORPHONE THAT THE PATIENT WITH ADMISSION ID = 177370 HAS BEEN PRESCRIBED | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Question: WHAT IS THE DOSE OF HYDROMORPHONE THAT THE PATIENT WITH ADMISSION ID = 177370 HAS BEEN PRESCRIBED
SQLQuery:
|
WHAT WAS THE DOSAGE OF ATORVASTATI N THAT WAS PRESCRIBED TO THE PATIENT WITH ADMISSION ID = 181643 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Question: WHAT WAS THE DOSAGE OF ATORVASTATI N THAT WAS PRESCRIBED TO THE PATIENT WITH ADMISSION ID = 181643
SQLQuery:
|
WHAT IS THE DOSE OF MULTIVITAMIN THAT THE PATIENT WITH ADMISSION ID = 168831 HAS BEEN PRESCRIBED | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), ABBREVIATION (VARCHAR), DBSOURCE (VARCHAR), LINKSTO (VARCHAR), CATEGORY (VARCHAR), UNITNAME (VARCHAR), PARAM_TYPE (VARCHAR), CONCEPTID (INTEGER), . The table is: This table contains information about various laboratory items, including their labels, categories, and LOINC codes.{'ROW_ID': 457, 'ITEMID': 497, 'LABEL': 'PATIENT CONTROLLED ANALGESIA (PCA) [INJECT]', 'ABBREVIATION': None, 'DBSOURCE': 'CAREVUE', 'LINKSTO': 'CHARTEVENTS', 'CATEGORY': None, 'UNITNAME': None, 'PARAM_TYPE': None, 'CONCEPTID': None}
Table 'MICROBIOLOGYEVENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), CHARTDATE (VARCHAR), CHARTTIME (VARCHAR), SPEC_ITEMID (INTEGER), SPEC_TYPE_DESC (VARCHAR), ORG_ITEMID (INTEGER), ORG_NAME (VARCHAR), ISOLATE_NUM (INTEGER), AB_ITEMID (INTEGER), AB_NAME (VARCHAR), DILUTION_TEXT (VARCHAR), DILUTION_COMPARISON (VARCHAR), DILUTION_VALUE (INTEGER), INTERPRETATION (VARCHAR), . The table is: Table containing various medical event labels and their corresponding item IDs.{'ROW_ID': 744, 'SUBJECT_ID': 96, 'HADM_ID': 170324, 'CHARTDATE': '2156-04-13 00:00:00', 'CHARTTIME': '2156-04-13 14:18:00', 'SPEC_ITEMID': 70021, 'SPEC_TYPE_DESC': 'BRONCHOALVEOLAR LAVAGE', 'ORG_ITEMID': 80026, 'ORG_NAME': 'PSEUDOMONAS AERUGINOSA', 'ISOLATE_NUM': 1, 'AB_ITEMID': None, 'AB_NAME': None, 'DILUTION_TEXT': None, 'DILUTION_COMPARISON': None, 'DILUTION_VALUE': None, 'INTERPRETATION': None}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Question: WHAT IS THE DOSE OF MULTIVITAMIN THAT THE PATIENT WITH ADMISSION ID = 168831 HAS BEEN PRESCRIBED
SQLQuery:
|
WHAT IS THE STRENGTH OF THE MEDICINE ASPIRIN TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 101215 | SELECT PRESCRIPTIONS.PROD_STRENGTH FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 101215 AND PRESCRIPTIONS.DRUG = "ASPIRIN" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'MICROBIOLOGYEVENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), CHARTDATE (VARCHAR), CHARTTIME (VARCHAR), SPEC_ITEMID (INTEGER), SPEC_TYPE_DESC (VARCHAR), ORG_ITEMID (INTEGER), ORG_NAME (VARCHAR), ISOLATE_NUM (INTEGER), AB_ITEMID (INTEGER), AB_NAME (VARCHAR), DILUTION_TEXT (VARCHAR), DILUTION_COMPARISON (VARCHAR), DILUTION_VALUE (INTEGER), INTERPRETATION (VARCHAR), . The table is: Table containing various medical event labels and their corresponding item IDs.{'ROW_ID': 744, 'SUBJECT_ID': 96, 'HADM_ID': 170324, 'CHARTDATE': '2156-04-13 00:00:00', 'CHARTTIME': '2156-04-13 14:18:00', 'SPEC_ITEMID': 70021, 'SPEC_TYPE_DESC': 'BRONCHOALVEOLAR LAVAGE', 'ORG_ITEMID': 80026, 'ORG_NAME': 'PSEUDOMONAS AERUGINOSA', 'ISOLATE_NUM': 1, 'AB_ITEMID': None, 'AB_NAME': None, 'DILUTION_TEXT': None, 'DILUTION_COMPARISON': None, 'DILUTION_VALUE': None, 'INTERPRETATION': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Question: WHAT IS THE STRENGTH OF THE MEDICINE ASPIRIN TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 101215
SQLQuery:
|
WHAT IS THE DRUG STRENGTH OF BENZONATAT E PRESCRIBED TO THE PATIENT WITH ADMISSION ID 113333 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Question: WHAT IS THE DRUG STRENGTH OF BENZONATAT E PRESCRIBED TO THE PATIENT WITH ADMISSION ID 113333
SQLQuery:
|
WHAT IS THE DOSE OF NS IVF THAT THE PATIENT WITH ADMISSION ID = 110140 HAS BEEN PRESCRIBED | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), ABBREVIATION (VARCHAR), DBSOURCE (VARCHAR), LINKSTO (VARCHAR), CATEGORY (VARCHAR), UNITNAME (VARCHAR), PARAM_TYPE (VARCHAR), CONCEPTID (INTEGER), . The table is: This table contains information about various laboratory items, including their labels, categories, and LOINC codes.{'ROW_ID': 457, 'ITEMID': 497, 'LABEL': 'PATIENT CONTROLLED ANALGESIA (PCA) [INJECT]', 'ABBREVIATION': None, 'DBSOURCE': 'CAREVUE', 'LINKSTO': 'CHARTEVENTS', 'CATEGORY': None, 'UNITNAME': None, 'PARAM_TYPE': None, 'CONCEPTID': None}
Table 'MICROBIOLOGYEVENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), CHARTDATE (VARCHAR), CHARTTIME (VARCHAR), SPEC_ITEMID (INTEGER), SPEC_TYPE_DESC (VARCHAR), ORG_ITEMID (INTEGER), ORG_NAME (VARCHAR), ISOLATE_NUM (INTEGER), AB_ITEMID (INTEGER), AB_NAME (VARCHAR), DILUTION_TEXT (VARCHAR), DILUTION_COMPARISON (VARCHAR), DILUTION_VALUE (INTEGER), INTERPRETATION (VARCHAR), . The table is: Table containing various medical event labels and their corresponding item IDs.{'ROW_ID': 744, 'SUBJECT_ID': 96, 'HADM_ID': 170324, 'CHARTDATE': '2156-04-13 00:00:00', 'CHARTTIME': '2156-04-13 14:18:00', 'SPEC_ITEMID': 70021, 'SPEC_TYPE_DESC': 'BRONCHOALVEOLAR LAVAGE', 'ORG_ITEMID': 80026, 'ORG_NAME': 'PSEUDOMONAS AERUGINOSA', 'ISOLATE_NUM': 1, 'AB_ITEMID': None, 'AB_NAME': None, 'DILUTION_TEXT': None, 'DILUTION_COMPARISON': None, 'DILUTION_VALUE': None, 'INTERPRETATION': None}
Question: WHAT IS THE DOSE OF NS IVF THAT THE PATIENT WITH ADMISSION ID = 110140 HAS BEEN PRESCRIBED
SQLQuery:
|
FOR THE PATIENT HAVING AN ADMISSION ID = 110559, WHAT IS THE RECOMMENDED ROUTE OF DRUG ADMINISTRATION FOR ACETAMINOPHEN | SELECT PRESCRIPTIONS.ROUTE FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 110559 AND PRESCRIPTIONS.DRUG = "ACETAMINOPHEN" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'D_CPT' has columns: ROW_ID (INTEGER), CATEGORY (INTEGER), SECTIONRANGE (VARCHAR), SECTIONHEADER (VARCHAR), SUBSECTIONRANGE (VARCHAR), SUBSECTIONHEADER (VARCHAR), CODESUFFIX (VARCHAR), MINCODEINSUBSECTION (INTEGER), MAXCODEINSUBSECTION (INTEGER), . The table is: Codes for evaluation and management services with their corresponding categories and subsection headers.{'ROW_ID': 1, 'CATEGORY': 1, 'SECTIONRANGE': '99201-99499', 'SECTIONHEADER': 'EVALUATION AND MANAGEMENT', 'SUBSECTIONRANGE': '99201-99216', 'SUBSECTIONHEADER': 'OFFICE/OTHER OUTPATIENT SERVICES', 'CODESUFFIX': None, 'MINCODEINSUBSECTION': 99201, 'MAXCODEINSUBSECTION': 99216}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Question: FOR THE PATIENT HAVING AN ADMISSION ID = 110559, WHAT IS THE RECOMMENDED ROUTE OF DRUG ADMINISTRATION FOR ACETAMINOPHEN
SQLQuery:
|
WHAT IS THE ROUTE OF ADMINISTRATION OF THE DRUG LEVETIRACETAM FOR PATIENT WITH ADMISSION ID 108073 | SELECT PRESCRIPTIONS.ROUTE FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 108073 AND PRESCRIPTIONS.DRUG = "LEVETIRACETAM" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_CPT' has columns: ROW_ID (INTEGER), CATEGORY (INTEGER), SECTIONRANGE (VARCHAR), SECTIONHEADER (VARCHAR), SUBSECTIONRANGE (VARCHAR), SUBSECTIONHEADER (VARCHAR), CODESUFFIX (VARCHAR), MINCODEINSUBSECTION (INTEGER), MAXCODEINSUBSECTION (INTEGER), . The table is: Codes for evaluation and management services with their corresponding categories and subsection headers.{'ROW_ID': 1, 'CATEGORY': 1, 'SECTIONRANGE': '99201-99499', 'SECTIONHEADER': 'EVALUATION AND MANAGEMENT', 'SUBSECTIONRANGE': '99201-99216', 'SUBSECTIONHEADER': 'OFFICE/OTHER OUTPATIENT SERVICES', 'CODESUFFIX': None, 'MINCODEINSUBSECTION': 99201, 'MAXCODEINSUBSECTION': 99216}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Question: WHAT IS THE ROUTE OF ADMINISTRATION OF THE DRUG LEVETIRACETAM FOR PATIENT WITH ADMISSION ID 108073
SQLQuery:
|
WHAT IS THE STRENGTH OF THE MEDICINE ASPIRIN TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 111041 | SELECT PRESCRIPTIONS.PROD_STRENGTH FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 111041 AND PRESCRIPTIONS.DRUG = "ASPIRIN" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'MICROBIOLOGYEVENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), CHARTDATE (VARCHAR), CHARTTIME (VARCHAR), SPEC_ITEMID (INTEGER), SPEC_TYPE_DESC (VARCHAR), ORG_ITEMID (INTEGER), ORG_NAME (VARCHAR), ISOLATE_NUM (INTEGER), AB_ITEMID (INTEGER), AB_NAME (VARCHAR), DILUTION_TEXT (VARCHAR), DILUTION_COMPARISON (VARCHAR), DILUTION_VALUE (INTEGER), INTERPRETATION (VARCHAR), . The table is: Table containing various medical event labels and their corresponding item IDs.{'ROW_ID': 744, 'SUBJECT_ID': 96, 'HADM_ID': 170324, 'CHARTDATE': '2156-04-13 00:00:00', 'CHARTTIME': '2156-04-13 14:18:00', 'SPEC_ITEMID': 70021, 'SPEC_TYPE_DESC': 'BRONCHOALVEOLAR LAVAGE', 'ORG_ITEMID': 80026, 'ORG_NAME': 'PSEUDOMONAS AERUGINOSA', 'ISOLATE_NUM': 1, 'AB_ITEMID': None, 'AB_NAME': None, 'DILUTION_TEXT': None, 'DILUTION_COMPARISON': None, 'DILUTION_VALUE': None, 'INTERPRETATION': None}
Question: WHAT IS THE STRENGTH OF THE MEDICINE ASPIRIN TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 111041
SQLQuery:
|
MENTION THE DRUG INTENSITY OF ASPIRIN PRESCRIBED TO THE PATIENT WHOSE ADMISSION ID IS 107872 | SELECT PRESCRIPTIONS.PROD_STRENGTH FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 107872 AND PRESCRIPTIONS.DRUG = "ASPIRIN" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_CPT' has columns: ROW_ID (INTEGER), CATEGORY (INTEGER), SECTIONRANGE (VARCHAR), SECTIONHEADER (VARCHAR), SUBSECTIONRANGE (VARCHAR), SUBSECTIONHEADER (VARCHAR), CODESUFFIX (VARCHAR), MINCODEINSUBSECTION (INTEGER), MAXCODEINSUBSECTION (INTEGER), . The table is: Codes for evaluation and management services with their corresponding categories and subsection headers.{'ROW_ID': 1, 'CATEGORY': 1, 'SECTIONRANGE': '99201-99499', 'SECTIONHEADER': 'EVALUATION AND MANAGEMENT', 'SUBSECTIONRANGE': '99201-99216', 'SUBSECTIONHEADER': 'OFFICE/OTHER OUTPATIENT SERVICES', 'CODESUFFIX': None, 'MINCODEINSUBSECTION': 99201, 'MAXCODEINSUBSECTION': 99216}
Question: MENTION THE DRUG INTENSITY OF ASPIRIN PRESCRIBED TO THE PATIENT WHOSE ADMISSION ID IS 107872
SQLQuery:
|
WHAT IS THE FORM OF ALLOPURINO L PRESCRIBED TO THE PATIENT WITH ADMISSION ID 109770 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Question: WHAT IS THE FORM OF ALLOPURINO L PRESCRIBED TO THE PATIENT WITH ADMISSION ID 109770
SQLQuery:
|
WHAT IS THE DRUG STRENGTH OF IPRATROPIUM BROMIDE PRESCRIBED TO THE PATIENT WITH ADMISSION ID 105014 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Question: WHAT IS THE DRUG STRENGTH OF IPRATROPIUM BROMIDE PRESCRIBED TO THE PATIENT WITH ADMISSION ID 105014
SQLQuery:
|
WHAT IS THE DOSAGE OF LEVETIRACETAM PRESCRIBED TO THE PATIENT WITH ADMISSION ID 102296 | SELECT PRESCRIPTIONS.DOSE_VAL_RX, PRESCRIPTIONS.DOSE_UNIT_RX FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 102296 AND PRESCRIPTIONS.DRUG = "LEVETIRACETAM" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'MICROBIOLOGYEVENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), CHARTDATE (VARCHAR), CHARTTIME (VARCHAR), SPEC_ITEMID (INTEGER), SPEC_TYPE_DESC (VARCHAR), ORG_ITEMID (INTEGER), ORG_NAME (VARCHAR), ISOLATE_NUM (INTEGER), AB_ITEMID (INTEGER), AB_NAME (VARCHAR), DILUTION_TEXT (VARCHAR), DILUTION_COMPARISON (VARCHAR), DILUTION_VALUE (INTEGER), INTERPRETATION (VARCHAR), . The table is: Table containing various medical event labels and their corresponding item IDs.{'ROW_ID': 744, 'SUBJECT_ID': 96, 'HADM_ID': 170324, 'CHARTDATE': '2156-04-13 00:00:00', 'CHARTTIME': '2156-04-13 14:18:00', 'SPEC_ITEMID': 70021, 'SPEC_TYPE_DESC': 'BRONCHOALVEOLAR LAVAGE', 'ORG_ITEMID': 80026, 'ORG_NAME': 'PSEUDOMONAS AERUGINOSA', 'ISOLATE_NUM': 1, 'AB_ITEMID': None, 'AB_NAME': None, 'DILUTION_TEXT': None, 'DILUTION_COMPARISON': None, 'DILUTION_VALUE': None, 'INTERPRETATION': None}
Table 'D_ITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), ABBREVIATION (VARCHAR), DBSOURCE (VARCHAR), LINKSTO (VARCHAR), CATEGORY (VARCHAR), UNITNAME (VARCHAR), PARAM_TYPE (VARCHAR), CONCEPTID (INTEGER), . The table is: This table contains information about various laboratory items, including their labels, categories, and LOINC codes.{'ROW_ID': 457, 'ITEMID': 497, 'LABEL': 'PATIENT CONTROLLED ANALGESIA (PCA) [INJECT]', 'ABBREVIATION': None, 'DBSOURCE': 'CAREVUE', 'LINKSTO': 'CHARTEVENTS', 'CATEGORY': None, 'UNITNAME': None, 'PARAM_TYPE': None, 'CONCEPTID': None}
Question: WHAT IS THE DOSAGE OF LEVETIRACETAM PRESCRIBED TO THE PATIENT WITH ADMISSION ID 102296
SQLQuery:
|
FOR THE PATIENT HAVING AN ADMISSION ID = 152311, WHAT IS THE RECOMMENDED ROUTE OF DRUG ADMINISTRATION FOR METOPROLOL TARTRATE | SELECT PRESCRIPTIONS.ROUTE FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 152311 AND PRESCRIPTIONS.DRUG = "METOPROLOL TARTRATE" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_CPT' has columns: ROW_ID (INTEGER), CATEGORY (INTEGER), SECTIONRANGE (VARCHAR), SECTIONHEADER (VARCHAR), SUBSECTIONRANGE (VARCHAR), SUBSECTIONHEADER (VARCHAR), CODESUFFIX (VARCHAR), MINCODEINSUBSECTION (INTEGER), MAXCODEINSUBSECTION (INTEGER), . The table is: Codes for evaluation and management services with their corresponding categories and subsection headers.{'ROW_ID': 1, 'CATEGORY': 1, 'SECTIONRANGE': '99201-99499', 'SECTIONHEADER': 'EVALUATION AND MANAGEMENT', 'SUBSECTIONRANGE': '99201-99216', 'SUBSECTIONHEADER': 'OFFICE/OTHER OUTPATIENT SERVICES', 'CODESUFFIX': None, 'MINCODEINSUBSECTION': 99201, 'MAXCODEINSUBSECTION': 99216}
Question: FOR THE PATIENT HAVING AN ADMISSION ID = 152311, WHAT IS THE RECOMMENDED ROUTE OF DRUG ADMINISTRATION FOR METOPROLOL TARTRATE
SQLQuery:
|
WHAT IS THE DRUG INTENSITY OF CAMPHOR-MENTHOL GIVEN TO THE PATIENT WITH AN ADMISSION ID = 103928 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Question: WHAT IS THE DRUG INTENSITY OF CAMPHOR-MENTHOL GIVEN TO THE PATIENT WITH AN ADMISSION ID = 103928
SQLQuery:
|
WHAT IS THE STRENGTH OF THE MEDICINE LEVETIRACETAM [KEPPRA] TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 114735 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'LABEVENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ITEMID (INTEGER), CHARTTIME (VARCHAR), VALUE (VARCHAR), VALUENUM (INTEGER), VALUEUOM (VARCHAR), FLAG (VARCHAR), . The table is: Table containing laboratory test results for patients, including values, units, and flags.{'ROW_ID': 281, 'SUBJECT_ID': 3, 'HADM_ID': None, 'ITEMID': 50820, 'CHARTTIME': '2101-10-12 16:07:00', 'VALUE': '7.39', 'VALUENUM': 7.39, 'VALUEUOM': 'UNITS', 'FLAG': None}
Table 'MICROBIOLOGYEVENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), CHARTDATE (VARCHAR), CHARTTIME (VARCHAR), SPEC_ITEMID (INTEGER), SPEC_TYPE_DESC (VARCHAR), ORG_ITEMID (INTEGER), ORG_NAME (VARCHAR), ISOLATE_NUM (INTEGER), AB_ITEMID (INTEGER), AB_NAME (VARCHAR), DILUTION_TEXT (VARCHAR), DILUTION_COMPARISON (VARCHAR), DILUTION_VALUE (INTEGER), INTERPRETATION (VARCHAR), . The table is: Table containing various medical event labels and their corresponding item IDs.{'ROW_ID': 744, 'SUBJECT_ID': 96, 'HADM_ID': 170324, 'CHARTDATE': '2156-04-13 00:00:00', 'CHARTTIME': '2156-04-13 14:18:00', 'SPEC_ITEMID': 70021, 'SPEC_TYPE_DESC': 'BRONCHOALVEOLAR LAVAGE', 'ORG_ITEMID': 80026, 'ORG_NAME': 'PSEUDOMONAS AERUGINOSA', 'ISOLATE_NUM': 1, 'AB_ITEMID': None, 'AB_NAME': None, 'DILUTION_TEXT': None, 'DILUTION_COMPARISON': None, 'DILUTION_VALUE': None, 'INTERPRETATION': None}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Question: WHAT IS THE STRENGTH OF THE MEDICINE LEVETIRACETAM [KEPPRA] TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 114735
SQLQuery:
|
MENTION THE FORM OF ATOVAQUONE TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 116901 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Question: MENTION THE FORM OF ATOVAQUONE TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 116901
SQLQuery:
|
WHAT IS THE DRUG STRENGTH OF RANITIDINE HCL PRESCRIBED TO THE PATIENT WITH ADMISSION ID 161384 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'D_ITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), ABBREVIATION (VARCHAR), DBSOURCE (VARCHAR), LINKSTO (VARCHAR), CATEGORY (VARCHAR), UNITNAME (VARCHAR), PARAM_TYPE (VARCHAR), CONCEPTID (INTEGER), . The table is: This table contains information about various laboratory items, including their labels, categories, and LOINC codes.{'ROW_ID': 457, 'ITEMID': 497, 'LABEL': 'PATIENT CONTROLLED ANALGESIA (PCA) [INJECT]', 'ABBREVIATION': None, 'DBSOURCE': 'CAREVUE', 'LINKSTO': 'CHARTEVENTS', 'CATEGORY': None, 'UNITNAME': None, 'PARAM_TYPE': None, 'CONCEPTID': None}
Question: WHAT IS THE DRUG STRENGTH OF RANITIDINE HCL PRESCRIBED TO THE PATIENT WITH ADMISSION ID 161384
SQLQuery:
|
FOR THE PATIENT HAVING AN ADMISSION ID = 181643, WHAT IS THE RECOMMENDED ROUTE OF DRUG ADMINISTRATION FOR RISEDRONATE [ACTONEL] | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Question: FOR THE PATIENT HAVING AN ADMISSION ID = 181643, WHAT IS THE RECOMMENDED ROUTE OF DRUG ADMINISTRATION FOR RISEDRONATE [ACTONEL]
SQLQuery:
|
MENTION THE TOTAL DURATION DURING WHICH THE PATIENT WITH ADMISSION ID = 166237 HAS BEEN TAKING LEVOTHYROXINE | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'D_ITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), ABBREVIATION (VARCHAR), DBSOURCE (VARCHAR), LINKSTO (VARCHAR), CATEGORY (VARCHAR), UNITNAME (VARCHAR), PARAM_TYPE (VARCHAR), CONCEPTID (INTEGER), . The table is: This table contains information about various laboratory items, including their labels, categories, and LOINC codes.{'ROW_ID': 457, 'ITEMID': 497, 'LABEL': 'PATIENT CONTROLLED ANALGESIA (PCA) [INJECT]', 'ABBREVIATION': None, 'DBSOURCE': 'CAREVUE', 'LINKSTO': 'CHARTEVENTS', 'CATEGORY': None, 'UNITNAME': None, 'PARAM_TYPE': None, 'CONCEPTID': None}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Question: MENTION THE TOTAL DURATION DURING WHICH THE PATIENT WITH ADMISSION ID = 166237 HAS BEEN TAKING LEVOTHYROXINE
SQLQuery:
|
WHAT IS THE STRENGTH OF THE MEDICINE TYLENOL TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 168831 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Question: WHAT IS THE STRENGTH OF THE MEDICINE TYLENOL TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 168831
SQLQuery:
|
WHAT IS THE DOSAGE OF VITAMIN D PRESCRIBED TO THE PATIENT WITH ADMISSION ID 155980 | SELECT PRESCRIPTIONS.DOSE_VAL_RX, PRESCRIPTIONS.DOSE_UNIT_RX FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 155980 AND PRESCRIPTIONS.DRUG = "VITAMIN D" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'D_ITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), ABBREVIATION (VARCHAR), DBSOURCE (VARCHAR), LINKSTO (VARCHAR), CATEGORY (VARCHAR), UNITNAME (VARCHAR), PARAM_TYPE (VARCHAR), CONCEPTID (INTEGER), . The table is: This table contains information about various laboratory items, including their labels, categories, and LOINC codes.{'ROW_ID': 457, 'ITEMID': 497, 'LABEL': 'PATIENT CONTROLLED ANALGESIA (PCA) [INJECT]', 'ABBREVIATION': None, 'DBSOURCE': 'CAREVUE', 'LINKSTO': 'CHARTEVENTS', 'CATEGORY': None, 'UNITNAME': None, 'PARAM_TYPE': None, 'CONCEPTID': None}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Question: WHAT IS THE DOSAGE OF VITAMIN D PRESCRIBED TO THE PATIENT WITH ADMISSION ID 155980
SQLQuery:
|
WHAT IS THE DOSAGE OF FUROSEMID E PRESCRIBED TO THE PATIENT WITH ADMISSION ID 104446 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Question: WHAT IS THE DOSAGE OF FUROSEMID E PRESCRIBED TO THE PATIENT WITH ADMISSION ID 104446
SQLQuery:
|
WHAT IS THE DRUG INTENSITY OF FUROSEMIDE GIVEN TO THE PATIENT WITH AN ADMISSION ID = 114585 | SELECT PRESCRIPTIONS.PROD_STRENGTH FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 114585 AND PRESCRIPTIONS.DRUG = "FUROSEMIDE" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Question: WHAT IS THE DRUG INTENSITY OF FUROSEMIDE GIVEN TO THE PATIENT WITH AN ADMISSION ID = 114585
SQLQuery:
|
WHAT IS THE DRUG INTENSITY OF ASPIRIN GIVEN TO THE PATIENT WITH AN ADMISSION ID = 114959 | SELECT PRESCRIPTIONS.PROD_STRENGTH FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 114959 AND PRESCRIPTIONS.DRUG = "ASPIRIN" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Question: WHAT IS THE DRUG INTENSITY OF ASPIRIN GIVEN TO THE PATIENT WITH AN ADMISSION ID = 114959
SQLQuery:
|
WHAT IS THE DRUG STRENGTH OF LISINOPRIL/HCTZ PRESCRIBED TO THE PATIENT WITH ADMISSION ID 155521 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'D_CPT' has columns: ROW_ID (INTEGER), CATEGORY (INTEGER), SECTIONRANGE (VARCHAR), SECTIONHEADER (VARCHAR), SUBSECTIONRANGE (VARCHAR), SUBSECTIONHEADER (VARCHAR), CODESUFFIX (VARCHAR), MINCODEINSUBSECTION (INTEGER), MAXCODEINSUBSECTION (INTEGER), . The table is: Codes for evaluation and management services with their corresponding categories and subsection headers.{'ROW_ID': 1, 'CATEGORY': 1, 'SECTIONRANGE': '99201-99499', 'SECTIONHEADER': 'EVALUATION AND MANAGEMENT', 'SUBSECTIONRANGE': '99201-99216', 'SUBSECTIONHEADER': 'OFFICE/OTHER OUTPATIENT SERVICES', 'CODESUFFIX': None, 'MINCODEINSUBSECTION': 99201, 'MAXCODEINSUBSECTION': 99216}
Question: WHAT IS THE DRUG STRENGTH OF LISINOPRIL/HCTZ PRESCRIBED TO THE PATIENT WITH ADMISSION ID 155521
SQLQuery:
|
WHAT IS THE STRENGTH OF THE MEDICINE BUMETANIDE TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 102365 | SELECT PRESCRIPTIONS.PROD_STRENGTH FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 102365 AND PRESCRIPTIONS.DRUG = "BUMETANIDE" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'MICROBIOLOGYEVENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), CHARTDATE (VARCHAR), CHARTTIME (VARCHAR), SPEC_ITEMID (INTEGER), SPEC_TYPE_DESC (VARCHAR), ORG_ITEMID (INTEGER), ORG_NAME (VARCHAR), ISOLATE_NUM (INTEGER), AB_ITEMID (INTEGER), AB_NAME (VARCHAR), DILUTION_TEXT (VARCHAR), DILUTION_COMPARISON (VARCHAR), DILUTION_VALUE (INTEGER), INTERPRETATION (VARCHAR), . The table is: Table containing various medical event labels and their corresponding item IDs.{'ROW_ID': 744, 'SUBJECT_ID': 96, 'HADM_ID': 170324, 'CHARTDATE': '2156-04-13 00:00:00', 'CHARTTIME': '2156-04-13 14:18:00', 'SPEC_ITEMID': 70021, 'SPEC_TYPE_DESC': 'BRONCHOALVEOLAR LAVAGE', 'ORG_ITEMID': 80026, 'ORG_NAME': 'PSEUDOMONAS AERUGINOSA', 'ISOLATE_NUM': 1, 'AB_ITEMID': None, 'AB_NAME': None, 'DILUTION_TEXT': None, 'DILUTION_COMPARISON': None, 'DILUTION_VALUE': None, 'INTERPRETATION': None}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Question: WHAT IS THE STRENGTH OF THE MEDICINE BUMETANIDE TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 102365
SQLQuery:
|
WHAT IS THE STRENGTH OF THE MEDICINE TRAZODONE TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 107515 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Question: WHAT IS THE STRENGTH OF THE MEDICINE TRAZODONE TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 107515
SQLQuery:
|
HOW LONG HAS THE PATIENT WITH ADMISSION ID = 108932 BEEN TAKING LIDOCAINE | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Question: HOW LONG HAS THE PATIENT WITH ADMISSION ID = 108932 BEEN TAKING LIDOCAINE
SQLQuery:
|
MENTION THE ROUTE OF ADMINISTRATION FOR THE MEDICINE CALCIUM 600 + D(3) RECOMMENDED TO THE PATIENT WITH ADMISSION ID = 164253 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_CPT' has columns: ROW_ID (INTEGER), CATEGORY (INTEGER), SECTIONRANGE (VARCHAR), SECTIONHEADER (VARCHAR), SUBSECTIONRANGE (VARCHAR), SUBSECTIONHEADER (VARCHAR), CODESUFFIX (VARCHAR), MINCODEINSUBSECTION (INTEGER), MAXCODEINSUBSECTION (INTEGER), . The table is: Codes for evaluation and management services with their corresponding categories and subsection headers.{'ROW_ID': 1, 'CATEGORY': 1, 'SECTIONRANGE': '99201-99499', 'SECTIONHEADER': 'EVALUATION AND MANAGEMENT', 'SUBSECTIONRANGE': '99201-99216', 'SUBSECTIONHEADER': 'OFFICE/OTHER OUTPATIENT SERVICES', 'CODESUFFIX': None, 'MINCODEINSUBSECTION': 99201, 'MAXCODEINSUBSECTION': 99216}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Question: MENTION THE ROUTE OF ADMINISTRATION FOR THE MEDICINE CALCIUM 600 + D(3) RECOMMENDED TO THE PATIENT WITH ADMISSION ID = 164253
SQLQuery:
|
WHAT WAS THE DOSAGE OF HYDROMORPHONE THAT WAS PRESCRIBED TO THE PATIENT WITH ADMISSION ID = 112832 | None | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Question: WHAT WAS THE DOSAGE OF HYDROMORPHONE THAT WAS PRESCRIBED TO THE PATIENT WITH ADMISSION ID = 112832
SQLQuery:
|
MENTION THE FORM OF NADOLOL TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 102903 | SELECT PRESCRIPTIONS.FORM_UNIT_DISP FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 102903 AND PRESCRIPTIONS.DRUG = "NADOLOL" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Question: MENTION THE FORM OF NADOLOL TAKEN BY THE PATIENT HAVING AN ADMISSION ID = 102903
SQLQuery:
|
WHAT IS THE DRUG INTENSITY OF WARFARIN GIVEN TO THE PATIENT WITH AN ADMISSION ID = 139955 | SELECT PRESCRIPTIONS.PROD_STRENGTH FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 139955 AND PRESCRIPTIONS.DRUG = "WARFARIN" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Question: WHAT IS THE DRUG INTENSITY OF WARFARIN GIVEN TO THE PATIENT WITH AN ADMISSION ID = 139955
SQLQuery:
|
WHAT IS THE DOSAGE OF LACTULOSE PRESCRIBED TO THE PATIENT WITH ADMISSION ID 110135 | SELECT PRESCRIPTIONS.DOSE_VAL_RX, PRESCRIPTIONS.DOSE_UNIT_RX FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 110135 AND PRESCRIPTIONS.DRUG = "LACTULOSE" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'D_LABITEMS' has columns: ROW_ID (INTEGER), ITEMID (INTEGER), LABEL (VARCHAR), FLUID (VARCHAR), CATEGORY (VARCHAR), LOINC_CODE (VARCHAR), . The table is: This table contains information about various laboratory items, including their fluid, category and loinc code.{'ROW_ID': 546, 'ITEMID': 51346, 'LABEL': 'BLASTS', 'FLUID': 'CEREBROSPINAL FLUID (CSF)', 'CATEGORY': 'HEMATOLOGY', 'LOINC_CODE': '26447-3'}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'MICROBIOLOGYEVENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), CHARTDATE (VARCHAR), CHARTTIME (VARCHAR), SPEC_ITEMID (INTEGER), SPEC_TYPE_DESC (VARCHAR), ORG_ITEMID (INTEGER), ORG_NAME (VARCHAR), ISOLATE_NUM (INTEGER), AB_ITEMID (INTEGER), AB_NAME (VARCHAR), DILUTION_TEXT (VARCHAR), DILUTION_COMPARISON (VARCHAR), DILUTION_VALUE (INTEGER), INTERPRETATION (VARCHAR), . The table is: Table containing various medical event labels and their corresponding item IDs.{'ROW_ID': 744, 'SUBJECT_ID': 96, 'HADM_ID': 170324, 'CHARTDATE': '2156-04-13 00:00:00', 'CHARTTIME': '2156-04-13 14:18:00', 'SPEC_ITEMID': 70021, 'SPEC_TYPE_DESC': 'BRONCHOALVEOLAR LAVAGE', 'ORG_ITEMID': 80026, 'ORG_NAME': 'PSEUDOMONAS AERUGINOSA', 'ISOLATE_NUM': 1, 'AB_ITEMID': None, 'AB_NAME': None, 'DILUTION_TEXT': None, 'DILUTION_COMPARISON': None, 'DILUTION_VALUE': None, 'INTERPRETATION': None}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Question: WHAT IS THE DOSAGE OF LACTULOSE PRESCRIBED TO THE PATIENT WITH ADMISSION ID 110135
SQLQuery:
|
WHAT IS THE DOSAGE OF INSULIN PRESCRIBED TO THE PATIENT WITH ADMISSION ID 115191 | SELECT PRESCRIPTIONS.DOSE_VAL_RX, PRESCRIPTIONS.DOSE_UNIT_RX FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 115191 AND PRESCRIPTIONS.DRUG = "INSULIN" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Question: WHAT IS THE DOSAGE OF INSULIN PRESCRIBED TO THE PATIENT WITH ADMISSION ID 115191
SQLQuery:
|
WHAT IS THE DRUG INTENSITY OF SENNA GIVEN TO THE PATIENT WITH AN ADMISSION ID = 102283 | SELECT PRESCRIPTIONS.PROD_STRENGTH FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 102283 AND PRESCRIPTIONS.DRUG = "SENNA" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DRGCODES' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), DRG_TYPE (VARCHAR), DRG_CODE (INTEGER), DESCRIPTION (VARCHAR), DRG_SEVERITY (INTEGER), DRG_MORTALITY (INTEGER), . The table is: Table containing diagnosis-related group (DRG) codes and corresponding information{'ROW_ID': 342, 'SUBJECT_ID': 2491, 'HADM_ID': 144486, 'DRG_TYPE': 'HCFA', 'DRG_CODE': 28, 'DESCRIPTION': 'TRAUMATIC STUPOR & COMA, COMA <1 HR AGE >17 WITH COMPLICATIONS, COMORBIDITIES', 'DRG_SEVERITY': None, 'DRG_MORTALITY': None}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Question: WHAT IS THE DRUG INTENSITY OF SENNA GIVEN TO THE PATIENT WITH AN ADMISSION ID = 102283
SQLQuery:
|
WHAT IS THE DOSAGE OF INSULIN PRESCRIBED TO THE PATIENT WITH ADMISSION ID 109566 | SELECT PRESCRIPTIONS.DOSE_VAL_RX, PRESCRIPTIONS.DOSE_UNIT_RX FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.HADM_ID = 109566 AND PRESCRIPTIONS.DRUG = "INSULIN" | Given an input question, first create a syntactically correct sqlite query to run, then look at the results of the query and return the answer. You can order the results by a relevant column to return the most interesting examples in the database.
Never query for all the columns from a specific table, only ask for a few relevant columns given the question.
Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Pay attention to which column is in which table. Also, qualify column names with the table name when needed. You are required to use the following format, each taking one line:
Follow these additional instructions:
1. Include unit column if relevant.
2. Please include the full entity name and hadm_id in the sql if there is any in the question.
3. Do not include hadm_id and subject_id column as output.
4. If the question is about INTENSITY, please consider it as strength.
Only use tables listed below.
Table 'PRESCRIPTIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), STARTDATE (VARCHAR), ENDDATE (VARCHAR), DRUG_TYPE (VARCHAR), DRUG (VARCHAR), DRUG_NAME_POE (VARCHAR), DRUG_NAME_GENERIC (VARCHAR), FORMULARY_DRUG_CD (VARCHAR), GSN (VARCHAR), NDC (INTEGER), PROD_STRENGTH (VARCHAR), DOSE_VAL_RX (VARCHAR), DOSE_UNIT_RX (VARCHAR), FORM_VAL_DISP (VARCHAR), FORM_UNIT_DISP (VARCHAR), ROUTE (VARCHAR), . The table is: This table contains information about prescriptions, including the drug type, name, dosage, and route of administration.{'ROW_ID': 2214776, 'SUBJECT_ID': 6, 'HADM_ID': 107064, 'ICUSTAY_ID': None, 'STARTDATE': '2175-06-11 00:00:00', 'ENDDATE': '2175-06-12 00:00:00', 'DRUG_TYPE': 'MAIN', 'DRUG': 'TACROLIMUS', 'DRUG_NAME_POE': 'TACROLIMUS', 'DRUG_NAME_GENERIC': 'TACROLIMUS', 'FORMULARY_DRUG_CD': 'TACR1', 'GSN': '021796', 'NDC': 469061711, 'PROD_STRENGTH': '1MG CAPSULE', 'DOSE_VAL_RX': '2', 'DOSE_UNIT_RX': 'MG', 'FORM_VAL_DISP': '2', 'FORM_UNIT_DISP': 'CAP', 'ROUTE': 'PO'}
Table 'ADMISSIONS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ADMITTIME (VARCHAR), DISCHTIME (VARCHAR), DEATHTIME (VARCHAR), ADMISSION_TYPE (VARCHAR), ADMISSION_LOCATION (VARCHAR), DISCHARGE_LOCATION (VARCHAR), INSURANCE (VARCHAR), LANGUAGE (VARCHAR), RELIGION (VARCHAR), MARITAL_STATUS (VARCHAR), ETHNICITY (VARCHAR), EDREGTIME (VARCHAR), EDOUTTIME (VARCHAR), DIAGNOSIS (VARCHAR), HOSPITAL_EXPIRE_FLAG (INTEGER), HAS_CHARTEVENTS_DATA (INTEGER), . The table is: Table containing patient admission information, including demographic details and dates of birth and death.{'ROW_ID': 21, 'SUBJECT_ID': 22, 'HADM_ID': 165315, 'ADMITTIME': '2196-04-09 12:26:00', 'DISCHTIME': '2196-04-10 15:54:00', 'DEATHTIME': None, 'ADMISSION_TYPE': 'EMERGENCY', 'ADMISSION_LOCATION': 'EMERGENCY ROOM ADMIT', 'DISCHARGE_LOCATION': 'DISC-TRAN CANCER/CHLDRN H', 'INSURANCE': 'PRIVATE', 'LANGUAGE': None, 'RELIGION': 'UNOBTAINABLE', 'MARITAL_STATUS': 'MARRIED', 'ETHNICITY': 'WHITE', 'EDREGTIME': '2196-04-09 10:06:00', 'EDOUTTIME': '2196-04-09 13:24:00', 'DIAGNOSIS': 'BENZODIAZEPINE OVERDOSE', 'HOSPITAL_EXPIRE_FLAG': 0, 'HAS_CHARTEVENTS_DATA': 1}
Table 'D_ICD_DIAGNOSES' has columns: ROW_ID (INTEGER), ICD9_CODE (VARCHAR), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: Table containing ICD-9 diagnosis codes for patients{'ROW_ID': 174, 'ICD9_CODE': '01166', 'SHORT_TITLE': 'TB PNEUMONIA-OTH TEST', 'LONG_TITLE': 'TUBERCULOUS PNEUMONIA [ANY FORM], TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION, BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS [INOCULATION OF ANIMALS]'}
Table 'DIAGNOSES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (VARCHAR), . The table is: This table contains diagnoses information with ICD9 codes.{'ROW_ID': 1297, 'SUBJECT_ID': 109, 'HADM_ID': 172335, 'SEQ_NUM': 1, 'ICD9_CODE': '40301'}
Table 'ICUSTAYS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), FIRST_CAREUNIT (VARCHAR), LAST_CAREUNIT (VARCHAR), FIRST_WARDID (INTEGER), LAST_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: This table contains information about ICU stays, including admission and discharge times, patient demographics, and hospital information.{'ROW_ID': 365, 'SUBJECT_ID': 268, 'HADM_ID': 110404, 'ICUSTAY_ID': 280836, 'DBSOURCE': 'CAREVUE', 'FIRST_CAREUNIT': 'MICU', 'LAST_CAREUNIT': 'MICU', 'FIRST_WARDID': 52, 'LAST_WARDID': 52, 'INTIME': '2198-02-14 23:27:38', 'OUTTIME': '2198-02-18 05:26:11', 'LOS': 3.249}
Table 'PATIENTS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), GENDER (VARCHAR), DOB (VARCHAR), DOD (VARCHAR), DOD_HOSP (VARCHAR), DOD_SSN (VARCHAR), EXPIRE_FLAG (INTEGER), . The table is: Information about patients including demographics and dates of birth and death.{'ROW_ID': 234, 'SUBJECT_ID': 249, 'GENDER': 'F', 'DOB': '2075-03-13 00:00:00', 'DOD': None, 'DOD_HOSP': None, 'DOD_SSN': None, 'EXPIRE_FLAG': 0}
Table 'TRANSFERS' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), ICUSTAY_ID (INTEGER), DBSOURCE (VARCHAR), EVENTTYPE (VARCHAR), PREV_CAREUNIT (VARCHAR), CURR_CAREUNIT (VARCHAR), PREV_WARDID (INTEGER), CURR_WARDID (INTEGER), INTIME (VARCHAR), OUTTIME (VARCHAR), LOS (INTEGER), . The table is: Table containing patient transfer information, including care unit and ward ID changes, along with timestamps for admission, transfer, and discharge events.{'ROW_ID': 657, 'SUBJECT_ID': 111, 'HADM_ID': 192123, 'ICUSTAY_ID': 254245, 'DBSOURCE': 'CAREVUE', 'EVENTTYPE': 'TRANSFER', 'PREV_CAREUNIT': 'CCU', 'CURR_CAREUNIT': 'MICU', 'PREV_WARDID': 7, 'CURR_WARDID': 23, 'INTIME': '2142-04-29 15:27:11', 'OUTTIME': '2142-05-04 20:38:33', 'LOS': 125.19}
Table 'PROCEDURES_ICD' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SEQ_NUM (INTEGER), ICD9_CODE (INTEGER), . The table is: ICD-9 procedure codes with short and long titles{'ROW_ID': 944, 'SUBJECT_ID': 62641, 'HADM_ID': 154460, 'SEQ_NUM': 3, 'ICD9_CODE': 3404}
Table 'D_ICD_PROCEDURES' has columns: ROW_ID (INTEGER), ICD9_CODE (INTEGER), SHORT_TITLE (VARCHAR), LONG_TITLE (VARCHAR), . The table is: ICD9 procedure codes with short and long titles{'ROW_ID': 264, 'ICD9_CODE': 851, 'SHORT_TITLE': 'CANTHOTOMY', 'LONG_TITLE': 'CANTHOTOMY'}
Table 'CALLOUT' has columns: ROW_ID (INTEGER), SUBJECT_ID (INTEGER), HADM_ID (INTEGER), SUBMIT_WARDID (INTEGER), SUBMIT_CAREUNIT (VARCHAR), CURR_WARDID (INTEGER), CURR_CAREUNIT (VARCHAR), CALLOUT_WARDID (INTEGER), CALLOUT_SERVICE (VARCHAR), REQUEST_TELE (INTEGER), REQUEST_RESP (INTEGER), REQUEST_CDIFF (INTEGER), REQUEST_MRSA (INTEGER), REQUEST_VRE (INTEGER), CALLOUT_STATUS (VARCHAR), CALLOUT_OUTCOME (VARCHAR), DISCHARGE_WARDID (INTEGER), ACKNOWLEDGE_STATUS (VARCHAR), CREATETIME (VARCHAR), UPDATETIME (VARCHAR), ACKNOWLEDGETIME (VARCHAR), OUTCOMETIME (VARCHAR), FIRSTRESERVATIONTIME (VARCHAR), CURRENTRESERVATIONTIME (VARCHAR), . The table is: This table contains information about callouts, including the ward and care unit, callout status, and outcome.{'ROW_ID': 402, 'SUBJECT_ID': 854, 'HADM_ID': 175684, 'SUBMIT_WARDID': 52, 'SUBMIT_CAREUNIT': None, 'CURR_WARDID': 29, 'CURR_CAREUNIT': 'MICU', 'CALLOUT_WARDID': 1, 'CALLOUT_SERVICE': 'MED', 'REQUEST_TELE': 0, 'REQUEST_RESP': 0, 'REQUEST_CDIFF': 0, 'REQUEST_MRSA': 0, 'REQUEST_VRE': 0, 'CALLOUT_STATUS': 'INACTIVE', 'CALLOUT_OUTCOME': 'DISCHARGED', 'DISCHARGE_WARDID': 29, 'ACKNOWLEDGE_STATUS': 'ACKNOWLEDGED', 'CREATETIME': '2146-10-05 13:16:55', 'UPDATETIME': '2146-10-05 13:16:55', 'ACKNOWLEDGETIME': '2146-10-05 13:24:00', 'OUTCOMETIME': '2146-10-05 18:55:22', 'FIRSTRESERVATIONTIME': '2146-10-05 15:27:44', 'CURRENTRESERVATIONTIME': None}
Question: WHAT IS THE DOSAGE OF INSULIN PRESCRIBED TO THE PATIENT WITH ADMISSION ID 109566
SQLQuery:
|