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

Get Json For FHIR Bundle

  • Dark
    Light

Article summary

Step Details

Introduced in Version4.0.0
Last Modified in Version7.1.0
LocationIntegration > FHIR

The Get JSON for FHIR Bundle step outputs the Bundle 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 BundleThe desired FHIR Bundle.FHIRBundle

Outputs

PropertyDescriptionData Type
OutputThe JSON formatted string of the datatype.String

Example Inputs and Outputs

FHIRBundleOutput
FHIRBUNDLE"{"resourceType":"Bundle","type":"transaction","entry":[{"resource":{"resourceType":"Patient","name":[{"family":"Smith","given":["Darcy"]}],"gender":"female","birthDate":"2000-12-25","address":[{"line":["123 Main St."],"city":"Anycity","state":"CA","postalCode":"12345"}]},"request":{"method":"POST"}},{"request":{"method":"DELETE","url":"Patient/1234567890"}}]}"
Hl7.Fhir.Model.Bundle"{"resourceType":"Bundle","entry":[{"id":"safasd"}]}"
NullEXCEPTION MESSAGE
EmptyEXCEPTION MESSAGE



Common Errors

Object Reference not Set to an Instance of an Object.

If the FHIR Bundle input is not configured, the step will cause an error.

To correct this, ensure that the field is configured by mapping in an FHIR Bundle or building the data by selecting Build Data mapping.

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Get Json For FHIRBundle 1[GetJsonForFHIRBundle] in flow [FHIR]: Exception invoking method GetJsonForFHIRBundle on class FHIRDeserializeSteps
 ---> DecisionsFramework.LoggedException: Exception invoking method GetJsonForFHIRBundle on class FHIRDeserializeSteps
 ---> System.NullReferenceException: Object reference not set to an instance of an object. 
at Hl7.Fhir.ElementModel.PocoElementNode..ctor(ModelInspector inspector, Base root, String rootName
 at Hl7.Fhir.ElementModel.TypedElementExtensions.ToTypedElement(Base base, String rootName
 at Hl7.Fhir.Serialization.BaseFhirSerializer.MakeElementStack(Base instance, SummaryType summary, String[] elements, Boolean includeMandatoryInElementsSummary
 at Hl7.Fhir.Serialization.FhirJsonSerializer.SerializeToString(Base instance, SummaryType summary, String[] elements
 at Decisions.FHIR.FlowSteps.FHIRDeserializeSteps.GetJsonForFHIRBundle(Bundle FHIRBundle)
   --- End of inner exception stack trace --- at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.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)
   --- End of inner exception stack trace ---



Was this article helpful?