--- title: "Add Resource To Bundle" slug: "add-resource-to-bundle" tags: ["FHIR", "resource", "bundle", "module"] updated: 2024-04-04T15:53:36Z published: 2024-04-04T15:53:36Z canonical: "documentation.decisions.com/add-resource-to-bundle" --- > ## 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. # Add Resource To Bundle | ## Step Details | | --- | | **Introduced in Version** | 4.0.0 | | **Last Modified in Version** | 7.1.0 | | **Location** | Integration > FHIR | The **Add Resource to Bundle** step allows users to add resource types to an **FHIR Bundle.** ### 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 Bundle | The desired FHIR Bundle. | FHIR Bundle | | Resource to Add | The desired Resource. | Resource | | Resource URL | The resource URL. | ResourceUrl | #### Outputs | Property | Description | Data Type | | --- | --- | --- | | FHIR Bundle Result | The updated FHIR Bundle. | FHIR Bundle | --- ## Example Inputs and Outputs | FHIR Bundle | Resource to Add | Resource Url | Output | | --- | --- | --- | --- | | ReadBundleFromJSONData1_Output | ReadResourceFromJson1_Output | Resource Url data | Resource Bundle | | ReadBundleFromJSONData1_Output | ReadResourceFromJson1_Output | Null | Resource Bundle | | Null | Null | Resource Url data | EXCEPTION MESSAGE | | Empty | Null | Resource Url data | EXCEPTION MESSAGE | #### ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/Screenshot%202024-04-04%20115219.png) --- ## Common Errors ### FHIR Bundle is not a valid FHIR Bundle If the **FHIR Bundle** input is null, empty, or not a properly formatted FHIR Bundle, the step will cause an error. To correct this, ensure that the value mapped to the input is a valid FHIR Bundle by using the **Read Bundle from JSON** step. #### Exception Message: ```csharp Exception Stack Trace: DecisionsFramework.BusinessRuleException: [BusinessRule] FHIR Bundle is not a valid FHIR Bundle object. Please use Read Bundle from JSON Step at Decisions.FHIR.FlowSteps.AddResourceToBundle.Run(StepStartData data at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData) ``` ## Related - [Get Resources From Bundle](/get-resources-from-bundle.md) - [Read Resource From Json](/read-resource-from-json.md) - [Get Json For FHIR Resource](/get-json-for-fhir-resource.md) - [Get Json For FHIR Object](/get-json-for-fhir-object.md) - [Get Json For FHIR Bundle](/get-json-for-fhir-bundle.md)