Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-3484

visit handlers need to accept uuids in visits.encounterTypeToVisitTypeMapping global propery for both encounter type and visit type

    XMLWordPrintable

    Details

    • Complexity:
      Low

      Description

      The global property visits.encounterTypeToVisitTypeMapping takes in encounter type id and visit type id pairs but this can't be used in an environment using the sync module since ids are not globally unique, the global property should be able to allow defining uuids of visit types and encounter types too. This means one can specify a encounter_type_uuid/visit_type_id or a encounter_id/visit_type_uuid or encounter_uuid/visit_uuid or encounter_id/visit_id mapping.

      What needs to be done:

      • Edit ExistingOrNewVisitAssignmentHandler.getVisitType(Encounter encounter) to look up encounter types and visit types by uuids
      • Include unit tests to ensure that the fix is working for all the 4 various forms of mappings

        Attachments

          Activity

            People

            Assignee:
            wyclif Wyclif Luyima
            Reporter:
            dthomas Dave Thomas
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 45 minutes
                45m
                Remaining:
                Time Spent - 30 minutes Remaining Estimate - 15 minutes
                15m
                Logged:
                Time Spent - 30 minutes Remaining Estimate - 15 minutes
                30m