An invoice item can be set up to include a Mark as Deceased special action, which will change the patient's status to deceased during the invoicing process.