--- type: "operation" title: "CanonicalResource $current-canonical" resource: "CanonicalResource" operation: "current-canonical" --- # canonicalresource $current-canonical Fetch the current version of a canonical resource (based on canonical versioning) **Description:** 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. **Affects State:** false **System:** true **Type:** true **Instance:** false **URL:** http://hl7.org/fhir/build/OperationDefinition/CanonicalResource-current-canonical ## Parameters - **url** [in] 1..1 uri — This is the canonical URL (with no version declared) - **status** [in] 0..* code — The statuses to allow to be returned. If no status codes are provided, then any status is ok - **result** [out] 0..1 CanonicalResource — 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.