Class FhirHistory
java.lang.Object
org.apache.camel.component.fhir.api.FhirHistory
API for the "history" method
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends org.hl7.fhir.instance.model.api.IBaseBundle>
TonInstance(org.hl7.fhir.instance.model.api.IIdType id, Class<T> returnType, Integer count, Date cutoff, org.hl7.fhir.instance.model.api.IPrimitiveType<Date> iCutoff, Map<ExtraParameters, Object> extraParameters) Perform the operation across all versions of a specific resource (by ID and type) on the server.<T extends org.hl7.fhir.instance.model.api.IBaseBundle>
TonServer(Class<T> returnType, Integer count, Date cutoff, org.hl7.fhir.instance.model.api.IPrimitiveType<Date> iCutoff, Map<ExtraParameters, Object> extraParameters) Perform the operation across all versions of all resources of all types on the server<T extends org.hl7.fhir.instance.model.api.IBaseBundle>
TonType(Class<org.hl7.fhir.instance.model.api.IBaseResource> resourceType, Class<T> returnType, Integer count, Date cutoff, org.hl7.fhir.instance.model.api.IPrimitiveType<Date> iCutoff, Map<ExtraParameters, Object> extraParameters) Perform the operation across all versions of all resources of the given type on the server
-
Constructor Details
-
FhirHistory
public FhirHistory(ca.uhn.fhir.rest.client.api.IGenericClient client)
-
-
Method Details
-
onServer
public <T extends org.hl7.fhir.instance.model.api.IBaseBundle> T onServer(Class<T> returnType, Integer count, Date cutoff, org.hl7.fhir.instance.model.api.IPrimitiveType<Date> iCutoff, Map<ExtraParameters, Object> extraParameters) Perform the operation across all versions of all resources of all types on the server- Type Parameters:
T- extendsIBaseBundle- Parameters:
returnType- Request that the method return a Bundle resource (such asca.uhn.fhir.model.dstu2.resource.Bundle). Use this method if you are accessing a DSTU2+ server.count- Request that the server return only up totheCountnumber of resources, may be NULLcutoff- Request that the server return only resource versions that were created at or after the given time (inclusive), may be NULLiCutoff- Request that the server return only resource versions that were created at or after the given time (inclusive), may be NULLextraParameters- seeExtraParametersfor a full list of parameters that can be passed, may be NULL- Returns:
- the
IBaseBundle
-
onType
public <T extends org.hl7.fhir.instance.model.api.IBaseBundle> T onType(Class<org.hl7.fhir.instance.model.api.IBaseResource> resourceType, Class<T> returnType, Integer count, Date cutoff, org.hl7.fhir.instance.model.api.IPrimitiveType<Date> iCutoff, Map<ExtraParameters, Object> extraParameters) Perform the operation across all versions of all resources of the given type on the server- Type Parameters:
T- extendsIBaseBundle- Parameters:
resourceType- The resource type to search forreturnType- Request that the method return a Bundle resource (such asca.uhn.fhir.model.dstu2.resource.Bundle). Use this method if you are accessing a DSTU2+ server.count- Request that the server return only up totheCountnumber of resources, may be NULLcutoff- Request that the server return only resource versions that were created at or after the given time (inclusive), may be NULLiCutoff- Request that the server return only resource versions that were created at or after the given time (inclusive), may be NULLextraParameters- seeExtraParametersfor a full list of parameters that can be passed, may be NULL- Returns:
- the
IBaseBundle
-
onInstance
public <T extends org.hl7.fhir.instance.model.api.IBaseBundle> T onInstance(org.hl7.fhir.instance.model.api.IIdType id, Class<T> returnType, Integer count, Date cutoff, org.hl7.fhir.instance.model.api.IPrimitiveType<Date> iCutoff, Map<ExtraParameters, Object> extraParameters) Perform the operation across all versions of a specific resource (by ID and type) on the server. Note thattheIdmust be populated with both a resource type and a resource ID at a minimum.- Type Parameters:
T- extendsIBaseBundle- Parameters:
id- theIIdTypewhich must be populated with both a resource type and a resource ID atreturnType- Request that the method return a Bundle resource (such asca.uhn.fhir.model.dstu2.resource.Bundle). Use this method if you are accessing a DSTU2+ server.count- Request that the server return only up totheCountnumber of resources, may be NULLcutoff- Request that the server return only resource versions that were created at or after the given time (inclusive), may be NULLiCutoff- Request that the server return only resource versions that were created at or after the given time (inclusive), may be NULLextraParameters- seeExtraParametersfor a full list of parameters that can be passed, may be NULL- Returns:
- the
IBaseBundle - Throws:
IllegalArgumentException- Ifiddoes not contain at least a resource type and ID
-