In our current Bahmni implementation, we are utilizing the FHIR Workflow Module to manage request-fulfillment patterns. We have found that the current implementation of org.openmrs.module.fhir2.model.FhirTask (v2.5.0) only supports a limited set of statuses: REQUESTED, ACCEPTED, REJECTED, and COMPLETED.
To support more granular clinical workflows, we would like to propose adding the following R4-compliant statuses to the model:
READY: Essential for signaling that a specimen has been collected and the task is now actionable.
ON HOLD: Critical for exception handling, such as when a test is paused due to some issues.
CANCELLED: Necessary to track orders that are discontinued after they have already been accepted by the fulfiller.
Expanding the fhir_task table to include these states will significantly improve the visibility of order fulfillment for clinicians using the Order Tracking dashboards.
We are eager to hear the community’s thoughts on expanding the FhirTask status enum to better align with the HL7 FHIR R4 specification.
Since our Bahmni implementation currently uses the OpenMRS version 2.5.12 and FHIR version 2.5.0, requesting you to backport this to FHIR version of 2.5.0.
Following up on the initial proposal, we’ve realised that we also need to include Draft and In Progress statuses in the FHIR2 Task model.
We initially missed this because we didn’t foresee a workflow where a task would need to be transitioned back to a ‘New’ state. However, standard clinical workflows often require this capability:
Orders or tasks are frequently placed ‘On Hold’ awaiting a specific event (such as patient arrival or a completed triage).
Once that event occurs, clinical staff need to transition the task back to a ‘New’ status to alert the respective departments to begin fulfilment.
To support this, we need the Draft status so it can be mapped to a ‘New’ option in the UI dropdown, allowing users to move tasks out of ‘On Hold’. Additionally, we need In Progress to accurately track tasks once active execution begins.
Would love to get the community’s thoughts on expanding the current proposal to include these two statuses.