USCoreElementsTests
type: Library
node role: treeRoot
resource.id:
  value: USCoreElementsTests
resource.language:
  value: en
domain resource.text:
  narrative.status:
    value: extensions
  narrative.div: Metadata Title US Core Elements Tests Version 2.0.0 Identifier urn:oid:2.16.840.1.113883.4.642.40.86.28.16 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 Elements library. Type logic-library from http://terminology.hl7.org/CodeSystem/library-type Dependency Description: Library FHIRHelpers Resource: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1 Canonical URL: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1 Dependency Description: Library FHIRCommon Resource: http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0 Canonical URL: http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0 Dependency Description: Library UC Resource: US Core Common version: 2.0.0 Canonical URL: http://hl7.org/fhir/us/cql/Library/USCoreCommon|2.0.0 Dependency Description: Library UCE Resource: US Core Elements version: 2.0.0 Canonical URL: http://hl7.org/fhir/us/cql/Library/USCoreElements|2.0.0 Parameters Name Use Card. Type Documentation Patient Out 0..1 Patient _10_04_TestAllMedications Out 0..* Resource Test Age In Days Out 0..1 integer Test Age In Years Out 0..1 integer Test Height Out 0..1 Resource Test Weight Out 0..1 Resource Test BSA (Mosteller) Out 0..1 Quantity Test BSA (DuBois and DuBois) Out 0..1 Quantity Test Active Medication Orders Out 0..* Resource Library Content CQL Content library USCoreElementsTests version '2.0.0' using FHIR version '4.0.1' using USCore version '6.1.0-derived' include hl7.fhir.uv.cql.FHIRHelpers version '4.0.1' include hl7.fhir.uv.cql.FHIRCommon version '2.0.0' include USCoreCommon version '2.0.0' called UC include USCoreElements version '2.0.0' called UCE context Patient // NOTE: Many of these expressions are tested as part of the libraries for the example questionnaires // This test suite is intended to eventually provide exhaustive coverage, contributions are we…
domain resource.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm
  extension.value integer:
    value: 1
domain resource.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/StructureDefinition/structuredefinition-wg
  extension.value code:
    value: cds
domain resource.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
  extension.value code:
    value: informative
library.url:
  value: http://hl7.org/fhir/us/cql/Library/USCoreElementsTests
library.identifier:
  index: -1
  identifier.system:
    value: urn:ietf:rfc:3986
  identifier.value:
    value: urn:oid:2.16.840.1.113883.4.642.40.86.28.16
library.version:
  value: 2.0.0
library.name:
  value: USCoreElementsTests
library.title:
  value: US Core Elements Tests
library.status:
  value: active
library.experimental:
  value: true
library.type:
  codeable concept.coding:
    index: -1
    coding.system:
      value: http://terminology.hl7.org/CodeSystem/library-type
    coding.code:
      value: logic-library
library.date:
  value: 2026-08-14T22:25:21+00:00
library.publisher:
  value: HL7 International / Clinical Decision Support
library.contact:
  index: -1
  contact detail.telecom:
    index: -1
    contact point.system:
      value: url
    contact point.value:
      value: http://www.hl7.org/Special/committees/dss
library.description:
  value: Tests for the expressions and functions defined in the US Core Elements library.
library.jurisdiction:
  index: -1
  codeable concept.coding:
    index: -1
    coding.system:
      value: urn:iso:std:iso:3166
    coding.code:
      value: US
    coding.display:
      value: United States of America
library.topic:
  index: -1
  codeable concept.text:
    value: FHIR
library.topic:
  index: -1
  codeable concept.text:
    value: CQL
library.topic:
  index: -1
  codeable concept.text:
    value: Unit Tests
library.related artifact:
  index: -1
  related artifact.type:
    value: depends-on
  related artifact.display:
    value: Library FHIRHelpers
  related artifact.resource:
    value: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1
    link: 4.0
    link: .1
library.related artifact:
  index: -1
  related artifact.type:
    value: depends-on
  related artifact.display:
    value: Library FHIRCommon
  related artifact.resource:
    value: http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0
    link: 2.0
    link: .0
library.related artifact:
  index: -1
  related artifact.type:
    value: depends-on
  related artifact.display:
    value: Library UC
  related artifact.resource:
    value: http://hl7.org/fhir/us/cql/Library/USCoreCommon|2.0.0
    link: 2.0
    link: .0
library.related artifact:
  index: -1
  related artifact.type:
    value: depends-on
  related artifact.display:
    value: Library UCE
  related artifact.resource:
    value: http://hl7.org/fhir/us/cql/Library/USCoreElements|2.0.0
    link: 2.0
    link: .0
library.parameter:
  index: -1
  parameter definition.name:
    value: Patient
  parameter definition.use:
    value: out
  parameter definition.min:
    value: 0
  parameter definition.max:
    value: 1
  parameter definition.type:
    value: Patient
library.parameter:
  index: -1
  parameter definition.name:
    value: _10_04_TestAllMedications
  parameter definition.use:
    value: out
  parameter definition.min:
    value: 0
  parameter definition.max:
    value: *
  parameter definition.type:
    value: Resource
library.parameter:
  index: -1
  parameter definition.name:
    value: Test Age In Days
  parameter definition.use:
    value: out
  parameter definition.min:
    value: 0
  parameter definition.max:
    value: 1
  parameter definition.type:
    value: integer
library.parameter:
  index: -1
  parameter definition.name:
    value: Test Age In Years
  parameter definition.use:
    value: out
  parameter definition.min:
    value: 0
  parameter definition.max:
    value: 1
  parameter definition.type:
    value: integer
library.parameter:
  index: -1
  parameter definition.name:
    value: Test Height
  parameter definition.use:
    value: out
  parameter definition.min:
    value: 0
  parameter definition.max:
    value: 1
  parameter definition.type:
    value: Resource
library.parameter:
  index: -1
  parameter definition.name:
    value: Test Weight
  parameter definition.use:
    value: out
  parameter definition.min:
    value: 0
  parameter definition.max:
    value: 1
  parameter definition.type:
    value: Resource

index: -1
parameter definition.name:
  value: Test BSA (Mosteller)
parameter definition.use:
  value: out
parameter definition.min:
  value: 0
parameter definition.max:
  value: 1
parameter definition.type:
  value: Quantity

index: -1
parameter definition.name:
  value: Test BSA (DuBois and DuBois)
parameter definition.use:
  value: out
parameter definition.min:
  value: 0
parameter definition.max:
  value: 1
parameter definition.type:
  value: Quantity

index: -1
parameter definition.name:
  value: Test Active Medication Orders
parameter definition.use:
  value: out
parameter definition.min:
  value: 0
parameter definition.max:
  value: *
parameter definition.type:
  value: Resource

index: -1
attachment.content type:
  value: text/cql

index: -1
attachment.content type:
  value: application/elm+xml

index: -1
attachment.content type:
  value: application/elm+json