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

Superfluous "Too many reasons for exit" error on PatientFormController

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Could
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None

      Description

      The PatientFormController throws an error "Too many reasons for exit" in the referenceData method even if the patient has never been exited from care. The PatientFormController should check for an empty set as well as for null when looking to see if the patient has any Obs with Concept.valueCoded = GlobalProperty.get('concept.reasonExitedCare')

      PatientFormController line 601

      That is because the Service will never return null on this method:
      ObsServiceImpl line 562

        Attachments

          Activity

            People

            Assignee:
            bmckown Brian McKown [X] (Inactive)
            Reporter:
            bmckown Brian McKown [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: