Uploaded image for project: 'EMR API'
  1. EMR API
  2. EA-163

Add condition to bypass saveVisit() for the existing visit.

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.31.0
    • Labels:
      None
    • Complexity:
      Low

      Description

      1. Description

      EmrEncounterServiceImpl.save(EncounterTransaction) saves over and over again unnecessarily visits that are already persisted in the first place.

      2. Dev Notes

      The following call should only happen for new visits that have not been persisted yet: https://github.com/openmrs/openmrs-module-emrapi/blob/5b319dc22b05c67c9a76aa3bb471737c5acf5308/api/src/main/java/org/openmrs/module/emrapi/encounter/EmrEncounterServiceImpl.java#L143

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              binduak Himabindu Akkinepalli
              Reporter:
              binduak Himabindu Akkinepalli
              Designated Committer:
              Dimitri R Dimitri R
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: