ผู้ป่วย 1561 ได้รับการวัดอุณหภูมิหรือวัดอุณหภูมิ c (calc) ครั้งแรกในเดือน/30 นี้เป็นครั้งแรกเมื่อใด? ไม่จำเป็นต้องใช้ตารางทั้งหมด
when was the first time patient 1561 had their temperature c (calc) measured or taken on this month/30?It is not neccessary to use all the tables.
 icustays:  row_id [ number]  subject_id [ number]  hadm_id [ number]  icustay_id [ number]  first_careunit [ text]  last_careunit [ text]  first_wardid [ number]  last_wardid [ number]  intime [ time]  outtime [ time] 
SELECT chartevents.charttime FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 1561)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'temperature c (calc)' AND d_items.linksto = 'chartevents') AND DATETIME(chartevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') AND STRFTIME('%d', chartevents.charttime) = '30' ORDER BY chartevents.charttime LIMIT 1