Class FhirLoadPage

java.lang.Object
org.apache.camel.component.fhir.api.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 Summary

    Constructors
    Constructor
    Description
    FhirLoadPage(ca.uhn.fhir.rest.client.api.IGenericClient client)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <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
    <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.
    <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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FhirLoadPage

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

    • 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:
      url - the search url
      returnType - the return type
      extraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULL
      Returns:
      the IBaseBundle page