Calling SMART App Link from CDS Hook Sevice

70 views
Skip to first unread message

Rahul Chauhan

unread,
Jun 1, 2023, 12:08:22 PM6/1/23
to SMART on FHIR
Hi All,

I am new in using CDS services and SMART App, I am trying to call my Smart App from CDS service hook by adding a link in CDS card (shown below), but when I am testing it on Logica Sandbox (https://sandbox.logicahealth.org/) I am getting below error:

error.jpg

{
  "summary": "Example Card",
  "indicator": "info",
  "detail": "This is an example card.",
  "source": {
    "label": "Static CDS Service Example",
    "url": "https://example.com"
  },
  "links": [
    {
      "label": "Google",
      "url": "https://google.com",
      "type": "smart",
      "params": "foo=a&bar=c"
    }
  ]
}

can someone please help me ?

Thanks,
Rahul

Rahul Chauhan

unread,
Jun 6, 2023, 1:17:29 PM6/6/23
to SMART on FHIR
can anyone please response ?

Benjamin

unread,
Jul 20, 2023, 3:03:15 AM7/20/23
to SMART on FHIR

The problem is in the link type you are setting it to smart and it shoudl be set to absolute. SMART is used if you are launching a Smart App from the CDS Hook card when doing that it needs to be registered in the Sandbox.  A type of absolute indicates that the URL is absolute and should be treated as-is. A type of smart indicates that the URL is a SMART app launch URL and the CDS Client should ensure the SMART app launch URL is populated with the appropriate SMART launch parameters.
Reply all
Reply to author
Forward
0 new messages