Skip to main content
Registering the SMART client needs administrator access to the InterSystems IRIS Management Portal, or to the admin console of the external authorization server your FHIR server trusts.

Find the FHIR server address

IRIS accepts tokens only over https, for the exact FHIR address the token was issued for.

1

Find the FHIR R4 Base URL

Sign in to your IRIS Management Portal and open Health > your FHIR namespace > FHIR Server Management. The server card shows the endpoint path after URL:.

  • Format: https://{IRIS web server host}{URL path}
  • Example: if you reach IRIS at https://iris.example.org and the card shows URL: /csp/healthshare/fhirserver/fhir/r4, your FHIR R4 Base URL is https://iris.example.org/csp/healthshare/fhirserver/fhir/r4
  • Check it against the implementation.url value at {FHIR R4 Base URL}/metadata, and use that value exactly, including any port it shows.
The FHIR Server Management page with the server card's URL highlighted

Register a SMART app on your server

These steps use the OAuth 2.0 server built into IRIS. On an external authorization server, create a confidential client with the same redirect URL, grant type, authentication type and scopes.

1

Check the authorization server

In the IRIS Management Portal, open System Administration > Security > OAuth 2.0 > Server.

  • Supported grant types (check at least one): Authorization code selected
  • Return refresh token: If offline_access scope requested
  • Click Save.
  • Leave Authorization URL and Token URL empty when the Issuer endpoint has the same host as your FHIR server. Otherwise, add /oauth2/authorize and /oauth2/token to the Issuer endpoint, or use the endpoints of your external authorization server.
The OAuth 2.0 Authorization Server Configuration page with the Issuer endpoint and the Authorization code grant type highlighted
2

Add the scopes

On the Scopes tab, check that openid, fhirUser, offline_access, user/*.rs and user/*.cud are listed. Patient sign-in also uses launch/patient and patient/*.rs. Add the ones the list is missing.

  • Click Add Supported Scope.
  • Enter supported scope: the scope, such as offline_access
  • Click OK.
  • Click Save.
The Scopes tab with the SMART on FHIR scopes and the Add Supported Scope button highlighted
3

Create the client

On the server configuration page, open Client Descriptions.

  • Click Create Client Description.
  • Name: StackOne
  • Client type: Confidential
  • Click Add URL.
  • Enter URL: the Callback URL shown when you connect
  • Click OK.
  • Supported grant types (check at least one): Authorization code
  • Authentication type: form encoded body
  • Click Save.
The Client Description form with Name, Confidential, Redirect URLs, Authorization code and form encoded body highlighted
4

Copy the client credentials

In the OAuth 2.0 Server list, click the new client’s name.

  • Open the Client Credentials tab.
  • Copy the Client ID across.
  • Click show next to Client secret.
  • Copy the Client secret across.
The Client Credentials tab with the Client ID field and the show link highlighted
1

Connect

  • Click Connect.
  • If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider’s authorization flow.
  • Once authorization is successful, you will see a confirmation popup.
2

Use Actions

Connect an AI platform to the linked account’s actions. See AI Platforms.Other ways to call actions are listed in Protocols & SDKs.