Class MultiResourceResult<T extends Resource>


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

      • isSuccess

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

        public List<T> getResource()
        The resources returned from the interaction
        Returns:
        An unmodifiable list containing immutable objects of type Resource.
      • getOutcome

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