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

ORUR01Handler should load an encounter's location from the database

    XMLWordPrintable

Details

    Description

      When submitting a Xform, the visit_id related with the patient and the encounter is not being updated. In the encounter table, the visit_id value is being filled with NULL.

      This is after configuring visits with the ExistingVisitAssignmentHandler.
      ORUR01Handler creates a new location which it assigns the correct existing locationId. But since this location is not loaded from the database, it is assigned a uuid different from that in the database. So when the handler tries compare the visit location with that of the encounter using the equals operator which uses the uuid field, they are considered as different locations and hence the encounter is not assigned to the visit.

      Gliffy Diagrams

        Attachments

          Activity

            People

              dkayiwa Daniel Kayiwa
              agata.correia Agata Correia
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h