Activate the HL7 FHIR Spoke
Install the HL7 FHIR Spoke from the ServiceNow Store and verify that the required platform plugins are active so that the eight FHIR actions are available in Workflow Studio.
Before you begin
Role required: admin
The following platform plugins must be active before the spoke's stream actions can be added to a flow:
- Workflow Studio (
com.glide.hub) - Flow Designer Action Step — CORE
(
com.glide.hub.action_step.core) - REST step type (
com.glide.hub.action_step.rest) - Integration Hub Action Template — Data Stream
(
com.glide.hub.action_type.datastream)
About this task
HL7 FHIR Spoke is distributed as a scoped application in the ServiceNow Store. After you install it, the eight FHIR actions appear in the Workflow Studio action picker under the four FHIR Integration Hub categories.
Procedure
Result
The HL7 FHIR Spoke is installed and its actions are available to flow authors. Before the actions can read from a FHIR server, configure the connection and credentials. See Configure the HL7 FHIR connection and credentials.
Configure the HL7 FHIR connection and credentials
Bind the FHIR server URL and OAuth credentials to the shared
HL7 FHIR Connection & Credential Alias so that all eight
spoke actions can authenticate to and read from your FHIR R4 server.
Before you begin
Role required: admin
You need the following from your FHIR server administrator: the FHIR R4 server base URL, the OAuth authorization, token, and revoke-token endpoint URLs, and the OAuth client ID and client secret registered for your instance.
About this task
The spoke ships a Connection & Credential Alias named
HL7 FHIR with an attached configuration template named
FHIR Connection Configuration. The template adds a guided
Add Connection action to the alias that creates the
HTTP connection and an OAuth 2.0 credential in one step. The OAuth client
credentials and the FHIR server URL ship empty — you supply them through the
guided setup. All eight actions share this single alias.
Procedure
Result
All eight HL7 FHIR Spoke actions can now authenticate to your FHIR server through the shared alias. To add a stream action to a flow, see Add a FHIR stream action to a flow.
Add a FHIR stream action to a flow
Add an HL7 FHIR Spoke stream action to a flow to search a FHIR resource and process each matching record as it streams in, with pagination handled automatically by the spoke.
Before you begin
Role required: a Workflow Studio authoring role, such as
flow_designer.
The HL7 FHIR connection and credentials must be configured.
See Configure the HL7 FHIR
connection and credentials.
About this task
Stream actions use the data stream action template, which retrieves results page by page. You process the streamed items inside a "For Each" flow logic block so that the flow handles each resource without buffering the entire result set.