instruction: how many patients since 3 years ago have received a haptoglobin test?
response: SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT lab.patientunitstayid FROM lab WHERE lab.labname = 'haptoglobin' AND DATETIME(lab.labresulttime) >= DATETIME(CURRENT_TIME(), '-3 year'))