Class MultiResourceResult


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

      • success

        final boolean success
      • expectedNextId

        final java.lang.Long expectedNextId
      • expectedPreviousId

        final java.lang.Long expectedPreviousId
      • firstId

        final java.lang.Long firstId
      • lastId

        final java.lang.Long lastId
    • Method Detail

      • isSuccess

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

        public java.util.List<ResourceResult<? extends Resource>> getResourceResults()
        The resource results returned from the interaction
        Returns:
        An unmodifiable list containing immutable objects of type ResourceResult
      • getOutcome

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

        public java.lang.Long getExpectedNextId()
        Get the expected id of the first entry in the next page.
        Returns:
        An id that uniquely identifies a particular version of a particular resource type with a particular logical id.
      • getExpectedPreviousId

        public java.lang.Long getExpectedPreviousId()
        Get the expected id of the last entry in the previous page.
        Returns:
        An id that uniquely identifies a particular version of a particular resource type with a particular logical id.
      • geFirstId

        public java.lang.Long geFirstId()
        Get the id of the first entry in the current page.
        Returns:
        An id that uniquely identifies a particular version of a particular resource type with a particular logical id.
      • getLastId

        public java.lang.Long getLastId()
        Get the id of the last entry in the current page.
        Returns:
        An id that uniquely identifies a particular version of a particular resource type with a particular logical id.