Class FhirLoadPage


  • public class FhirLoadPage
    extends Object
    API that Loads the previous/next bundle of resources from a paged set, using the link specified in the "link type=next" tag within the atom bundle.
    • Constructor Detail

      • FhirLoadPage

        public FhirLoadPage​(ca.uhn.fhir.rest.client.api.IGenericClient client)
    • Method Detail

      • next

        public <T extends org.hl7.fhir.instance.model.api.IBaseBundle> T next​(T bundle,
                                                                              Map<ExtraParameters,​Object> extraParameters)
        Load the next page of results using the link with relation "next" in the bundle. This method accepts a DSTU2 Bundle resource
        Type Parameters:
        T - extends IBaseBundle
        Parameters:
        bundle - the IBaseBundle
        extraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULL
        Returns:
        the next IBaseBundle
      • previous

        public <T extends org.hl7.fhir.instance.model.api.IBaseBundle> T previous​(T bundle,
                                                                                  Map<ExtraParameters,​Object> extraParameters)
        Load the previous page of results using the link with relation "prev" in the bundle. This method accepts a DSTU2+ Bundle resource
        Type Parameters:
        T - extends IBaseBundle
        Parameters:
        bundle - the IBaseBundle
        extraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULL
        Returns:
        the previous IBaseBundle
      • byUrl

        public <T extends org.hl7.fhir.instance.model.api.IBaseBundle> T byUrl​(String url,
                                                                               Class<T> returnType,
                                                                               Map<ExtraParameters,​Object> extraParameters)
        Load a page of results using the given URL and bundle type and return a DSTU1 Atom bundle
        Type Parameters:
        T - extends IBaseBundle
        Parameters:
        extraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULL
        url - the search url
        returnType - the return type
        Returns:
        the IBaseBundle page