This page is part of the Clinical Quality Language Specification (v1.5.2: Normative - Normative) based on FHIR R4. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions
Clinical Decision Support Work Group | Maturity Level: N/A | Standards Status: Informative |
The following contains a zip file that contains a set of unit tests for Clinical Quality Language functionality.
The tests are expressed in a simple XML format describing the expression and its expected outcome.
Some tests cover functionality related to calculation and string representation of times, and are built to be run with an evaluation request timestamp in UTC, to avoid introducing any location dependence to the tests.
The XML Schema for these tests is included in the zip.
This is the same test format used by the FHIRPath specification.
The tests cover the following sections of the specification:
Aggregate Functions
Aggregate Operator
Arithmetic Functions
Comparison Operators
Conditional Operators
Date/Time Operators
Errors And Messaging Operators
Interval Operators
List Operators
Logical Operators
Nullological Operators
String Operators
Type Operators
Types
Value Literals and Selectors
The tests defined here are informative, not normative aspects of the specification. If there is a discrepancy between the behavior of a test and the specification, the specification should be considered the source of truth.