Patient status code is box 17 on the UB04. If you are billing for services that the patient is still receiving then you would want to look at '30' "Still a patient". If they were discharges, usually they are discharged to home so you would use '01'. There are others but those are the two most commonly used for residential treatment.