_elements
Include or exclude specific resource attributes in the search result
A client can request a specific set of elements to be returned as part of a resource in the search results using the _elements
parameter:
The _elements
parameter consists of a comma-separated list of element paths. Only element paths that are listed should be returned. The list of elements does not apply to included resources.
Exclude
If you want to exclude specific elements, you can prefix them with the -
sign:
Nested Elements
You can include or exclude nested elements using a dot separated path to an element:
Elements and (rev)includes
The _elements parameter is not applied to included resources. If you want to filter included resources elements, prefix the element path with resourceType. For example:
Result will contain id and type elements from Encounter and name from Patient. The -
prefix will exclude elements (for example -Patient.identifier
will exclude the identifier from Patient resources).
Last updated