Class 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 Detail

      • FhirTransaction

        public FhirTransaction​(ca.uhn.fhir.rest.client.api.IGenericClient client)
    • 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 transaction
        extraParameters - see ExtraParameters for 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 transaction
        extraParameters - see ExtraParameters for 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 transaction
        extraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULL
        Returns:
        the IBaseBundle as string