Class FhirLoadPage
java.lang.Object
org.apache.camel.component.fhir.api.FhirLoadPage
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 -
Method Summary
Modifier and TypeMethodDescription<T extends org.hl7.fhir.instance.model.api.IBaseBundle>
TLoad 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.
-
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- 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:
url- the search urlreturnType- the return typeextraParameters- seeExtraParametersfor a full list of parameters that can be passed, may be NULL- Returns:
- the
IBaseBundlepage
-