DRG Codes from Gonz Operative Codes (op_1level)
** Tab DRGs that map to surgical cohorts #delimit ; lab define l_drg_ops 1 "LE Bypass" 2 "OAR/EVAR" 3 "Cartoid" 4 "CABG" 5 "Cardiac Valve" 6 "Esophagectomy" 7 "Lung Resection" 8 "Pancreatic Resection" 9 "Hip Fracture" 10 "Colectomy" 11 "PCI" 12 "Back Surgery" 13 "Acute MI" 14 "Heart Failure" 15 "Pneumonia" 16 "Prostatectomy" 17 "Cystectomy" 18 "Nephrectomy" , replace ; #delimit cr cap drop drg_ops gen drg_ops = . lab val drg_ops l_drg_ops lab var drg_ops "Gonzalez DRG Operative codes" ** LE Arterial Bypass, op_1 == 100 replace drg_op = 1 if inlist(op_1, 100) ** Open AAA and EVAR, op_1 == 200/300 replace drg_op = 2 if inlist(op_1, 200, 300) ** Carotid Endarterectomy, op_1 == 400 replace drg_op = 3 if inlist(op_1, 400) ** Isolated CABG, op_1 == 500 replace drg_op = 4 if inlist(op_1, 500) ** AVR, MVR, CABG+Valve, op_1 == 510,520,600,700 replace drg_op = 5 if inlist(op_1, 510,520,600,700) ** Esophagectomy, op_1 == 800 replace drg_op = 6 if inlist(op_1, 800) ** Lung Resection, op_1 == 900 replace drg_op = 7 if inlist(op_1, 900) ** Pancreatic Resection, op_1 == 1000 replace drg_op = 8 if inlist(op_1, 1000) ** Hip Fracture, op_1 == 1100 replace drg_op = 9 if inlist(op_1, 1100) ** Colectomy, op_1 == 1200 replace drg_op = 10 if inlist(op_1, 1200) tab drg_op, missing



















