Class FhirMeta

java.lang.Object
org.apache.camel.component.fhir.api.FhirMeta

public class FhirMeta extends Object
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
    Constructor
    Description
    FhirMeta(ca.uhn.fhir.rest.client.api.IGenericClient client)
     
  • Method Summary

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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 - extends IBaseMetaType
      Parameters:
      metaType - The type of the meta datatype for the given FHIR model version (should be MetaDt.class or MetaType.class)
      extraParameters - see ExtraParameters for 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 - extends IBaseMetaType
      Parameters:
      metaType - the IBaseMetaType class
      id - the id
      extraParameters - see ExtraParameters for 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 - extends IBaseMetaType
      Parameters:
      metaType - the IBaseMetaType class
      resourceType - the resource type e.g "Patient"
      extraParameters - see ExtraParameters for 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 - extends IBaseMetaType
      Parameters:
      meta - the IBaseMetaType class
      id - the id
      extraParameters - see ExtraParameters for 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 - extends IBaseMetaType
      Parameters:
      meta - the IBaseMetaType class
      id - the id
      extraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULL
      Returns:
      the IBaseMetaType