Class FhirMeta
java.lang.Object
org.apache.camel.component.fhir.api.FhirMeta
API for the "meta" operations, which can be used to get, add and remove tags and other Meta elements from a resource
or across the server.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends org.hl7.fhir.instance.model.api.IBaseMetaType>
Tadd(T meta, org.hl7.fhir.instance.model.api.IIdType id, Map<ExtraParameters, Object> extraParameters) Add the elements in the given metadata to the already existing set (do not remove any)<T extends org.hl7.fhir.instance.model.api.IBaseMetaType>
Tdelete(T meta, org.hl7.fhir.instance.model.api.IIdType id, Map<ExtraParameters, Object> extraParameters) Delete the elements in the given metadata from the given id<T extends org.hl7.fhir.instance.model.api.IBaseMetaType>
TgetFromResource(Class<T> metaType, org.hl7.fhir.instance.model.api.IIdType id, Map<ExtraParameters, Object> extraParameters) Fetch the current metadata from a specific resource<T extends org.hl7.fhir.instance.model.api.IBaseMetaType>
TgetFromServer(Class<T> metaType, Map<ExtraParameters, Object> extraParameters) Fetch the current metadata from the whole Server<T extends org.hl7.fhir.instance.model.api.IBaseMetaType>
TgetFromType(Class<T> metaType, String resourceType, Map<ExtraParameters, Object> extraParameters) Fetch the current metadata from a specific type
-
Constructor Details
-
FhirMeta
public FhirMeta(ca.uhn.fhir.rest.client.api.IGenericClient client)
-
-
Method Details
-
getFromServer
public <T extends org.hl7.fhir.instance.model.api.IBaseMetaType> T getFromServer(Class<T> metaType, Map<ExtraParameters, Object> extraParameters) Fetch the current metadata from the whole Server- Type Parameters:
T- extendsIBaseMetaType- Parameters:
metaType- The type of the meta datatype for the given FHIR model version (should beMetaDt.classorMetaType.class)extraParameters- seeExtraParametersfor a full list of parameters that can be passed, may be NULL- Returns:
- the
IBaseMetaType
-
getFromResource
public <T extends org.hl7.fhir.instance.model.api.IBaseMetaType> T getFromResource(Class<T> metaType, org.hl7.fhir.instance.model.api.IIdType id, Map<ExtraParameters, Object> extraParameters) Fetch the current metadata from a specific resource- Type Parameters:
T- extendsIBaseMetaType- Parameters:
metaType- theIBaseMetaTypeclassid- the idextraParameters- seeExtraParametersfor a full list of parameters that can be passed, may be NULL- Returns:
- the
IBaseMetaType
-
getFromType
public <T extends org.hl7.fhir.instance.model.api.IBaseMetaType> T getFromType(Class<T> metaType, String resourceType, Map<ExtraParameters, Object> extraParameters) Fetch the current metadata from a specific type- Type Parameters:
T- extendsIBaseMetaType- Parameters:
metaType- theIBaseMetaTypeclassresourceType- the resource type e.g "Patient"extraParameters- seeExtraParametersfor a full list of parameters that can be passed, may be NULL- Returns:
- the
IBaseMetaType
-
add
public <T extends org.hl7.fhir.instance.model.api.IBaseMetaType> T add(T meta, org.hl7.fhir.instance.model.api.IIdType id, Map<ExtraParameters, Object> extraParameters) Add the elements in the given metadata to the already existing set (do not remove any)- Type Parameters:
T- extendsIBaseMetaType- Parameters:
meta- theIBaseMetaTypeclassid- the idextraParameters- seeExtraParametersfor a full list of parameters that can be passed, may be NULL- Returns:
- the
IBaseMetaType
-
delete
public <T extends org.hl7.fhir.instance.model.api.IBaseMetaType> T delete(T meta, org.hl7.fhir.instance.model.api.IIdType id, Map<ExtraParameters, Object> extraParameters) Delete the elements in the given metadata from the given id- Type Parameters:
T- extendsIBaseMetaType- Parameters:
meta- theIBaseMetaTypeclassid- the idextraParameters- seeExtraParametersfor a full list of parameters that can be passed, may be NULL- Returns:
- the
IBaseMetaType
-