Uploaded image for project: 'Reference Application'
  1. Reference Application
  2. RA-1790

Modify MarkPatientDeadPageController to expect a uuid or integer

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      Description

      Expectation Behaviour:

      We should be able to add id as well as UUID to the global property concept.causeOfDeath

      Observed Behaviour:

      An internal server error comes up which is due to NumberFormatException where Integer.parseInt(String) is unable to parse when UUID is stored in the global property. 

      Solution:

      We need to  fix the MarkPatientDeadPageController to expect a UUID or integer

      Resource Links:

      1. Talks thread - https://talk.openmrs.org/t/fetching-global-properties-using-rest-api-for-concept-causeofdeath/29092/10

      2. Error - https://pastebin.com/PhE4ZJVn

      3. File to be modified - https://github.com/openmrs/openmrs-module-coreapps/blob/85dd5eb6dfc4bae9cba16238898034dd23452453/omod/src/main/java/org/openmrs/module/coreapps/page/controller/MarkPatientDeadPageController.java#L80

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dkayiwa Daniel Kayiwa
              Reporter:
              rishabh997 Rishabh Agarwal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: