Uploaded image for project: 'FHIR Module v2'
  1. FHIR Module v2
  2. FM2-313

Add replaces field for ServiceRequest and MedicationRequest where they have a previous order

    XMLWordPrintable

Details

    • Enhancement
    • Status: Closed
    • Should
    • Resolution: Fixed
    • FM2 1.1.0
    • FM2 1.2.0
    • None
    • Medium

    Description

      In the OpenMRS data model, when an order has been changed, we actually create a new order and add a reference to the previous order in the previousOrder field. In FHIR, this corresponds to the replaces field when the action is one of RENEW, DISCONTINUE, or REVISE. So, when the OpenMRS Order.action field is one of these values, we should populate the replaces FHIR field with 1. a reference to the previous order and 2. the order number of the previous order in the Reference.identifer field.

      Acceptance Criteria:

      1. When retrieving a ServiceRequest or MedicationRequest where the OpenMRS action field is one of RENEW, DISCONTINUE, or REVISE, the replaces field should be populated with a reference to the previous order.

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                ruhanga Nathan Ruhanga
                ibacher Ian Bacher
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: