Canonical Resource Management Infrastructure Implementation Guide, published by HL7 International / Clinical Decision Support. This guide is not an authorized publication; it is the continuous build for version 1.1.0-cibuild built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/crmi-ig/ and changes regularly. See the Directory of published versions
This section provides general conventions for canonical artifacts. The guidance here is aligned with Terminology Expectations for IG Developers.
The url
element of an artifact SHOULD be constructed according to the following pattern:
{package-canonical-base}/{resource.resourceType}/{resource.id}
Note that this pattern is based on the logical id
of the resource in an implementation guide authoring context. This means the id-space is isolated by the canonical base of the IG and there is no chance of collision with other content. When the resource is published and appears in other contexts, the logical id
will change, but the url
will remain constant as the canonical identifier for the resource.
If the authoring context is an authoring repository, the repository must ensure that collisions cannot occur with content from other projects in the same repository, and this convention typically cannot be followed. In these cases, the authoring repository is responsible for preventing collisions and establishing the URL for the artifact.
The version
element for all artifacts within the same package SHOULD be the same as the version of the package. This is usually the ImplementationGuide in which the artifact is defined.
In addition, all references to canonicals from artifacts in a package to other artifacts in the same package SHOULD be version-consistent (i.e. if the references are version-specific and the referenced artifact is included in the package, the referenced artifact is the version referenced (and no other unreferenced versions of that artifact are included).
The name
element of an artifact SHOULD:
[A-Za-z]
, followed only by alphanumeric characters [A-Za-z0-9]
(note no underscores or spaces)In addition, for Knowledge Artifacts (i.e. Library, ActivityDefinition, PlanDefinition, Measure, and Questionnaire), the name
element SHOULD:
/
))This is especially important for Library resources that contain CQL, since library resolution in CQL relies on the canonical identifiers of the resources.
For example:
"url": "http://fhir.org/guides/cqf/common/Library/FHIRCommon",
"name": "FHIRCommon"
The title
element of an artifact SHOULD:
name
, but with spaces allowedAlthough FHIR operation definitions can specify a code
property, servers may use whatever code they surface in their capability statement to implement operations. To simplify application development and encourage consistency, this implementation guide proposes that:
code
property of the OperationDefinition to expose operation capabilitycode
property as the base definition of an OperationDefinition they are extending