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

Add more config parameters to the relationships widget

    XMLWordPrintable

    Details

    • Complexity:
      Low

      Description

      At PIH we would like to include the relationships widget to the registrationSummary.page.

      In order to accomplish this we need to configure the widget with the following parameters:

      • patientPage - indicates which patient dashboard to navigate to when clicking on the persons listed as related to the patient. By default the patient page is the Clinician Facing Dashboard

      e.g.

       "config": {
          "widget": "relationships",
          "icon": "icon-group",
          "label": "Family",
          "maxRecords": "3",
          "patientPage": "/coreapps/patientdashboard/patientDashboard.page?patientId={{patient.uuid}}5&visitId={{visit.uuid}}"
        }
      

      at https://github.com/openmrs/openmrs-module-coreapps/blob/master/omod/src/main/resources/apps/dashboardWidgets_app.json#L106-L111

      The param needs to be used for the link at https://github.com/openmrs/openmrs-module-coreapps/blob/master/omod/src/main/webapp/resources/scripts/fragments/dashboardwidgets/relationships/relationships.html#L3

        Attachments

          Activity

            People

            Assignee:
            dkayiwa Daniel Kayiwa
            Reporter:
            cioan Cosmin Ioan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: