Common CQL Artifacts for FHIR (US-Based)
1.0.0 - Informative 1

Common CQL Artifacts for FHIR (US-Based) - Downloaded Version null See the Directory of published versions

## Library: US Core Common Tests (Experimental)

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

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

Metadata
Title | US Core Common Tests
Version | 1.0.0
Experimental | true
Jurisdiction | United States of America
Topic | FHIR
Topic | CQL
Topic | Unit Tests
Steward (Publisher) | HL7 International / Clinical Decision Support
Description | Tests for the expressions and functions defined in the US Core Common library.
Type | logic-library from http://terminology.hl7.org/CodeSystem/library-type
Dependency | Description: Library UC Resource: US Core Common Canonical URL: `http://hl7.org/fhir/us/cql/Library/USCoreCommon`
Parameters
Parameter | None
Library Content
CQL Content |
    library USCoreCommonTests

    using FHIR version '4.0.1'
    using USCore version '7.0.0'

    include USCoreCommon 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()
ELM XML Content |
    Encoded data
ELM JSON Content |
    Encoded data
Generated using version 0.5.3-cibuild of the sample-content-ig Liquid templates