Class TransactionUtil

java.lang.Object
ca.uhn.fhir.jpa.dao.TransactionUtil

public class TransactionUtil extends Object
This class contains utility methods for working with HAPI FHIR Transactions (referring to the FHIR "transaction" operation, as opposed to working with database transactions).
  • Method Details

    • parseTransactionResponse

      public static TransactionUtil.TransactionResponse parseTransactionResponse(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IBaseBundle theTransactionResponseBundle)
      This method accepts a Bundle which was returned by a call to HAPI FHIR's transaction/batch processor. HAPI FHIR has specific codes and extensions it will always put into the OperationOutcomes returned by the transaction processor, so this method parses these and returns a more machine-processable interpretation.

      This method should only be called for Bundles returned by HAPI FHIR's transaction processor, results will have no meaning for any other input.

      Since:
      8.2.0