Class FhirTransaction
- java.lang.Object
-
- org.apache.camel.component.fhir.api.FhirTransaction
-
public class FhirTransaction extends Object
API for sending a transaction (collection of resources) to the server to be executed as a single unit.
-
-
Constructor Summary
Constructors Constructor Description FhirTransaction(ca.uhn.fhir.rest.client.api.IGenericClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringwithBundle(String stringBundle, Map<ExtraParameters,Object> extraParameters)Use the given raw text (should be a Bundle resource) as the transaction inputorg.hl7.fhir.instance.model.api.IBaseBundlewithBundle(org.hl7.fhir.instance.model.api.IBaseBundle bundle, Map<ExtraParameters,Object> extraParameters)Use the given Bundle resource as the transaction inputList<org.hl7.fhir.instance.model.api.IBaseResource>withResources(List<org.hl7.fhir.instance.model.api.IBaseResource> resources, Map<ExtraParameters,Object> extraParameters)Use a list of resources as the transaction input
-
-
-
Method Detail
-
withResources
public List<org.hl7.fhir.instance.model.api.IBaseResource> withResources(List<org.hl7.fhir.instance.model.api.IBaseResource> resources, Map<ExtraParameters,Object> extraParameters)
Use a list of resources as the transaction input- Parameters:
resources- resources to use in the transactionextraParameters- seeExtraParametersfor a full list of parameters that can be passed, may be NULL- Returns:
- the
IBaseResources
-
withBundle
public org.hl7.fhir.instance.model.api.IBaseBundle withBundle(org.hl7.fhir.instance.model.api.IBaseBundle bundle, Map<ExtraParameters,Object> extraParameters)Use the given Bundle resource as the transaction input- Parameters:
bundle- bundle to use in the transactionextraParameters- seeExtraParametersfor a full list of parameters that can be passed, may be NULL- Returns:
- the
IBaseBundle
-
withBundle
public String withBundle(String stringBundle, Map<ExtraParameters,Object> extraParameters)
Use the given raw text (should be a Bundle resource) as the transaction input- Parameters:
stringBundle- bundle to use in the transactionextraParameters- seeExtraParametersfor a full list of parameters that can be passed, may be NULL- Returns:
- the
IBaseBundleas string
-
-