Skip to content

Commit 1600316

Browse files
committed
Address #2172
1 parent bf9e02b commit 1600316

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/docs/server_plain/rest_operations.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ Tags have very specific semantics, which may not be obvious simply by using the
389389

390390
## Accessing Tags in a Read / VRead / Search Method
391391

392-
Tags are stored within a resource object, in the Resource.meta element.
392+
Tags are stored within a resource object, in the Resource.meta element. It is important to note that changing a resources tags will not cause a version update to that resource.
393393

394394
In a server implementation, you may populate your tags into the returned resource(s) and HAPI will automatically place these tags into the response headers (for read/vread) or the bundle category tags (for search). The following example illustrates how to return tags from a server method. This example shows how to supply tags in a read method, but the same approach applies to vread and search operations as well.
395395

@@ -415,6 +415,11 @@ To work with tags in a create/update method, the pattern used in the read exampl
415415
{{snippet:classpath:/ca/uhn/hapi/fhir/docs/RestfulPatientResourceProviderMore.java|createTags}}
416416
```
417417

418+
## Removing Tags
419+
420+
In order to remove a tag, it does not suffice to remove it from the resource. Tags can be removed using the [Resource Operation Meta Delete](https://www.hl7.org/fhir/resource-operation-meta-delete.html), which takes a Parameter
421+
definining which tags to delete.
422+
418423
# Handling _summary and _elements
419424

420425
The `_summary` and `_elements` parameters are automatically handled by the server, so no coding is required to make this work.

0 commit comments

Comments
 (0)