@Retention(value=RUNTIME) @Target(value=METHOD) public @interface History
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:
type()
should be set to IResource (as is the default) and the method should not have an ID parameter.
GET [base]/_history{?[parameters]&_format=[mime-type]}
type()
should be set to the specific resource type (e.g. Patient.class) and the method should not have an ID parameter.
GET [base]/[type]/_history{?[parameters]&_format=[mime-type]}
type()
should be set to the specific resource type (e.g. Patient.class and the method should
have one parameter of type IdDt annotated with the IdParam annotation.
GET [base]/[type]/[id]/_history{?[parameters]&_format=[mime-type]}
| Modifier and Type | Optional Element and Description |
|---|---|
Class<? extends IBaseResource> |
type
The resource type that this method applies to.
|
public abstract Class<? extends IBaseResource> type
History annotation type documentation
for information on usage patterns.Copyright © 2014–2017 University Health Network. All rights reserved.