This page is part of the FHIR Specification v4.1.0: R4B Ballot. About the R4B version of FHIR. The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4
FHIR Infrastructure Work Group | Maturity Level: 3 | Trial Use | Compartments: N/A |
This operation retrieves a summary of the profiles, tags, and security labels for the given scope; e.g. for each scope:
The official URL for this operation definition is
http://hl7.org/fhir/OperationDefinition/Resource-meta
Formal Definition (as a OperationDefinition).
URL: [base]/$meta
URL: [base]/[Resource]/$meta
URL: [base]/[Resource]/[id]/$meta
This is an idempotent operation
Out Parameters: | |||||
Name | Cardinality | Type | Binding | Profile | Documentation |
return | 1..1 | Meta | The meta returned by the operation |
At the system and type levels, the $meta operation is used to get a summary of all the labels that are in use across the system. The principal use for this operation is to support search e.g. what tags can be searched for. At these levels, the meta will not contain versionId, lastUpdated etc. Systems are not obligated to implement the operation at this level (and should return a 4xx error if they don't). At the resource and historical entry level, the $meta operation returns the same meta as would be returned by accessing the resource directly. This can be used to allow a system to get access to the meta-information for the resource without accessing the resource itself, e.g. for security reasons
Request: Get all the tags, profiles, and security labels used on patient resources
GET /fhir/Patient/$meta
Response: All the tags, profiles, and security labels used on patient resources
HTTP/1.1 200 OK [other headers] <Parameters xmlns="http://hl7.org/fhir"> <parameter> <name value="return"/> <valueMeta> <profile value="http://hl7.org/fhir/StructureDefinition/daf-patient"/> <profile value="http://hl7.org/fhir/StructureDefinition/uslab-patient"/> <security> <system value="http://hl7.org/fhir/v3/ActCode"/> <code value="EMP"/> <display value="employee information sensitivity"/> </security> <tag> <system value="http://example.org/codes/tags"/> <code value="current"/> <display value="Current Inpatient"/> </tag> </valueMeta> </parameter> </Parameters>
For more information about operations, including how they are invoked, see Operations.