Wiki Spaces
Documentation
Projects
Resources
Get Help from Others
Q&A: Ask OpenMRS
Discussion: OpenMRS Talk
Real-Time: IRC Chat | Slack
- FM2-6Getting issue details... STATUS
ServiceRequest is a FHIR resource that is part of the Workflow Module, and is used closely with resources in the Diagnostic Module. A ServiceRequest is used to represents a request for some type of procedure or diagnostic test to be performed. When fulfilled, the results of this request are represented as a DiagnosticReport resource with associated Observation resources.
A ServiceRequest has conceptual similarities with an OpenMRS Order object. The current implementation of ServiceRequest is aimed at supporting a simple laboratory communication workflows, and each ServiceRequest is mapped to an OpenMRS TestOrder. Due to the lack of support for representing Order state in OpenMRS, the ServiceRequest.status element is mapped to the parent Task resource, if one exists. Otherwise, the status is set to unknown. See https://talk.openmrs.org/t/the-handling-and-mapping-of-lab-order-status-for-the-lab-workflow/26348 for a more detailed discussion.
OpenMRS Data Model | FHIR Resource Element |
---|---|
TestOrder.uuid | ServiceRequest.id |
Task.status | ServiceRequest.status |
(Static Mapping) | ServiceRequest.intent == order |
TestOrder.concept | ServiceRequest.code |
TestOrder.patient | ServiceRequest.subject |
TestOrder.orderer | ServiceRequest.requester |
Task.owner | ServiceRequest.performer |
(TestOrder.effectiveStartDate, TestOrder.effectiveEndDate) | ServiceRequest.occurrence |
Note: placeholder "{release}" below must be replaced by the FHIR Release - currently only "R4" is implemented. See more on the FHIR Release support page.
URL | Description |
/ws/fhir2/{release}/ServiceRequest/{uuid} | Above request will fetch the ServiceRequest for the given unique uuid. |