From 3dc53d83fb1c2fd4f39f204a6c2b64b5f5a7bc0e Mon Sep 17 00:00:00 2001 From: Bryn Rhodes Date: Mon, 2 Feb 2026 12:48:18 -0700 Subject: [PATCH] Corrected schema to account for id output type and lenient/polymorphics test mode (consistent with https://github.com/FHIR/fhir-test-cases/pull/255) --- tests/testSchema.xsd | 100 ++++++++++++++++++------------------------- 1 file changed, 41 insertions(+), 59 deletions(-) diff --git a/tests/testSchema.xsd b/tests/testSchema.xsd index 54b83c4..d510ad5 100644 --- a/tests/testSchema.xsd +++ b/tests/testSchema.xsd @@ -1,47 +1,18 @@ - + - - - - Declares a capability under test. 'code' is a code from the CQL Language Capability Codes - CodeSystem; 'value' (optional) is a qualifier that follows the code's valueMeaning. - - - - - Capability code (e.g., 'decimal-precision-and-scale'). Must be from the CQL Capability Codes. - - - - - Optional qualifier value (format/allowed values per the code's valueMeaning). - - - The Tests type provides a container for test suites made up of groups of tests. - - - - - Capability(ies) that apply to the entire test suite unless overridden by Group or Test. - - - Notes about the test suite. - + @@ -71,19 +42,12 @@ - - - - Capability(ies) that apply to all tests in this group unless overridden by a Test. - - - Notes about the test group. - + @@ -113,14 +77,6 @@ - - - - Capability(ies) specific to this test. These override Group/Tests level when conflicting. - - - - The expression to be tested. @@ -202,9 +158,9 @@ - + - The type of the expected output. If output type is not present, the content of the output is the string representation of a literal (e.g. 10.0) + The type of the expected output. @@ -217,6 +173,7 @@ + @@ -226,38 +183,63 @@ - Indicates the test is expected to evaluate successfully. + + Indicates the test is expected to evaluate successfully. + - Indicates the test is expected to produce a syntax error. + + Indicates the test is expected to produce a syntax error. + - Indicates the test is expected to produce a semantic error. + + Indicates the test is expected to produce a semantic error. + - Indicates the test is expected to produce an execution error. + + Indicates the test is expected to produce an execution error. + - Indicates the test is expected to produce a runtime error. + + Indicates the test is expected to produce a runtime error. + - Indicates the test is expected to evaluated with strict semantics (i.e. paths for choice-valued elements do not include the type name (e.g. Patient.deceased, not Patient.deceasedBoolean)). + + Indicates the test is expected to evaluated with strict semantics (i.e. paths for choice-valued elements do not include the type name (e.g. Patient.deceased, not Patient.deceasedBoolean)). + - Indicates the test is expected to be evaluated with lenient semantics (i.e. paths for choice-valued elements may be included (e.g. Patient.deceasedBoolean)). + + Indicates the test is expected to be evaluated with lenient semantics (i.e. paths for choice-valued elements may be included (e.g. Patient.deceasedBoolean)). + + + + + Indicates the test is expected to be evaluated with lenient, as well as polymorphic, semantics (i.e. paths for choice-valued elements may be included, as well as the ability to treat the choice-valued elements polymorphically). + - Indicates the test is expected to be evaluated with respect to a particular element (i.e. from the context of a particular element such as an invariant evaluation). + + Indicates the test is expected to be evaluated with respect to a particular element (i.e. from the context of a particular element such as an invariant evaluation). + - Indicates the test is evaluating a CDA document, as opposed to a FHIR resource. + + Indicates the test is evaluating a CDA document, as opposed to a FHIR resource. + - Indicates the test is expected to have access to the %terminologies environment variable, allowing access to terminology services as described in the FHIRPath topic in the FHIR specification. + + Indicates the test is expected to have access to the %terminologies environment variable, allowing access to terminology services as described in the FHIRPath topic in the FHIR specification. +