Snapshot generation

Vonk is capable of generating a snapshot for a StructureDefinition. This operation is not defined in the FHIR Specification.

You can invoke this operation with

POST <vonk-endpoint>/StructureDefinition/$snapshot
  • The body must contain the StructureDefinition that you want filled with a fresh snapshot. The StructureDefinition may contain an existing snapshot, it will be ignored.
  • The Content-Type header must match the format of the body (application/fhir+json or application/fhir+xml)

Vonk will return the same StructureDefinition, but with the snapshot element (re-)generated.

Note

The very first call to $snapshot will take a considerable amount of time, typically around 5 seconds. This is because Vonk maintains a cache of StructureDefinition information, and on the first call that cache is still empty. Subsequent calls are much faster.

Precondition

Vonk must be aware of all the other StructureDefinitions that are referred to by the StructureDefinition in the body of the request. Refer to the Controlling the Conformance Resources for more information.