Class TransactionUtil.StorageOutcome

java.lang.Object
ca.uhn.fhir.jpa.dao.TransactionUtil.StorageOutcome
Enclosing class:
TransactionUtil

public static class TransactionUtil.StorageOutcome extends Object
See Also:
  • Constructor Details

    • StorageOutcome

      public StorageOutcome(int theStatusCode, String theStatusMessage, ca.uhn.fhir.model.api.StorageResponseCodeEnum theStorageResponseCode, org.hl7.fhir.instance.model.api.IIdType theSourceId, org.hl7.fhir.instance.model.api.IIdType theTargetId, String theErrorMessage, String theRequestMetaSource)
  • Method Details

    • getErrorMessage

      Returns:
      Returns an error message if the specific action resulted in a failure. Returns null otherwise.
    • getStatusCode

      public int getStatusCode()
      Returns:
      Returns the HTTP status code
    • getStatusMessage

      Returns:
      Returns the complete HTTP status message including the getStatusCode() and the rest of the message. For example: 200 OK
    • getStorageResponseCode

      public ca.uhn.fhir.model.api.StorageResponseCodeEnum getStorageResponseCode()
      Returns:
      Contains a code identifying the specific outcome of this operation.
    • getTargetId

      public org.hl7.fhir.instance.model.api.IIdType getTargetId()
      Returns:
      Returns the ID of the resource as it was stored in the repository.
    • getSourceId

      public org.hl7.fhir.instance.model.api.IIdType getSourceId()
      Returns:
      Returns the ID of the resource in the request bundle in most cases. This could be an actual resource ID if the operation was an update by ID, or a placeholder UUID if placeholder IDs were in use in the bundle. If the getStorageResponseCode() for this outcome is StorageResponseCodeEnum.AUTOMATICALLY_CREATED_PLACEHOLDER_RESOURCE, the source ID will be the actual resolved and stored resource ID of the resource containing the reference which caused the placeholder to be created. The ID returned will be unqualified, meaning it has no base URL.
    • getRequestMetaSource

      Returns:
      Returns the Resource.meta.source value from the resource provided in the request bundle entry corresponding to this outcome.