Common CQL Assets for FHIR (US-Based)
1.0.0-ballot - STU 1 Ballot United States of America flag

This page is part of the Common CQL Assets for FHIR (US-Based) (v1.0.0-ballot: STU 1 Ballot 1) based on FHIR (HL7® FHIR® Standard) R4. No current official version has been published yet. For a full list of available versions, 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-ballot
Standards status: Informative Computable Name: USCoreCommonTests

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

Title: US Core Common Tests
Id: USCoreCommonTests
Version: 1.0.0-ballot
Url: US Core Common Tests
Status: draft
Experimental: true
Type:

system: http://terminology.hl7.org/CodeSystem/library-type

code: logic-library

Date: 2025-04-01 14:00:55+0000
Publisher: HL7 International / Clinical Decision Support
Description:

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

Jurisdiction: US
Related Artifacts:

Dependencies

Parameters:
NameTypeMinMaxIn/Out
PatientResource01Out
TestEmailstring01Out
TestFaxstring01Out
TestMobileNumberstring01Out
TestPagerstring01Out
TestWorkNumberstring01Out
Content: text/cql
library USCoreCommonTests

using USCore version '3.1.1'
using FHIR version '4.0.1'

include USCoreCommon called UC

context Patient

define TestEmail:
  UC.Email(Patient.telecom).value

define TestFax:
  UC.Fax(Patient.telecom).value

define TestMobileNumber:
  UC.Mobile(Patient.telecom).value

define TestPager:
  UC.Pager(Patient.telecom).value

define TestWorkNumber:
  UC.Work(Patient.telecom).value
Content: application/elm+xml
Encoded data (16708 characters)
Content: application/elm+json
Encoded data (29820 characters)