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

PatientService savePatient method should should not validate Patient Identifiers if the patient has been voided

    XMLWordPrintable

    Details

    • Complexity:
      Low

      Description

      Currently, in the savePatient API method, before saving a patient, the checkPatientIdentifiers method is called before the patient is saved.

      This causes a problem if savePatient is called from the voidPatient method. The AOP around voidPatient will void all the identifiers for that patient... so then, if any identifiers are required, checkPatientIdentifiers will fail (and consequently, the whole save will fail).

      The savePatient method should be changed so that checkPatientIdentifiers is not called if the patient has been voided.

        Attachments

          Activity

            People

            Assignee:
            mogoodrich Mark Goodrich
            Reporter:
            mogoodrich Mark Goodrich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: