Fetch the current version of a canonical resource (based on canonical versioning)

$current-canonicaloperation

Returns the most current version of the canonical resource with the specified url available on the server. It optionally also allows filtering to only expose the most current version with a particular status or set of statuses. Note that 'current' is determined by comparing version values using the specified versionAlgorithm, NOT by looking at lastUpdated.

SystemType

Implementation Notes

If none of the instances define the versionAlgorithm to use, a server may dynamically attempt to determine which versioning system is implied by the data. If the instances found with the provided canonical URL define different versionAlgorithm values the server may return an error. Note that the *CanonicalResource* is an interface and not an actual resource type, as such the operation is actually called on the canonical resource types such as CodeSystem, Questionnaire etc.

Metadata

ID
CanonicalResource-current-canonical
Applies to Resources
CanonicalResource

Input Parameters (2)

url1..1urirequired

This is the canonical URL (with no version declared)

status0..*code

The statuses to allow to be returned. If no status codes are provided, then any status is ok

Output Parameters (1)

result0..1CanonicalResource

If no resources can be found, will return nothing. If multiple resources are found for the specified statuses and 'most current' can't be determined by comparing the versions, the operation will fail with an operation outcome.