Class SingleResourceResult<T extends Resource>


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

      • isSuccess

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

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

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