Class SingleResourceResult<T extends Resource>


  • public class SingleResourceResult<T extends Resource>
    extends java.lang.Object
    A Result wrapper for FHIR interactions that return a single resource. Instances are immutable and can be constructed via new SingleResourceResult.Builder<T>().
    • Field Detail

      • ifNoneMatchVersion

        final java.lang.Integer ifNoneMatchVersion
    • Method Detail

      • isSuccess

        public boolean isSuccess()
        Whether or not the interaction was successful
        Returns:
        whether the interaction was successful
      • isDeleted

        public boolean isDeleted()
        Whether or not the resource is deleted
        Returns:
        whether the resource is deleted
      • getResource

        public T getResource()
        The resource resulting from the interaction
        Returns:
        An immutable object of type Resource.
      • getStatus

        public InteractionStatus getStatus()
        Getter for the interaction status
        Returns:
      • getIfNoneMatchVersion

        public java.lang.Integer getIfNoneMatchVersion()
        Getter for the ifNoneMatchVersion value
        Returns:
      • getOutcome

        public OperationOutcome getOutcome()
        An OperationOutcome that represents the outcome of the interaction
        Returns:
        An immutable object of type OperationOutcome
      • getResourceTypeName

        public java.lang.String getResourceTypeName()
        Returns:
        the type name of the resource
      • getLogicalId

        public java.lang.String getLogicalId()
        Returns:
        the logicalId of the resource
      • getVersion

        public int getVersion()
        Returns:
        the version of the resource, or 0 if resourceResult is null