Get Json For FHIR Resource
  • 04 Apr 2024
  • 1 Minute to read
  • Dark
    Light

Get Json For FHIR Resource

  • Dark
    Light

Article Summary

Step Details

Introduced in Version4.0.0
Last Modified in Version7.1.0
LocationIntegration > 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

PropertyDescriptionData Type
FHIR ResourceThe FHIR Resource.
FHIR Resource

Outputs

PropertyDescriptionData Type
OutputThe JSON string of the FHIR Resource.String

Example Inputs and Outputs

FHIR ResourceOutput
ReadResourceFromJson1_Output

{"resourceType":"Account","id":"example","text":{"status":"generated","div":"<div>[Put rendering here]</div>"}}"

Hello WorldWorld
Hello WorldHello World
Hello WorldEXCEPTION MESSAGE
Hello WorldEXCEPTION MESSAGE
Null ValueNo Output Present
Empty StringEmpty 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?