inpatient_codes function

Inpatient Codes cleanup