Details

    • Type: New Feature
    • Status: In Progress
    • Priority: Should
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Medium

      Description

      The emr-api module provides a mechanism for implementations to define "patient merge actions" to execute before or after a patient merge by defining beans that implement the PatientMergeAction interface.

      We'd like to migrate this functionality from EMR-API to OpenMRS Core.

      Concretely, we should copy the PatientMergeAction interface over to OpenMRS Core:

      https://github.com/openmrs/openmrs-module-emrapi/blob/master/api/src/main/java/org/openmrs/module/emrapi/merge/PatientMergeAction.java

      We will also need modify the mergePatients method in the OpenMRS Core Patient service so that it appropriately calls pre-and-post merge actions, following the pattern defined here:

      https://github.com/openmrs/openmrs-module-emrapi/blob/master/api/src/main/java/org/openmrs/module/emrapi/adt/AdtServiceImpl.java#L558

      https://github.com/openmrs/openmrs-module-emrapi/blob/master/api/src/main/java/org/openmrs/module/emrapi/adt/AdtServiceImpl.java#L610

      Note that care/design needs to be taken to preserve backwards compatible. My first thought is that for starters we should just deprecate the PatienMergeAction interface in EMR API.

      fyi Burke Mamlin Darius Jazayeri [X]

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                harisu harisu fanyui
                Reporter:
                mogoodrich Mark Goodrich
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: