Common CQL Artifacts for FHIR (US-Based)
2.0.0-cibuild - Informative 2 - CI Build United States of America flag

Common CQL Artifacts for FHIR (US-Based), published by HL7 International / Clinical Decision Support. This guide is not an authorized publication; it is the continuous build for version 2.0.0-cibuild built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/us-cql-ig/ and changes regularly. See the Directory of published versions

Library: US Core Common Tests (Experimental)

Official URL: http://hl7.org/fhir/us/cql/Library/USCoreCommonTests Version: 2.0.0-cibuild
Standards status: Informative Maturity Level: 3 Computable Name: USCoreCommonTests

Tests for the expressions and functions defined in the US Core Common library.

Exception generating Narrative: Unable to Parse HTML - node 'code' has unexpected content ' ' (last text = 'library USCoreCommonTests version '2.0.0-cibuild' using FHIR version '4.0.1' using USCore version '6.1.0-derived' include USCoreCommon version '2.0.0-cibuild' called UC context Patient //* _01_ define fluent function race(patient Patient): define _01_TestRace: Patient.race() //* _02_ define fluent function ethnicity(patient Patient): define _02_TestEthnicity: Patient.ethnicity() //* _03_ define fluent function tribalAffiliation(patient Patient): define _03_TestTribalAffiliation: Patient.tribalAffiliation() //* _04_ define fluent function birthSex(patient Patient): define _04_TestBirthSex: Patient.birthSex() //* _05_ define fluent function systolic(bloodPressureProfile BloodPressureProfile): define _05_TestSystolic: [Observation] O return O.systolic() //* _06_ define fluent function diastolic(bloodPressureProfile BloodPressureProfile): define _06_TestDiastolic: [Observation] O return O.diastolic() //* _07_ define fluent function isHealthConcern(condition FHIR.Condition): define _07_TestIsHealthConcern: [Condition] C where C.isHealthConcern() /* TODO: These are really US Core tests... define TestAge: AgeInYears() define TestAgeAt: AgeInYearsAt(@2022-10-14) define TestPrimitives: Patient P where P.gender = 'male' and P.active is true and P.birthDate before Today() and P.maritalStatus in "Marital Status" and P.maritalStatus ~ "Marital Status - Married" define TestChoice: Patient P where P.deceased is false or P.deceased before Today() define TestSlices: ["USCore.BloodPressureProfile"] BP where BP.systolic().value ' at line 320 column 32