Class 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 Detail

      • FhirMeta

        public FhirMeta​(ca.uhn.fhir.rest.client.api.IGenericClient client)
    • Method Detail

      • 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:
        extraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULL
        metaType - the IBaseMetaType class
        id - the id
        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:
        id - the id
        meta - the IBaseMetaType class
        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:
        id - the id
        meta - the IBaseMetaType class
        extraParameters - see ExtraParameters for a full list of parameters that can be passed, may be NULL
        Returns:
        the IBaseMetaType