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

Add obs.previous_version column

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: OpenMRS 1.9.0, 1.9 Beta Sprint
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      Description

      We never delete or change an obs. Instead, an obs is voided and a new one is created. We need to keep track of the obs that was voided. Currently this is done in a hacky way in the EncounterFormController and ObsController by putting some text into the void_reason column.

      Instead, we should have an obs.voided_obs that is foreign keyed back to obs.obs_id. The liquibase-update-to-latest will need to get a new changeSet, the Obs pojo will need to be changed, and the EncounterFormController and ObsFormController will need to stop storing/looking for things in the voidReason attribute.

        Attachments

        1. 1458.2.patch
          15 kB
        2. 1458.3.patch
          20 kB
        3. 1458.4.patch
          12 kB
        4. 1458.5.patch
          21 kB
        5. 1458.6.patch
          23 kB
        6. 1458.patch
          15 kB
        7. 1458-junit.patch
          203 kB
        8. Trunk-420LatestajaUpdate.patch
          8 kB

          Activity

            People

            Assignee:
            ajanthan Balachandiran Ajanthan
            Reporter:
            bwolfe Ben Wolfe
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: