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 to IResource (as is the default) and the method should not have an ID parameter.
      • To invoke this pattern: GET [base]/_history{?[parameters]&_format=[mime-type]}
    • 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]}
    • 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.class and the method should have one parameter of type IdDt annotated with the IdParam annotation.
      • To invoke this pattern: GET [base]/[type]/[id]/_history{?[parameters]&_format=[mime-type]}
    See Also:
    Count, Since
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      Class<? extends IBaseResource> type
      The resource type that this method applies to.