เวลาวินิจฉัยภาวะทุพโภชนาการโปรตีน-แคลอรี่ครั้งแรกของผู้ป่วย 008-22202 ในการเข้ารับการรักษาในโรงพยาบาลครั้งแรกคือเท่าไร? ไม่จำเป็นต้องใช้ตารางทั้งหมด
what was the first protein-calorie malnutrition diagnosis time of patient 008-22202 in their first hospital encounter?It is not neccessary to use all the tables.
 patient:  uniquepid [ text]  patienthealthsystemstayid [ number]  patientunitstayid [ number]  gender [ text]  age [ text]  ethnicity [ text]  hospitalid [ number]  wardid [ number]  admissionheight [ number]  admissionweight [ number]  dischargeweight [ number]  hospitaladmittime [ time]  hospitaladmitsource [ text]  unitadmittime [ time]  unitdischargetime [ time]  hospitaldischargetime [ time]  hospitaldischargestatus [ text] 
SELECT diagnosis.diagnosistime FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '008-22202' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1)) AND diagnosis.diagnosisname = 'protein-calorie malnutrition' ORDER BY diagnosis.diagnosistime LIMIT 1