--- title: "Get Json For FHIR Resource" slug: "get-json-for-fhir-resource" tags: ["FHIR", "resource", "JSON", "module"] updated: 2024-04-04T15:49:31Z published: 2024-04-04T15:49:31Z canonical: "documentation.decisions.com/get-json-for-fhir-resource" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Get Json For FHIR Resource | ## 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](https://documentation.decisions.com/docs/installing-modules-decisions) 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":"
[Put rendering here]
"}}" | | Hello World | World | | Hello World | Hello World | | Hello World | EXCEPTION MESSAGE | | Hello World | EXCEPTION MESSAGE | | Null Value | No Output Present | | Empty String | Empty String | #### ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/Screenshot%202024-04-04%20114709.png) --- ## 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: ```csharp 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 --- ``` ## Related - [Get Json For FHIR Bundle](/get-json-for-fhir-bundle.md) - [Get Json For FHIR Object](/get-json-for-fhir-object.md) - [Read Resource From Json](/read-resource-from-json.md)