Package ca.uhn.fhir.rest.annotation
Annotation Type History
-
@Retention(RUNTIME) @Target(METHOD) public @interface History
RESTful method annotation to be used for the FHIR history method.History returns a feed containing all versions (or a selected range of versions) of a resource or a specific set of resources.
The history command supports three usage patterns, as described in the FHIR history documentation:
-
A search for the history of all resources on a server. In this case,
type()should be set toIResource(as is the default) and the method should not have an ID parameter.-
To invoke this pattern:
GET [base]/_history{?[parameters]&_format=[mime-type]}
-
To invoke this pattern:
-
A search for the history of all instances of a specific resource type on a server. In this case,
type()should be set to the specific resource type (e.g.Patient.class) and the method should not have an ID parameter.-
To invoke this pattern:
GET [base]/[type]/_history{?[parameters]&_format=[mime-type]}
-
To invoke this pattern:
-
A search for the history of a specific instances of a specific resource type on a server. In this case,
type()should be set to the specific resource type (e.g.Patient.classand the method should have one parameter of typeIdDtannotated with theIdParamannotation.-
To invoke this pattern:
GET [base]/[type]/[id]/_history{?[parameters]&_format=[mime-type]}
-
To invoke this pattern:
-
A search for the history of all resources on a server. In this case,
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<? extends IBaseResource>typeThe resource type that this method applies to.
-
-
-
Element Detail
-
type
Class<? extends IBaseResource> type
The resource type that this method applies to. See theHistory annotation type documentationfor information on usage patterns.- Default:
- org.hl7.fhir.instance.model.api.IBaseResource.class
-
-