When a patient dies, you can use one of CPT’s two hospital discharge codes (99238-99239) as long as you perform any of the criteria included in hospital discharge services. These services include counseling, preparation of discharge records, etc. Tamra McLain is coding manager for HRA Medical Management Inc. in San Diego..