** SAS Codes and Formats for Chronic Disease Hospitalizations ; ** FORMATS & LABELS ; ** The following format for defining chronic diseases is based on ICD-9-CM codes. ; ** Before using these codes users should confirm that they are appropriate for their own study. ; VALUE $CHRONC /* chronic disease formats */ '493 '-'4939' = '01' /* asthma */ '430 '-'4379' = '02' /* Vascular compl hypertension disease */ '250 '-'2509' = '03' /* diabetes mellitus */ '401 '-'4059' = '04' /* Hypertensive disease*/ '410 '-'4149' = '05' /* Ischemic Heart */ '492 '-'4929','496 '-'4969' = '06' /* emphysema */ OTHER = '07' ; VALUE CHRONCL /* chronic disease labels */ 1 = 'Asthma ' 2 = 'Vascular compl' 3 = 'Diabetes ' 4 = 'Hypertensive ' 5 = 'Ischemic Heart' 6 = 'Emphysema ' 99 = 'Total of Above' ; ** SAS CODE ; DIAG = SUBSTR(DX01,1,4); * abstract the 1st 4 characters of 1st diag *; CHRONIC = INPUT(PUT(DIAG,$CHRONC.),2.); if chronic = 7 then chronic = . ;