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

Condition does not retain all significant values on edit

    XMLWordPrintable

Details

    Description

      In the Condition API, whenever a Condition is edited, the expected behavior is that the existing Condition is voided, and a new Condition is created that links back to the previous condition (via the previousVersion property), with all of the same meaningful values as the previous version, and any changes that have been applied.

      This functionality uses the static Condition#copy method, in which a Condition is responsible for copying state from one Condition into another Condition.

      There are several properties of Condition that are missing from this implementation:

      1. The `encounter` is not set on the `toCondition` from the `fromCondition`
      2. The `formNamespaceAndPath` is not set on the `toCondition` from the `fromCondition`
      3. The `endReason` property is not set on the `toCondition` from the `fromCondition`

      Gliffy Diagrams

        Attachments

          Activity

            People

              mseaton Mike Seaton
              mseaton Mike Seaton
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: