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

Voided person addresses and names should be ignored by the short patient form validator

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Must
    • Resolution: Fixed
    • Affects Version/s: OpenMRS 1.8.0, OpenMRS 1.8.1, OpenMRS 1.8.2, OpenMRS 1.8.3, OpenMRS 1.9.0
    • Fix Version/s: Platform 1.9.12
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      Description

      The short patient validator rejects a person address/name with duplicate fields as a voided person address/name, this should be changed to skip the voided ones, To reproduce this;
      Go to the short patient form, edit one of the fields of the address to a new value and save. Go back to the form and edit the field back to its original value, this will fail with a duplicate address error message.
      The reason for this behavior is that on the first edit, the old address with the old value was voided and a new one with the new value was created to replace it, therefore on the second edit when the value is reverted, the validator finds the old voided validated person address with duplicate fields, it should instead skip all duplicates.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            wyclif Wyclif Luyima
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: