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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends org.hl7.fhir.instance.model.api.IBaseBundle>
TbyUrl(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>
Tnext(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>
Tprevious(T bundle, Map<ExtraParameters,Object> extraParameters)Load the previous page of results using the link with relation "prev" in the bundle.
-
-
-
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- extendsIBaseBundle- Parameters:
bundle- theIBaseBundleextraParameters- seeExtraParametersfor 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- extendsIBaseBundle- Parameters:
bundle- theIBaseBundleextraParameters- seeExtraParametersfor 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- extendsIBaseBundle- Parameters:
extraParameters- seeExtraParametersfor a full list of parameters that can be passed, may be NULLurl- the search urlreturnType- the return type- Returns:
- the
IBaseBundlepage
-
-