กี่วันแล้วนับตั้งแต่ครั้งแรกที่โรงพยาบาลปัจจุบันพบว่าผู้ป่วย 22648 ได้รับการวินิจฉัยว่าเป็นโรค meth res pneu d/t staph?ไม่จำเป็นต้องใช้ตารางทั้งหมด
how many days have it been since the first time during the current hospital encounter that patient 22648 was diagnosed with meth res pneu d/t staph?It is not neccessary to use all the tables.
 admissions:  row_id [ number]  subject_id [ number]  hadm_id [ number]  admittime [ time]  dischtime [ time]  admission_type [ text]  admission_location [ text]  discharge_location [ text]  insurance [ text]  language [ text]  marital_status [ text]  ethnicity [ text]  age [ number] 
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', diagnoses_icd.charttime)) FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'meth res pneu d/t staph') AND diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 22648 AND admissions.dischtime IS NULL) ORDER BY diagnoses_icd.charttime LIMIT 1