Synchronize Data Between FHIR and Kizen in an Agentic Workflow
Audience: Admins, Developers, Solution Architects
Purpose: Explains how to add FHIR action steps to Agentic Workflows in Kizen to synchronize live FHIR data between FHIR and Kizen
Overview
Caution: This setup reflects Kizen's default configuration. Your administrator may have customized your layout, so columns or navigation may appear differently. Trial accounts may have limited features.
With the FHIR integration, you can synchronize data between FHIR® and Kizen directly from an Agentic Workflow.
Before You Begin
To synchronize data between FHIR and Kizen in an Agentic Workflow, you need:
A connection from Kizen to your FHIR server. See Set Up FHIR in Kizen for more information.
An administrator account in Kizen to create Objects for field mapping. See Set Up FHIR in Kizen for details.
Synchronize Data Between FHIR and Kizen in an Agentic Workflow
To synchronize data between FHIR and Kizen in an Agentic Workflow:
Choose the function to perform
In the Action Settings section of the Add Action modal, select the Action dropdown menu, and do one of the following:
To insert a FHIR resource as a Kizen record, select Create Kizen Record, and set up the action. For more information, see Set Up a Create Kizen Record Action below.
To prepare a batch of FHIR resources for import into Kizen, select Parse FHIR Resource, and set up the action. For more information, see Set Up a Parse FHIR Resource Action below.
To import a batch of parsed FHIR resources into Kizen, select Batch Import via SmartConnector, and set up the action. For more information, see Set Up a Batch Import via SmartConnector Action below.
Set Up a Create Kizen Record Action
The Create Kizen Record action adds the specified FHIR resource to Kizen as a Record.
To set up a Create Kizen Record action:
Create Objects
Create Objects in Kizen for the FHIR resources that you want to add and then map the Custom Fields of these Kizen Objects to the corresponding fields on the FHIR side. For the procedure, see Set Up FHIR in Kizen.
Configure the source for the FHIR resource's JSON string
Find the FHIR Resource field in the Script Inputs section of the modal, open its Input Source dropdown menu, select the source of the JSON string that describes the FHIR resource, and then configure the source with the additional controls that appear.

Configure the destinations for the script outputs
For each of the fields in the Script Outputs section of the modal, select the destination of the field's value from the Output Destination dropdown menu, and then configure the destination with the additional controls that appear.

The fields are as follows:
Kizen Record ID
String
The ID of the Kizen Record
No
Mapped Field Count
Number
The number of mapped fields in the Kizen Record
No
Total Field Count
Number
The total number of fields in the Kizen Record
No
Unmapped Fields
String
A comma-separated list of the names of the unmapped fields in the Kizen Record
No
Set Up a Parse FHIR Resource Action
The Parse FHIR Resource action converts one or more FHIR resources into a JSONL string for import into Kizen through a SmartConnector.
For more information, see Set Up a Batch Import via SmartConnector Action.
To set up a Parse FHIR Resource action:
Create Objects
Create Objects in Kizen for the FHIR resources that you want to add and then map the Custom Fields of these Kizen Objects to the corresponding fields on the FHIR side. For the procedure, see Set Up FHIR in Kizen.
Configure the sources for the script inputs
For each of the fields in the Script Inputs section of the Add Action modal, select the source of the field's value from the Input Source dropdown menu, and then configure the source with the additional controls that appear.

The fields are as follows:
FHIR Resource
String
A JSON string that describes one or more FHIR resources. Take this value from the output of a FHIR Read or FHIR Search step.
Yes
Resource Type
String
The type of the FHIR resource to parse in PascalCase, such as Patient or PractitionerRole.
Yes
Configure the destinations for the script outputs
For each of the fields in the Script Outputs section of the modal, select the destination of the field's value from the Output Destination dropdown menu, and then configure the destination with the additional controls that appear.

The fields are as follows:
Mapped Field Count
Number
The number of mapped fields in the parsed FHIR resource
No
Parsed Records
String
A stringified array in JSONL format describing the parsed FHIR resources
No
Record Count
Number
The number of parsed FHIR resources
No
Unmapped Fields
String
A comma-separated list of the names of the unmapped fields in the parsed FHIR resource
No
Set Up a Batch Import via SmartConnector Action
The Batch Import via SmartConnector action sends the parsed FHIR resources that you created with the Parse FHIR Resource action to the specified SmartConnector for import into Kizen.
To set up a Batch Import via SmartConnector action:
Configure the sources for the script inputs
For each of the fields in the Script Inputs section of the Add Action modal, select the source of the field's value from the Input Source dropdown menu, and then configure the source with the additional controls that appear.

The fields are as follows:
Parsed FHIR Records
String
A stringified array in JSONL format describing the parsed FHIR resources. Use the output from the Parse FHIR Resource action here.
Yes
SmartConnector API Name
String
The API name of the Kizen SmartConnector to use.
Yes
Configure the destinations for the script outputs
For each of the fields in the Script Outputs section of the modal, select the destination of the field's value from the Output Destination dropdown menu, and then configure the destination with the additional controls that appear.

The fields are as follows:
Records Sent
Number
The number of FHIR resources imported to Kizen through the SmartConnector
No
Response Status Code
Number
The HTTP status code that the API response returned
No
What's Next
Continue to Troubleshoot FHIR for details on how to fix common technical issues.
HL7, FHIR, and the FHIR FLAME DESIGN are the registered trademarks of Health Level Seven International, and their use does not constitute endorsement by HL7.
Last updated
Was this helpful?



