Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
titleCurrent Visit Action example
[
    {
        "id": "yourmoduleid.some-unique-id",
        "extensionPointId": "patientDashboard.visitActions",
        "type": "link",
        "label": "Link Text or yourmoduleid.message.code",
        "url": "yourmoduleid/somepage.page?patientId={{patient.uuid}}&visitId={{visit.uuid}}",
        "icon": "icon-plus",
        "order": 20, // a lower number is earlier
        "requiredPrivilege": "Some required privilege like 'Task: coreapps.createVisit'",
        "require": "visit.active" // if you also want this to show up for past visits in the Visit Dashboard, omit this
    }
]
 

 

See also Conditionally displaying Apps and Extensions, if you only want the link displayed depending on some conditions.

 

Real-life examples:

...