Using CQL With FHIR
3.0.0-ballot - STU 3 Ballot

Using CQL With FHIR - Downloaded Version null See the Directory of published versions

## Extension: CQL Selectivity

Official URL: http://hl7.org/fhir/uv/cql/StructureDefinition/cql-selectivity | Version: 3.0.0-ballot | Highlight text changes?
Standards status: Trial-use | Maturity Level: 1 | Computable Name: CQLSelectivity
Other Identifiers: OID:2.16.840.1.113883.4.642.40.37.42.21

Describes the selectivity of a set of data requirements with respect to a particular expression.

Context of Use

This extension may be used on the following element(s)

- Element ID: `Library`

Usage info

Usages:

- Use this Extension: CQL Module

You can also check for usages in the FHIR IG Statistics

### Formal Views of Extension Content

Description Differentials, Snapshots, and other representations.

- Differential Table
- Snapshot Table
- Statistics/References
- All

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Expression selectivity
Slices for extension |  |  |  | Content/Rules for all slices
extension:expressionIdentifier |  | 0..1 | Extension | What expression
extension |  | 0..0 |  | Extension
url |  | 1..1 | uri | "expressionIdentifier"
value[x] |  | 1..1 | string | Value of extension
extension:coverage |  | 0..1 | Extension | How selective
extension |  | 0..0 |  | Extension
url |  | 1..1 | uri | "coverage"
value[x] |  | 1..1 | code | Value of extension Binding: Selectivity Coverage Value Set (required)
extension:inclusivity |  | 0..1 | Extension | Inclusion/exclusion
extension |  | 0..0 |  | Extension
url |  | 1..1 | uri | "inclusivity"
value[x] |  | 1..1 | code | Value of extension Binding: Selectivity Inclusivity Value Set (required)
extension:form |  | 0..1 | Extension | Conjunctive/disjunctive
extension |  | 0..0 |  | Extension
url |  | 1..1 | uri | "form"
value[x] |  | 1..1 | code | Value of extension Binding: Selectivity Form Value Set (required)
extension:clause |  | 1..* | Extension | A selectivity clause
Slices for extension |  |  |  | Content/Rules for all slices
extension:term |  | 1..* | Extension | A selectivity term
extension |  | 0..0 |  | Extension
url |  | 1..1 | uri | "term"
value[x] |  | 1..1 | DataRequirement | Value of extension
url |  | 1..1 | uri | "clause"
value[x] |  | 0..0 |  | Value of extension
url |  | 1..1 | uri | "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-selectivity"
value[x] |  | 0..0 |  | Value of extension
Documentation for this format

#### Terminology Bindings (Differential)

Path | Status | Usage | ValueSet | Version | Source
Extension.extension:coverage.​value[x] | Base | required | Selectivity Coverage Value Set | 📦3.0.0-ballot | This IG
Extension.extension:inclusivity.​value[x] | Base | required | Selectivity Inclusivity Value Set | 📦3.0.0-ballot | This IG
Extension.extension:form.​value[x] | Base | required | Selectivity Form Value Set | 📦3.0.0-ballot | This IG

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Expression selectivity
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 1..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
extension:expressionIdentifier |  | 0..1 | Extension | What expression
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "expressionIdentifier"
value[x] |  | 1..1 | string | Value of extension
extension:coverage |  | 0..1 | Extension | How selective
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "coverage"
value[x] |  | 1..1 | code | Value of extension Binding: Selectivity Coverage Value Set (required)
extension:inclusivity |  | 0..1 | Extension | Inclusion/exclusion
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "inclusivity"
value[x] |  | 1..1 | code | Value of extension Binding: Selectivity Inclusivity Value Set (required)
extension:form |  | 0..1 | Extension | Conjunctive/disjunctive
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "form"
value[x] |  | 1..1 | code | Value of extension Binding: Selectivity Form Value Set (required)
extension:clause |  | 1..* | Extension | A selectivity clause
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 1..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
Slices for extension |  |  |  | Content/Rules for all slices
extension:term |  | 1..* | Extension | A selectivity term
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "term"
value[x] |  | 1..1 | DataRequirement | Value of extension
url |  | 1..1 | uri | "clause"
url |  | 1..1 | uri | "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-selectivity"
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Extension.extension:coverage.​value[x] | Base | required | Selectivity Coverage Value Set | 📦3.0.0-ballot | This IG
Extension.extension:inclusivity.​value[x] | Base | required | Selectivity Inclusivity Value Set | 📦3.0.0-ballot | This IG
Extension.extension:form.​value[x] | Base | required | Selectivity Form Value Set | 📦3.0.0-ballot | This IG

#### Constraints

Id | Grade | Path(s) | Description | Expression
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

Summary

Complex Extension: Describes the selectivity of a set of data requirements with respect to a particular expression.

- expressionIdentifier: string: The expression the selectivity is describing.
- coverage: code: The coverage level of the selectivity with respect to the expression
- inclusivity: code: The inclusivity of the selectivity (i.e. inclusion or exclusion)
- form: code: The form of the selectivity, conjunctive or disjunctive.
- term: DataRequirement: A term in a clause of the selectivity (e.g. A.status = 'active'). Terms in a clause are joined with the opposite connective, by definition of Conjunctive and Disjunctive Normal Form (i.e. terms in a conjunctive selectivity are joined with or, whereas terms in a disjunctive selectivity are joined with and)

Maturity: 1

Differential ViewDifferential View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Expression selectivity
Slices for extension |  |  |  | Content/Rules for all slices
extension:expressionIdentifier |  | 0..1 | Extension | What expression
extension |  | 0..0 |  | Extension
url |  | 1..1 | uri | "expressionIdentifier"
value[x] |  | 1..1 | string | Value of extension
extension:coverage |  | 0..1 | Extension | How selective
extension |  | 0..0 |  | Extension
url |  | 1..1 | uri | "coverage"
value[x] |  | 1..1 | code | Value of extension Binding: Selectivity Coverage Value Set (required)
extension:inclusivity |  | 0..1 | Extension | Inclusion/exclusion
extension |  | 0..0 |  | Extension
url |  | 1..1 | uri | "inclusivity"
value[x] |  | 1..1 | code | Value of extension Binding: Selectivity Inclusivity Value Set (required)
extension:form |  | 0..1 | Extension | Conjunctive/disjunctive
extension |  | 0..0 |  | Extension
url |  | 1..1 | uri | "form"
value[x] |  | 1..1 | code | Value of extension Binding: Selectivity Form Value Set (required)
extension:clause |  | 1..* | Extension | A selectivity clause
Slices for extension |  |  |  | Content/Rules for all slices
extension:term |  | 1..* | Extension | A selectivity term
extension |  | 0..0 |  | Extension
url |  | 1..1 | uri | "term"
value[x] |  | 1..1 | DataRequirement | Value of extension
url |  | 1..1 | uri | "clause"
value[x] |  | 0..0 |  | Value of extension
url |  | 1..1 | uri | "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-selectivity"
value[x] |  | 0..0 |  | Value of extension
Documentation for this format

#### Terminology Bindings (Differential)

Path | Status | Usage | ValueSet | Version | Source
Extension.extension:coverage.​value[x] | Base | required | Selectivity Coverage Value Set | 📦3.0.0-ballot | This IG
Extension.extension:inclusivity.​value[x] | Base | required | Selectivity Inclusivity Value Set | 📦3.0.0-ballot | This IG
Extension.extension:form.​value[x] | Base | required | Selectivity Form Value Set | 📦3.0.0-ballot | This IG

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Expression selectivity
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 1..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
extension:expressionIdentifier |  | 0..1 | Extension | What expression
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "expressionIdentifier"
value[x] |  | 1..1 | string | Value of extension
extension:coverage |  | 0..1 | Extension | How selective
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "coverage"
value[x] |  | 1..1 | code | Value of extension Binding: Selectivity Coverage Value Set (required)
extension:inclusivity |  | 0..1 | Extension | Inclusion/exclusion
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "inclusivity"
value[x] |  | 1..1 | code | Value of extension Binding: Selectivity Inclusivity Value Set (required)
extension:form |  | 0..1 | Extension | Conjunctive/disjunctive
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "form"
value[x] |  | 1..1 | code | Value of extension Binding: Selectivity Form Value Set (required)
extension:clause |  | 1..* | Extension | A selectivity clause
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 1..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
Slices for extension |  |  |  | Content/Rules for all slices
extension:term |  | 1..* | Extension | A selectivity term
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "term"
value[x] |  | 1..1 | DataRequirement | Value of extension
url |  | 1..1 | uri | "clause"
url |  | 1..1 | uri | "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-selectivity"
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Extension.extension:coverage.​value[x] | Base | required | Selectivity Coverage Value Set | 📦3.0.0-ballot | This IG
Extension.extension:inclusivity.​value[x] | Base | required | Selectivity Inclusivity Value Set | 📦3.0.0-ballot | This IG
Extension.extension:form.​value[x] | Base | required | Selectivity Form Value Set | 📦3.0.0-ballot | This IG

#### Constraints

Id | Grade | Path(s) | Description | Expression
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

Summary

Complex Extension: Describes the selectivity of a set of data requirements with respect to a particular expression.

- expressionIdentifier: string: The expression the selectivity is describing.
- coverage: code: The coverage level of the selectivity with respect to the expression
- inclusivity: code: The inclusivity of the selectivity (i.e. inclusion or exclusion)
- form: code: The form of the selectivity, conjunctive or disjunctive.
- term: DataRequirement: A term in a clause of the selectivity (e.g. A.status = 'active'). Terms in a clause are joined with the opposite connective, by definition of Conjunctive and Disjunctive Normal Form (i.e. terms in a conjunctive selectivity are joined with or, whereas terms in a disjunctive selectivity are joined with and)

Maturity: 1

Other representations of profile: CSV, Excel, Schematron