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

Exit patient from care throws js error "getValue() cannot find element with id/name: causeOfDeath"

    XMLWordPrintable

    Details

    • Complexity:
      Low

      Description

      This error happens intermittently, so I have not have a reproducible scenario.
      1. View Patient Dashboard
      2. Click 'Exit Patient from Care'
      3. Choose type of exit
      4. Choose date of exit
      5. Click Save button

      The error sometimes pops up. I haven't looked into the JSP yet, but these fields (causeOfDeath, causeOfDeath_other) are not supposed to be there unless the user chooses Patient Died as the type of exit. So, there should be some error handling in the javascript to make sure these fields are not referenced. I think that these elements are present when the page is first created, but something is occurring in a DWR call to wipe out these fields.

        Attachments

          Activity

            People

            Assignee:
            dkayiwa Daniel Kayiwa
            Reporter:
            jmiranda Justin Miranda [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: