Uploaded image for project: 'Webservices REST Module'
  1. Webservices REST Module
  2. RESTWS-443

Encounter resource needs to support "encounterProviders" property in OpenMRS 1.9+

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.12
    • Complexity:
      Medium

      Description

      Currently the 1.9 version of the Encounter resource neglects to add support for the 1.9 data model around providers, particularly that there can be multiple providers per encounter, each with an encounter role, specified in the Encounter.encounterProviders field.

      We need to add support for an "encounterProviders" property which should work like:

      {
          ...
          "encounterProviders": [
              { "provider": "uuid-of-provider", "encounterRole": "uuid-of-encounter-role" }
          ]
      }
      

      This will also require adding an EncounterRole resource, and perhaps other supporting work.

      Workaround until this ticket is implemented

      For now, the workaround is that you can only create an encounter with a single provider, and you need to submit the UUID of the provider's person record, like:

      {
          ...
          "provider": "uuid-of-a-PERSON-for-the-provider"
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              willa Willa Mhawila [X] (Inactive)
              Reporter:
              darius Darius Jazayeri [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 days
                  2d
                  Remaining:
                  Remaining Estimate - 2 days
                  2d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified