Uploaded image for project: 'PhenoTips'
  1. PhenoTips
  2. PT-3229

LifeStatusController does not handle life status changes well on import

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.3.1, 1.4-milestone-1
    • Component/s: patient-data
    • Labels:
      None

      Description

      When a life status is changed from "deceased" to "alive" date of death is not cleared. This may result in a strangely looking patient:

      1) create a patient, make patient "deceased", set date of birth, date of death, save, go to view mode
      2) import JSON:

      {"life_status":"alive"}

      3) observe a patient which is "alive" but has date of death

      This is a regression introduced in PT-2992 and PT-2987

      Also, the tests that verify actual save() functionality were removed, probably should be added back as well

        Attachments

          Activity

            People

            • Assignee:
              veronikaslc veronikaslc
              Reporter:
              asm Andriy Misyura
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: