Class FhirTransaction
java.lang.Object
org.apache.camel.component.fhir.api.FhirTransaction
API for sending a transaction (collection of resources) to the server to be executed as a single unit.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionwithBundle(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
-
Constructor Details
-
FhirTransaction
public FhirTransaction(ca.uhn.fhir.rest.client.api.IGenericClient client)
-
-
Method Details
-
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
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
-