The logic in OrderUtil.discontinueAllOrders was removed in 1.10.x branch, we need to add it back to preserve the functionality of the methods that call it.
As per the design call on https://notes.openmrs.org/Design-Forum-2014-07-02, the exit a patient from care features needs to be moved to a new module.
- Deprecate ProgramWorkflowService.triggerStateConversion and PatientService.exitPatientfromCare, remove the code from the implementations and just throw exceptions when called, the error messages should clear and ask the user to install the new module where the feature is to be moved. Referencing the module as 'exit patient from care module' should be sufficient since we don't yet know its name.
- Remove the feature from the UI(patient dashboard)
Update the release notes page to mention that the feature was moved