Get Json For FHIR Resource
- 04 Apr 2024
- 1 Minute to read
- Print
- DarkLight
Get Json For FHIR Resource
- Updated on 04 Apr 2024
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Step Details | |
Introduced in Version | 4.0.0 |
Last Modified in Version | 7.1.0 |
Location | Integration > FHIR |
The Get JSON for FHIR Resource step outputs the Resource as a JSON formatted string.
Prerequisites
This step requires the FHIR Module to be installed before it will be available in the Toolbox.
Properties
Inputs
Property | Description | Data Type |
---|---|---|
FHIR Resource | The FHIR Resource. | FHIR Resource |
Outputs
Property | Description | Data Type |
---|---|---|
Output | The JSON string of the FHIR Resource. | String |
Example Inputs and Outputs
FHIR Resource | Output |
---|---|
ReadResourceFromJson1_Output | {"resourceType":"Account","id":"example","text":{"status":"generated","div":"<div>[Put rendering here]</div>"}}" |
Hello World | World |
Hello World | Hello World |
Hello World | EXCEPTION MESSAGE |
Hello World | EXCEPTION MESSAGE |
Null Value | No Output Present |
Empty String | Empty String |
Common Errors
Value Cannot be Null
If the input field is not configured or mapped correctly, the step will cause an error.
To correct this, ensure that a properly formatted FHIR Resource is mapped or that all fields are configured if selecting the Build Data mapping.
Exception Message:
Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Get Json For FHIRResource 1[GetJsonForFHIRResource] in flow [FHIR]: Value cannot be null. (Parameter 'target')
---> System.ArgumentNullException: Value cannot be null. (Parameter 'target'
at DecisionsFramework.Utilities.Data.DataUtilities.SetValue(Object target, String path, Object value
at DecisionsFramework.Design.Flow.Mapping.InputImpl.BuildDataInputMapping.GetInputValue(IDataConsumer consumer, FlowStateData currentData, DecisionsType expectedType, Boolean expectingArray, String valueName, Object parentObject, Boolean canBeNull
at DecisionsFramework.Design.Flow.FlowStep.BuildMappingData(FlowStateData data
at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData)
--- End of inner exception stack trace ---
Was this article helpful?