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

obsacrossencounters Requires an EncounterType which is an optional field

    XMLWordPrintable

Details

    • Bug
    • Status: Code Review (Initial)
    • Should
    • Resolution: Unresolved
    • Reference Application 2.12.0
    • None
    • Core Apps
    • Low

    Description

      There have been some changes to the obsacrossencounters widget to add optional encounterType and encounterTypes attributes, however when these are not defined no values are returned 

      The issue is probably in the handling the null encounterType in this method https://github.com/openmrs/openmrs-module-coreapps/blob/743c2693a3628321c2a763f83cf788b75faaf8b4/omod/src/main/web/dashboardwidgets/obsacrossencounters/obsacrossencounters.controller.js#L56-L77

      This widget without encounterType does not work in UgandaEMR 

       

      // {
        "id": "ugandaemr.viralLoadHistory",
        "instanceOf": "coreapps.template.dashboardWidget",
        "description": "Viral Load history for the patient",
        "order": 5,
        "config": {
          "widget": "obsacrossencounters",
          "icon": "icon-user-md",
          "label": "VIRAL LOAD HISTORY",
          "concepts": "0b434cfa-b11c-4d14-aaa2-9aed6ca2da88,dca12261-30ab-102d-86b0-7a5022ba4115,dc8d83e3-30ab-102d-86b0-7a5022ba4115",
          "maxRecords": "5"
        },
        "requiredPrivilege": "App: ugandaemr.widget.viralLoadHistory",
        "extensions": [
          {
            "id": "org.openmrs.module.coreapps.mostRecentVitals.clinicianDashboardFirstColumn",
            "appId": "ugandaemr.viralLoadHistory",
            "extensionPointId": "patientDashboard.firstColumnFragments",
            "extensionParams": {
              "provider": "coreapps",
              "fragment": "dashboardwidgets/dashboardWidget"
            }
          }
        ]
      }
      

      Gliffy Diagrams

        Attachments

          1. image-2021-02-20-01-13-09-174.png
            image-2021-02-20-01-13-09-174.png
            76 kB
          2. image-2021-02-20-01-19-04-619.png
            image-2021-02-20-01-19-04-619.png
            97 kB
          3. image-2021-03-09-21-14-06-283.png
            image-2021-03-09-21-14-06-283.png
            87 kB
          4. image-2021-03-10-00-18-31-780.png
            image-2021-03-10-00-18-31-780.png
            23 kB
          5. image-2021-03-10-00-20-08-575.png
            image-2021-03-10-00-20-08-575.png
            53 kB

          Issue Links

            Activity

              People

                joshua Sibendire Joshua
                ssmusoke Stephen Senkomago Musoke
                Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Time Spent - 1 week, 1 day Remaining Estimate - 2 days
                    2d
                    Logged:
                    Time Spent - 1 week, 1 day Remaining Estimate - 2 days
                    1w 1d