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 2.0.0 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
| Page standards status: Trial-use |
Test artifacts are FHIR resources that describe expected behavior for knowledge artifacts, providing a way to verify that an artifact performs as intended across different implementations and environments. Each test case specifies the artifact and operation under test, the input data and parameters, and the expected outputs or outcomes.
Test cases in this implementation guide are represented using the FHIR Library resource with a type of test-case. The Library resource provides a flexible container for all the metadata and content elements needed to fully describe a test scenario, including references to the artifact under test, the operation being invoked, the input data bundle, and the expected results.
By capturing test cases as FHIR resources, they can be versioned, packaged, and distributed alongside the knowledge artifacts they test — enabling automated validation, regression testing, and conformance verification throughout the artifact lifecycle.
Library
NOTE: The
cqf-testArtifactextension may appear multiple times in a test case Library — once to reference the artifact under test, and once to reference the specific operation being tested.