FHIR © HL7.org  |  Server Home  |  XIG Home  |  XIG Stats  |  Server Source  |  FHIR  

FHIR IG Statistics: Measure/TSCComponent

Packagehl7.fhir.uv.cqm
Resource TypeMeasure
IdTSCComponent
FHIR VersionR4
Sourcehttp://hl7.org/fhir/uv/cqm/https://build.fhir.org/ig/HL7/fhir-cqm/Measure-TSCComponent.html
URLhttp://hl7.org/fhir/uv/cqm/Measure/TSCComponent
Version0.0.001
Statusactive
Date2025-08-07T21:50:23-06:00
NameTSCComponent
TitlePreventive Care and Screening: Tobacco Use: Screening and Cessation Intervention
Realmuv
Authorityhl7
DescriptionThis is an example only.

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

Knowledge Artifact Metadata
Name (machine-readable) TSCComponent
Title (human-readable) Preventive Care and Screening: Tobacco Use: Screening and Cessation Intervention
Status Active
Experimental true
Description

This is an example only.

Effective Period 2022-01-01..2022-12-31
Use Context Clinical Venue = EC
Measure Steward HL7 International / Clinical Quality Information
Steward Contact Details http://www.hl7.org/Special/committees/cqi
Measure Metadata
Short Name Identifier Preventive Care and Screening: Tobacco Use: Screening and Cessation Intervention
Version Independent Identifier http://example.org/fhir/us/cqm/Measure/HBPComponent
Version Specific Identifier http://example.org/fhir/us/cqm/Measure/138v12
Version Number 0.0.001
Measure Scoring Proportion
Measure Type Process
Improvement Notation Increased score indicates improvement
Measure Population Criteria (ID: group-1)
Initial Population ID: 1DE7294A-72AE-42D1-A2A6-BCAE23DBA8A6
Description: No description provided Logic Definition: Initial Population
Denominator ID: 0F57D23C-C2AA-4CE1-9E20-33DAE1F2B145
Description: No description provided Logic Definition: Denominator 1
Denominator Exception ID: 570F7624-72EC-4CFC-9137-F48E476D77DC
Description: No description provided Logic Definition: Denominator Exceptions 1
Numerator ID: 20577EB7-3FE9-43D2-B918-A8C7AE5E0E91
Description: No description provided Logic Definition: Numerator 1
Measure Population Criteria (ID: group-2)
Initial Population ID: DD346C87-5D2B-4319-B41D-7BF64ADF95D0
Description: No description provided Logic Definition: Initial Population
Denominator ID: A1FAA872-5C94-4F2B-A355-8E3A3390369C
Description: No description provided Logic Definition: Denominator 2
Denominator Exception ID: 3AE470CD-37DF-492D-A3A4-365BAF744C5A
Description: No description provided Logic Definition: Denominator Exceptions 2
Numerator ID: B1F8B729-7BBD-4616-B39C-E90444B7884C
Description: No description provided Logic Definition: Numerator 2
Measure Population Criteria (ID: group-3)
Initial Population ID: EA2696EE-326B-490A-82B5-E4D8FC581E77
Description: No description provided Logic Definition: Initial Population
Denominator ID: D346BB79-EFD1-4DB1-902A-36F027BE75E9
Description: No description provided Logic Definition: Denominator 3
Denominator Exception ID: 6BBFE753-2072-4848-B189-0E5B44BE1F52
Description: No description provided Logic Definition: Denominator Exceptions 3
Numerator ID: F8E22F0F-7307-4BED-9295-648803772928
Description: No description provided Logic Definition: Numerator 3
Supplemental Data Elements
Supplemental Data Element ID: fe7bab72-cc69-44bb-a678-473b24811e67
Usage Code: Supplemental Data
Description: No description provided
Logic Definition: SDE Ethnicity
Supplemental Data Element ID: 2486f84d-df90-489b-8f5c-e55cdcfb361e
Usage Code: Supplemental Data
Description: No description provided
Logic Definition: SDE Payer
Supplemental Data Element ID: bb0949c4-1f7b-4ce2-a988-c2e60f1a0079
Usage Code: Supplemental Data
Description: No description provided
Logic Definition: SDE Race
Supplemental Data Element ID: 742028bc-5aa5-4a5b-927d-be1908e10aaf
Usage Code: Supplemental Data
Description: No description provided
Logic Definition: SDE Sex
Measure Logic
Primary Library TSC Component Library
Dependency Description: Library Global
Resource: MAT Global Common Functions FHIR Libraryversion: null5.0.000)
Canonical URL: http://hl7.org/fhir/uv/cqm/Library/MATGlobalCommonFunctions|5.0.000
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 SDE
Resource: Supplemental Data Elementsversion: null2.0.000)
Canonical URL: http://hl7.org/fhir/uv/cqm/Library/SupplementalDataElements|2.0.000
Dependency Description: Code system ConditionClinicalStatusCodes
Resource: Condition Clinical Status Codes
Canonical URL: http://terminology.hl7.org/CodeSystem/condition-clinical
Dependency Description: Code system CPT
Resource: Current Procedural Terminology (CPT®)
Canonical URL: http://www.ama-assn.org/go/cpt
Dependency Description: Value set Tobacco Use Screening
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1278
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1278
Dependency Description: Value set Tobacco Non-User
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1189
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1189
Dependency Description: Value set Tobacco User
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1170
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1170
Dependency Description: Value set Tobacco Use Cessation Counseling
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.509
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.509
Dependency Description: Value set Tobacco Use Cessation Pharmacotherapy
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1190
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1190
Dependency Description: Value set Medical Reason
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1007
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1007
Dependency Description: Value set Home Healthcare Services
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016
Dependency Description: Value set Occupational Therapy Evaluation
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1011
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1011
Dependency Description: Value set Office Visit
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001
Dependency Description: Value set Ophthalmological Services
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1285
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1285
Dependency Description: Value set Physical Therapy Evaluation
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1022
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1022
Dependency Description: Value set Psych Visit - Diagnostic Evaluation
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1492
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1492
Dependency Description: Value set Psych Visit - Psychotherapy
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1496
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1496
Dependency Description: Value set Psychoanalysis
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1141
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1141
Dependency Description: Value set Speech and Hearing Evaluation
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1530
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1530
Dependency Description: Value set Annual Wellness Visit
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240
Dependency Description: Value set Preventive Care Services - Established Office Visit, 18 and Up
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025
Dependency Description: Value set Preventive Care Services - Group Counseling
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1027
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1027
Dependency Description: Value set Preventive Care Services - Other
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1030
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1030
Dependency Description: Value set Preventive Care Services-Individual Counseling
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1026
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1026
Dependency Description: Value set Preventive Care Services-Initial Office Visit, 18 and Up
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023
Dependency Description: Value set Payer
Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
Direct Reference Code Code: active
System: http://terminology.hl7.org/CodeSystem/condition-clinical
Direct Reference Code Display: Health behavior intervention, individual, face-to-face; initial 30 minutes
Code: 96158
System: http://www.ama-assn.org/go/cpt
Direct Reference Code Display: Health behavior assessment, or re-assessment (ie, health-focused clinical interview, behavioral observations, clinical decision making)
Code: 96156
System: http://www.ama-assn.org/go/cpt
Parameter Name: Measurement Period
Use: In
Min Cardinality: 0
Max Cardinality: 1
Type: Period
Parameter Name: Numerator 3
Use: Out
Min Cardinality: 0
Max Cardinality: 1
Type: boolean
Parameter Name: Denominator Exceptions 1
Use: Out
Min Cardinality: 0
Max Cardinality: 1
Type: boolean
Parameter Name: Numerator 1
Use: Out
Min Cardinality: 0
Max Cardinality: 1
Type: boolean
Parameter Name: Numerator 2
Use: Out
Min Cardinality: 0
Max Cardinality: 1
Type: boolean
Parameter Name: SDE Race
Use: Out
Min Cardinality: 0
Max Cardinality: *
Type: Coding
Parameter Name: SDE Sex
Use: Out
Min Cardinality: 0
Max Cardinality: 1
Type: Coding
Parameter Name: Denominator 3
Use: Out
Min Cardinality: 0
Max Cardinality: 1
Type: boolean
Parameter Name: Denominator 2
Use: Out
Min Cardinality: 0
Max Cardinality: 1
Type: boolean
Parameter Name: SDE Payer
Use: Out
Min Cardinality: 0
Max Cardinality: *
Type: Resource
Parameter Name: Initial Population
Use: Out
Min Cardinality: 0
Max Cardinality: 1
Type: boolean
Parameter Name: SDE Ethnicity
Use: Out
Min Cardinality: 0
Max Cardinality: *
Type: Coding
Parameter Name: Denominator Exceptions 2
Use: Out
Min Cardinality: 0
Max Cardinality: 1
Type: boolean
Parameter Name: Denominator Exceptions 3
Use: Out
Min Cardinality: 0
Max Cardinality: 1
Type: boolean
Parameter Name: Denominator 1
Use: Out
Min Cardinality: 0
Max Cardinality: 1
Type: boolean
Measure Logic Data Requirements
Data Requirement Type: Observation
Profile(s): Observation
Must Support Elements: code, effective, value, issued, status
Code Filter(s):
Path: code
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1278
Data Requirement Type: Encounter
Profile(s): Encounter
Must Support Elements: type, period, status
Code Filter(s):
Path: type
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.509
Data Requirement Type: Encounter
Profile(s): Encounter
Must Support Elements: type, period, status
Code Filter(s):
Path: type
Code:
Data Requirement Type: Encounter
Profile(s): Encounter
Must Support Elements: type, period, status
Code Filter(s):
Path: type
Code:
Data Requirement Type: Encounter
Profile(s): Encounter
Must Support Elements: type, period, status
Code Filter(s):
Path: type
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016
Data Requirement Type: Encounter
Profile(s): Encounter
Must Support Elements: type, period, status
Code Filter(s):
Path: type
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1011
Data Requirement Type: Encounter
Profile(s): Encounter
Must Support Elements: type, period, status
Code Filter(s):
Path: type
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001
Data Requirement Type: Encounter
Profile(s): Encounter
Must Support Elements: type, period, status
Code Filter(s):
Path: type
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1285
Data Requirement Type: Encounter
Profile(s): Encounter
Must Support Elements: type, period, status
Code Filter(s):
Path: type
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1022
Data Requirement Type: Encounter
Profile(s): Encounter
Must Support Elements: type, period, status
Code Filter(s):
Path: type
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1492
Data Requirement Type: Encounter
Profile(s): Encounter
Must Support Elements: type, period, status
Code Filter(s):
Path: type
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1496
Data Requirement Type: Encounter
Profile(s): Encounter
Must Support Elements: type, period, status
Code Filter(s):
Path: type
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1141
Data Requirement Type: Encounter
Profile(s): Encounter
Must Support Elements: type, period, status
Code Filter(s):
Path: type
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1530
Data Requirement Type: Encounter
Profile(s): Encounter
Must Support Elements: type, period, status
Code Filter(s):
Path: type
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240
Data Requirement Type: Encounter
Profile(s): Encounter
Must Support Elements: type, period, status
Code Filter(s):
Path: type
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025
Data Requirement Type: Encounter
Profile(s): Encounter
Must Support Elements: type, period, status
Code Filter(s):
Path: type
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1027
Data Requirement Type: Encounter
Profile(s): Encounter
Must Support Elements: type, period, status
Code Filter(s):
Path: type
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1030
Data Requirement Type: Encounter
Profile(s): Encounter
Must Support Elements: type, period, status
Code Filter(s):
Path: type
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1026
Data Requirement Type: Encounter
Profile(s): Encounter
Must Support Elements: type, period, status
Code Filter(s):
Path: type
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023
Data Requirement Type: MedicationRequest
Profile(s): MedicationRequest
Must Support Elements: medication, authoredOn, status, doNotPerform, statusReason
Code Filter(s):
Path: medication
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1190
Data Requirement Type: MedicationRequest
Profile(s): MedicationRequest
Must Support Elements: medication.reference, authoredOn, status, doNotPerform, statusReason
Data Requirement Type: Medication
Profile(s): Medication
Must Support Elements: id, code
Data Requirement Type: Patient
Profile(s): Patient
Must Support Elements: url, extension, value, birthDate
Data Requirement Type: Condition
Profile(s): Condition
Must Support Elements: clinicalStatus
Data Requirement Type: Coverage
Profile(s): Coverage
Must Support Elements: type, period
Code Filter(s):
Path: type
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
Data Requirement Type: Procedure
Profile(s): Procedure
Must Support Elements: code, performed, status, statusReason
Code Filter(s):
Path: code
ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.509
Measure Logic Definitions
Logic Definition Library Name: TSCComponent
define "Most Recent Tobacco Use Screening Indicates Tobacco Non User":   ( Last(["Observation": "Tobacco Use Screening"] TobaccoUseScreening         where Global."Normalize Interval"(TobaccoUseScreening.effective)overlaps "Measurement Period"         sort by start of Global."Normalize Interval"(effective)     )) MostRecentTobaccoUseScreening       where MostRecentTobaccoUseScreening.value in "Tobacco Non-User"
Logic Definition Library Name: TSCComponent
define "Most Recent Tobacco Use Screening Indicates Tobacco User":   ( Last(["Observation": "Tobacco Use Screening"] TobaccoUseScreening         where Global."Normalize Interval"(TobaccoUseScreening.effective)overlaps "Measurement Period"         sort by start of Global."Normalize Interval"(effective)     )) MostRecentTobaccoUseScreening       where MostRecentTobaccoUseScreening.value in "Tobacco User"
Logic Definition Library Name: TSCComponent
// MedicationStatement is not available in R5, known publication issue //define "Active Pharmacotherapy for Tobacco Cessation": //  ["MedicationStatement": "Tobacco Use Cessation Pharmacotherapy"] TakingCessationPharmacotherapy //      where Global."Normalize Interval" ( TakingCessationPharmacotherapy.effective ) overlaps after "Measurement Period" //        and TakingCessationPharmacotherapy.status in { 'active', 'completed' }  define "Tobacco Cessation Counseling Given":   ["Encounter": "Tobacco Use Cessation Counseling"] TobaccoCessationCounseling       where TobaccoCessationCounseling.period during "Measurement Period"         and TobaccoCessationCounseling.status = 'finished'
Logic Definition Library Name: TSCComponent
define "Tobacco Cessation Pharmacotherapy Ordered":   ["MedicationRequest": "Tobacco Use Cessation Pharmacotherapy"] CessationPharmacotherapyOrdered       where CessationPharmacotherapyOrdered.authoredOn during "Measurement Period"         and CessationPharmacotherapyOrdered.status = 'active'
Logic Definition Library Name: TSCComponent
define "Numerator 3":   "Most Recent Tobacco Use Screening Indicates Tobacco Non User" is not null       or ( "Most Recent Tobacco Use Screening Indicates Tobacco User" is not null           and ( exists "Tobacco Cessation Counseling Given"               or exists "Tobacco Cessation Pharmacotherapy Ordered"               //or exists "Active Pharmacotherapy for Tobacco Cessation"           )       )
Logic Definition Library Name: TSCComponent
define "Medical Reason for Not Screening for Tobacco Use":   ["Observation": "Tobacco Use Screening"] NoTobaccoUseScreening       where NoTobaccoUseScreening.issued during "Measurement Period"         and "Not Done"(NoTobaccoUseScreening)         and "Not Done Reason in Medical Reason"(NoTobaccoUseScreening)         and NoTobaccoUseScreening.status = 'final'
Logic Definition Library Name: TSCComponent
//or exists "Active Pharmacotherapy for Tobacco Cessation"  define "Has Limited Life Expectancy":   exists ( ["Condition"] LimitedLifeExpectancy         where Global."Prevalence Period" ( LimitedLifeExpectancy ) overlaps after "Measurement Period"           and LimitedLifeExpectancy.clinicalStatus ~ ToConcept(Global."active")     )
Logic Definition Library Name: TSCComponent
define "Denominator Exceptions 1":   exists "Medical Reason for Not Screening for Tobacco Use"       or "Has Limited Life Expectancy"
Logic Definition Library Name: TSCComponent
define "Numerator 1":   "Most Recent Tobacco Use Screening Indicates Tobacco Non User" is not null       or "Most Recent Tobacco Use Screening Indicates Tobacco User" is not null
Logic Definition Library Name: TSCComponent
define "Numerator 2":   exists "Tobacco Cessation Counseling Given"       or exists "Tobacco Cessation Pharmacotherapy Ordered"
Logic Definition Library Name: SupplementalDataElements
define "SDE Race":   (flatten (       Patient.extension Extension         where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'           return Extension.extension     )) E       where E.url = 'ombCategory'         or E.url = 'detailed'       return E.value as Coding
Logic Definition Library Name: TSCComponent
define "SDE Race":   SDE."SDE Race"
Logic Definition Library Name: SupplementalDataElements
define "SDE Sex":   case       when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }       when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }       else null     end
Logic Definition Library Name: TSCComponent
define "SDE Sex":   SDE."SDE Sex"
Logic Definition Library Name: TSCComponent
define "Office Based Visit During Measurement Period":   ( ["Encounter": "Health behavior intervention, individual, face-to-face; initial 30 minutes"]       union ["Encounter": "Health behavior assessment, or re-assessment (ie, health-focused clinical interview, behavioral observations, clinical decision making)"]       union ["Encounter": "Home Healthcare Services"]       union ["Encounter": "Occupational Therapy Evaluation"]       union ["Encounter": "Office Visit"]       union ["Encounter": "Ophthalmological Services"]       union ["Encounter": "Physical Therapy Evaluation"]       union ["Encounter": "Psych Visit - Diagnostic Evaluation"]       union ["Encounter": "Psych Visit - Psychotherapy"]       union ["Encounter": "Psychoanalysis"]       union ["Encounter": "Speech and Hearing Evaluation"] ) OfficeBasedEncounter       where OfficeBasedEncounter.period during "Measurement Period"         and OfficeBasedEncounter.status = 'finished'
Logic Definition Library Name: TSCComponent
define "Preventive Visit During Measurement Period":   ( ["Encounter": "Annual Wellness Visit"]       union ["Encounter": "Preventive Care Services - Established Office Visit, 18 and Up"]       union ["Encounter": "Preventive Care Services - Group Counseling"]       union ["Encounter": "Preventive Care Services - Other"]       union ["Encounter": "Preventive Care Services-Individual Counseling"]       union ["Encounter": "Preventive Care Services-Initial Office Visit, 18 and Up"] ) PreventiveEncounter       where PreventiveEncounter.period during "Measurement Period"         and PreventiveEncounter.status = 'finished'
Logic Definition Library Name: TSCComponent
define "Initial Population":   exists ( ["Patient"] BirthDate         where Global."CalendarAgeInYearsAt" ( FHIRHelpers.ToDate ( BirthDate.birthDate ), start of "Measurement Period" ) >= 18     )       and ( Count("Office Based Visit During Measurement Period")>= 2           or exists "Preventive Visit During Measurement Period"       )
Logic Definition Library Name: TSCComponent
define "Denominator 3":   "Initial Population"
Logic Definition Library Name: TSCComponent
define "Denominator 2":   "Initial Population"       and "Most Recent Tobacco Use Screening Indicates Tobacco User" is not null
Logic Definition Library Name: SupplementalDataElements
define "SDE Payer":   [Coverage: type in "Payer"] Payer         return {           code: Payer.type,           period: Payer.period         }
Logic Definition Library Name: TSCComponent
define "SDE Payer":   SDE."SDE Payer"
Logic Definition Library Name: SupplementalDataElements
define "SDE Ethnicity":   (flatten (       Patient.extension Extension         where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'           return Extension.extension     )) E       where E.url = 'ombCategory'         or E.url = 'detailed'       return E.value as Coding
Logic Definition Library Name: TSCComponent
define "SDE Ethnicity":   SDE."SDE Ethnicity"
Logic Definition Library Name: TSCComponent
define "Medical Reason for Not Counseling Tobacco User":   ["Procedure": "Tobacco Use Cessation Counseling"] NoTobaccoCessationCounseling       where Global."Normalize Interval" ( NoTobaccoCessationCounseling.performed ) starts during "Measurement Period"         and ( ( NoTobaccoCessationCounseling.status = 'not-done'               and NoTobaccoCessationCounseling.statusReason in "Medical Reason"           )             or ( "Not Done"(NoTobaccoCessationCounseling)                 and "Not Done Reason in Medical Reason"(NoTobaccoCessationCounseling)             )         )
Logic Definition Library Name: TSCComponent
define "Medical Reason for Not Ordering Tobacco Cessation Pharmacotherapy":   ["MedicationRequest": "Tobacco Use Cessation Pharmacotherapy"] NoCessationPharmacotherapyOrdered       where NoCessationPharmacotherapyOrdered.authoredOn during "Measurement Period"         and NoCessationPharmacotherapyOrdered.status = 'completed'         and ( ( "Not Done"(NoCessationPharmacotherapyOrdered)               and "Not Done Reason in Medical Reason"(NoCessationPharmacotherapyOrdered)           )             or ( NoCessationPharmacotherapyOrdered.doNotPerform = true                 and NoCessationPharmacotherapyOrdered.statusReason in "Medical Reason"             )         )
Logic Definition Library Name: TSCComponent
define "Denominator Exceptions 2":   exists "Medical Reason for Not Counseling Tobacco User"       or exists "Medical Reason for Not Ordering Tobacco Cessation Pharmacotherapy"       or "Has Limited Life Expectancy"
Logic Definition Library Name: TSCComponent
define "Denominator Exceptions 3":   exists "Medical Reason for Not Screening for Tobacco Use"       or exists "Medical Reason for Not Counseling Tobacco User"       or exists "Medical Reason for Not Ordering Tobacco Cessation Pharmacotherapy"       or "Has Limited Life Expectancy"
Logic Definition Library Name: TSCComponent
define "Denominator 1":   "Initial Population"
Logic Definition Library Name: FHIRHelpers
define function ToString(value string): value.value
Logic Definition Library Name: FHIRHelpers
/* @description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period) value to a CQL DateTime Interval @comment: If the start value of the given period is unspecified, the starting boundary of the resulting interval will be open (meaning the start of the interval is unknown, as opposed to interpreted as the beginning of time). */ define function ToInterval(period FHIR.Period):     if period is null then         null     else         if period."start" is null then             Interval(period."start".value, period."end".value]         else             Interval[period."start".value, period."end".value]
Logic Definition Library Name: FHIRHelpers
define function ToString(value EncounterStatus): value.value
Logic Definition Library Name: FHIRHelpers
/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept):     if concept is null then         null     else         System.Concept {             codes: concept.coding C return ToCode(C),             display: concept.text.value         }
Logic Definition Library Name: FHIRHelpers
/* @description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code. */ define function ToCode(coding FHIR.Coding):     if coding is null then         null     else         System.Code {           code: coding.code.value,           system: coding.system.value,           version: coding.version.value,           display: coding.display.value         }
Logic Definition Library Name: FHIRHelpers
define function ToDateTime(value dateTime): value.value
Logic Definition Library Name: FHIRHelpers
define function ToString(value MedicationRequestStatus): value.value
Logic Definition Library Name: FHIRHelpers
define function ToDateTime(value instant): value.value
Logic Definition Library Name: TSCComponent
define function "Not Done"(res DomainResource ):   if ( res R       where ( "GetModiferExtension"(R, 'http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDone').value = true )   ) is not null then true     else false
Logic Definition Library Name: FHIRHelpers
define function ToBoolean(value boolean): value.value
Logic Definition Library Name: TSCComponent
define function "GetModiferExtension"(res DomainResource, url String ):   singleton from "GetModifierExtensions"(res, url)
Logic Definition Library Name: TSCComponent
define function "GetModifierExtensions"(res DomainResource, url String ):   res.modifierExtension E     where E.url = ( url )     return E
Logic Definition Library Name: FHIRHelpers
define function ToString(value uri): value.value
Logic Definition Library Name: TSCComponent
define function "Not Done Reason in Medical Reason"(res DomainResource ):   if ( res R       where "GetModiferExtension"(R, 'http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneReason').value in "Medical Reason"   ) is not null then true     else false
Logic Definition Library Name: FHIRHelpers
define function ToString(value base64Binary): value.value
Logic Definition Library Name: FHIRHelpers
define function ToString(value ObservationStatus): value.value
Logic Definition Library Name: MATGlobalCommonFunctions
define function "Prevalence Period"(condition Condition):   Interval[start of "Normalize Interval"(condition.onset), end of "Normalize Abatement"(condition))
Logic Definition Library Name: MATGlobalCommonFunctions
define function "Normalize Abatement"(condition Condition):  if condition.abatement is FHIR.dateTime then    Interval[FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime), FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime)]  else if condition.abatement is FHIR.Period then    FHIRHelpers.ToInterval(condition.abatement as FHIR.Period)  else if condition.abatement is FHIR.string then     Message(null as Interval<DateTime>, true, '1', 'Error', 'Cannot compute an interval from a String value')  else if condition.abatement is FHIR.Age then   Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age),    FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age) + 1 year)  else if condition.abatement is FHIR.Range then    Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).low),     FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).high) + 1 year)  else if condition.abatement is FHIR.boolean then    Interval[end of "Normalize Interval"(condition.onset), condition.recordedDate)  else null
Logic Definition Library Name: FHIRHelpers
define function ToDate(value date): value.value
Logic Definition Library Name: FHIRHelpers
/* @description: Converts the given FHIR [Quantity](https://hl7.org/fhir/datatypes.html#Quantity)  value to a CQL Quantity @comment: If the given quantity has a comparator specified, a runtime error is raised. If the given quantity has a system other than UCUM (i.e. `http://unitsofmeasure.org`) or CQL calendar units (i.e. `http://hl7.org/fhirpath/CodeSystem/calendar-units`) an error is raised. For UCUM to calendar units, the `ToCalendarUnit` function is used. @seealso: ToCalendarUnit */ define function ToQuantity(quantity FHIR.Quantity):     case         when quantity is null then null         when quantity.value is null then null         when quantity.comparator is not null then             Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')         when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'               or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then             System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }         else             Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' & quantity.unit.value & ' (' & quantity.system.value & '|' & quantity.code.value & ')')     end
Logic Definition Library Name: FHIRHelpers
/* @description: Converts a UCUM definite duration unit to a CQL calendar duration unit using conversions specified in the [quantities](https://cql.hl7.org/02-authorsguide.html#quantities)  topic of the CQL specification. @comment: Note that for durations above days (or weeks), the conversion is understood to be approximate */ define function ToCalendarUnit(unit System.String):     case unit         when 'ms' then 'millisecond'         when 's' then 'second'         when 'min' then 'minute'         when 'h' then 'hour'         when 'd' then 'day'         when 'wk' then 'week'         when 'mo' then 'month'         when 'a' then 'year'         else unit     end
Logic Definition Library Name: FHIRHelpers
define function ToString(value AdministrativeGender): value.value
Logic Definition Library Name: MATGlobalCommonFunctions
define function "CalendarAgeInYearsAt"(BirthDateTime DateTime, AsOf DateTime):  years between ToDate(BirthDateTime)and ToDate(AsOf)
Logic Definition Library Name: MATGlobalCommonFunctions
define function "ToDate"(Value DateTime):  DateTime(year from Value, month from Value, day from Value, 0, 0, 0, 0, timezoneoffset from Value)
Logic Definition Library Name: FHIRHelpers
define function ToString(value ProcedureStatus): value.value
Generated using version 0.4.6 of the sample-content-ig Liquid templates

Source

{
  "resourceType": "Measure",
  "id": "TSCComponent",
  "meta": {
    "profile": [
      "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-proportionmeasure",
      "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-computablemeasure",
      "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-publishablemeasure",
      "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-computablemeasure"
    ]
  },
  "language": "en",
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "contained": [
    {
      "resourceType": "Library",
      "id": "effective-data-requirements",
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding": {
            "system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
            "code": "active"
          }
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding": {
            "system": "http://www.ama-assn.org/go/cpt",
            "code": "96158",
            "display": "Health behavior intervention, individual, face-to-face; initial 30 minutes"
          }
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding": {
            "system": "http://www.ama-assn.org/go/cpt",
            "code": "96156",
            "display": "Health behavior assessment, or re-assessment (ie, health-focused clinical interview, behavioral observations, clinical decision making)"
          }
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "Most Recent Tobacco Use Screening Indicates Tobacco Non User"
            },
            {
              "url": "statement",
              "valueString": "define \"Most Recent Tobacco Use Screening Indicates Tobacco Non User\":   ( Last([\"Observation\": \"Tobacco Use Screening\"] TobaccoUseScreening         where Global.\"Normalize Interval\"(TobaccoUseScreening.effective)overlaps \"Measurement Period\"         sort by start of Global.\"Normalize Interval\"(effective)     )) MostRecentTobaccoUseScreening       where MostRecentTobaccoUseScreening.value in \"Tobacco Non-User\""
            },
            {
              "url": "displaySequence",
              "valueInteger": 0
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "Most Recent Tobacco Use Screening Indicates Tobacco User"
            },
            {
              "url": "statement",
              "valueString": "define \"Most Recent Tobacco Use Screening Indicates Tobacco User\":   ( Last([\"Observation\": \"Tobacco Use Screening\"] TobaccoUseScreening         where Global.\"Normalize Interval\"(TobaccoUseScreening.effective)overlaps \"Measurement Period\"         sort by start of Global.\"Normalize Interval\"(effective)     )) MostRecentTobaccoUseScreening       where MostRecentTobaccoUseScreening.value in \"Tobacco User\""
            },
            {
              "url": "displaySequence",
              "valueInteger": 1
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "Tobacco Cessation Counseling Given"
            },
            {
              "url": "statement",
              "valueString": "// MedicationStatement is not available in R5, known publication issue //define \"Active Pharmacotherapy for Tobacco Cessation\": //  [\"MedicationStatement\": \"Tobacco Use Cessation Pharmacotherapy\"] TakingCessationPharmacotherapy //      where Global.\"Normalize Interval\" ( TakingCessationPharmacotherapy.effective ) overlaps after \"Measurement Period\" //        and TakingCessationPharmacotherapy.status in { 'active', 'completed' }  define \"Tobacco Cessation Counseling Given\":   [\"Encounter\": \"Tobacco Use Cessation Counseling\"] TobaccoCessationCounseling       where TobaccoCessationCounseling.period during \"Measurement Period\"         and TobaccoCessationCounseling.status = 'finished'"
            },
            {
              "url": "displaySequence",
              "valueInteger": 2
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "Tobacco Cessation Pharmacotherapy Ordered"
            },
            {
              "url": "statement",
              "valueString": "define \"Tobacco Cessation Pharmacotherapy Ordered\":   [\"MedicationRequest\": \"Tobacco Use Cessation Pharmacotherapy\"] CessationPharmacotherapyOrdered       where CessationPharmacotherapyOrdered.authoredOn during \"Measurement Period\"         and CessationPharmacotherapyOrdered.status = 'active'"
            },
            {
              "url": "displaySequence",
              "valueInteger": 3
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "Numerator 3"
            },
            {
              "url": "statement",
              "valueString": "define \"Numerator 3\":   \"Most Recent Tobacco Use Screening Indicates Tobacco Non User\" is not null       or ( \"Most Recent Tobacco Use Screening Indicates Tobacco User\" is not null           and ( exists \"Tobacco Cessation Counseling Given\"               or exists \"Tobacco Cessation Pharmacotherapy Ordered\"               //or exists \"Active Pharmacotherapy for Tobacco Cessation\"           )       )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 4
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "Medical Reason for Not Screening for Tobacco Use"
            },
            {
              "url": "statement",
              "valueString": "define \"Medical Reason for Not Screening for Tobacco Use\":   [\"Observation\": \"Tobacco Use Screening\"] NoTobaccoUseScreening       where NoTobaccoUseScreening.issued during \"Measurement Period\"         and \"Not Done\"(NoTobaccoUseScreening)         and \"Not Done Reason in Medical Reason\"(NoTobaccoUseScreening)         and NoTobaccoUseScreening.status = 'final'"
            },
            {
              "url": "displaySequence",
              "valueInteger": 5
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "Has Limited Life Expectancy"
            },
            {
              "url": "statement",
              "valueString": "//or exists \"Active Pharmacotherapy for Tobacco Cessation\"  define \"Has Limited Life Expectancy\":   exists ( [\"Condition\"] LimitedLifeExpectancy         where Global.\"Prevalence Period\" ( LimitedLifeExpectancy ) overlaps after \"Measurement Period\"           and LimitedLifeExpectancy.clinicalStatus ~ ToConcept(Global.\"active\")     )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 6
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "Denominator Exceptions 1"
            },
            {
              "url": "statement",
              "valueString": "define \"Denominator Exceptions 1\":   exists \"Medical Reason for Not Screening for Tobacco Use\"       or \"Has Limited Life Expectancy\""
            },
            {
              "url": "displaySequence",
              "valueInteger": 7
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "Numerator 1"
            },
            {
              "url": "statement",
              "valueString": "define \"Numerator 1\":   \"Most Recent Tobacco Use Screening Indicates Tobacco Non User\" is not null       or \"Most Recent Tobacco Use Screening Indicates Tobacco User\" is not null"
            },
            {
              "url": "displaySequence",
              "valueInteger": 8
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "Numerator 2"
            },
            {
              "url": "statement",
              "valueString": "define \"Numerator 2\":   exists \"Tobacco Cessation Counseling Given\"       or exists \"Tobacco Cessation Pharmacotherapy Ordered\""
            },
            {
              "url": "displaySequence",
              "valueInteger": 9
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "SupplementalDataElements"
            },
            {
              "url": "name",
              "valueString": "SDE Race"
            },
            {
              "url": "statement",
              "valueString": "define \"SDE Race\":   (flatten (       Patient.extension Extension         where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'           return Extension.extension     )) E       where E.url = 'ombCategory'         or E.url = 'detailed'       return E.value as Coding"
            },
            {
              "url": "displaySequence",
              "valueInteger": 10
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "SDE Race"
            },
            {
              "url": "statement",
              "valueString": "define \"SDE Race\":   SDE.\"SDE Race\""
            },
            {
              "url": "displaySequence",
              "valueInteger": 11
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "SupplementalDataElements"
            },
            {
              "url": "name",
              "valueString": "SDE Sex"
            },
            {
              "url": "statement",
              "valueString": "define \"SDE Sex\":   case       when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }       when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }       else null     end"
            },
            {
              "url": "displaySequence",
              "valueInteger": 12
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "SDE Sex"
            },
            {
              "url": "statement",
              "valueString": "define \"SDE Sex\":   SDE.\"SDE Sex\""
            },
            {
              "url": "displaySequence",
              "valueInteger": 13
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "Office Based Visit During Measurement Period"
            },
            {
              "url": "statement",
              "valueString": "define \"Office Based Visit During Measurement Period\":   ( [\"Encounter\": \"Health behavior intervention, individual, face-to-face; initial 30 minutes\"]       union [\"Encounter\": \"Health behavior assessment, or re-assessment (ie, health-focused clinical interview, behavioral observations, clinical decision making)\"]       union [\"Encounter\": \"Home Healthcare Services\"]       union [\"Encounter\": \"Occupational Therapy Evaluation\"]       union [\"Encounter\": \"Office Visit\"]       union [\"Encounter\": \"Ophthalmological Services\"]       union [\"Encounter\": \"Physical Therapy Evaluation\"]       union [\"Encounter\": \"Psych Visit - Diagnostic Evaluation\"]       union [\"Encounter\": \"Psych Visit - Psychotherapy\"]       union [\"Encounter\": \"Psychoanalysis\"]       union [\"Encounter\": \"Speech and Hearing Evaluation\"] ) OfficeBasedEncounter       where OfficeBasedEncounter.period during \"Measurement Period\"         and OfficeBasedEncounter.status = 'finished'"
            },
            {
              "url": "displaySequence",
              "valueInteger": 14
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "Preventive Visit During Measurement Period"
            },
            {
              "url": "statement",
              "valueString": "define \"Preventive Visit During Measurement Period\":   ( [\"Encounter\": \"Annual Wellness Visit\"]       union [\"Encounter\": \"Preventive Care Services - Established Office Visit, 18 and Up\"]       union [\"Encounter\": \"Preventive Care Services - Group Counseling\"]       union [\"Encounter\": \"Preventive Care Services - Other\"]       union [\"Encounter\": \"Preventive Care Services-Individual Counseling\"]       union [\"Encounter\": \"Preventive Care Services-Initial Office Visit, 18 and Up\"] ) PreventiveEncounter       where PreventiveEncounter.period during \"Measurement Period\"         and PreventiveEncounter.status = 'finished'"
            },
            {
              "url": "displaySequence",
              "valueInteger": 15
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "Initial Population"
            },
            {
              "url": "statement",
              "valueString": "define \"Initial Population\":   exists ( [\"Patient\"] BirthDate         where Global.\"CalendarAgeInYearsAt\" ( FHIRHelpers.ToDate ( BirthDate.birthDate ), start of \"Measurement Period\" ) >= 18     )       and ( Count(\"Office Based Visit During Measurement Period\")>= 2           or exists \"Preventive Visit During Measurement Period\"       )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 16
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "Denominator 3"
            },
            {
              "url": "statement",
              "valueString": "define \"Denominator 3\":   \"Initial Population\""
            },
            {
              "url": "displaySequence",
              "valueInteger": 17
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "Denominator 2"
            },
            {
              "url": "statement",
              "valueString": "define \"Denominator 2\":   \"Initial Population\"       and \"Most Recent Tobacco Use Screening Indicates Tobacco User\" is not null"
            },
            {
              "url": "displaySequence",
              "valueInteger": 18
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "SupplementalDataElements"
            },
            {
              "url": "name",
              "valueString": "SDE Payer"
            },
            {
              "url": "statement",
              "valueString": "define \"SDE Payer\":   [Coverage: type in \"Payer\"] Payer         return {           code: Payer.type,           period: Payer.period         }"
            },
            {
              "url": "displaySequence",
              "valueInteger": 19
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "SDE Payer"
            },
            {
              "url": "statement",
              "valueString": "define \"SDE Payer\":   SDE.\"SDE Payer\""
            },
            {
              "url": "displaySequence",
              "valueInteger": 20
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "SupplementalDataElements"
            },
            {
              "url": "name",
              "valueString": "SDE Ethnicity"
            },
            {
              "url": "statement",
              "valueString": "define \"SDE Ethnicity\":   (flatten (       Patient.extension Extension         where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'           return Extension.extension     )) E       where E.url = 'ombCategory'         or E.url = 'detailed'       return E.value as Coding"
            },
            {
              "url": "displaySequence",
              "valueInteger": 21
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "SDE Ethnicity"
            },
            {
              "url": "statement",
              "valueString": "define \"SDE Ethnicity\":   SDE.\"SDE Ethnicity\""
            },
            {
              "url": "displaySequence",
              "valueInteger": 22
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "Medical Reason for Not Counseling Tobacco User"
            },
            {
              "url": "statement",
              "valueString": "define \"Medical Reason for Not Counseling Tobacco User\":   [\"Procedure\": \"Tobacco Use Cessation Counseling\"] NoTobaccoCessationCounseling       where Global.\"Normalize Interval\" ( NoTobaccoCessationCounseling.performed ) starts during \"Measurement Period\"         and ( ( NoTobaccoCessationCounseling.status = 'not-done'               and NoTobaccoCessationCounseling.statusReason in \"Medical Reason\"           )             or ( \"Not Done\"(NoTobaccoCessationCounseling)                 and \"Not Done Reason in Medical Reason\"(NoTobaccoCessationCounseling)             )         )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 23
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "Medical Reason for Not Ordering Tobacco Cessation Pharmacotherapy"
            },
            {
              "url": "statement",
              "valueString": "define \"Medical Reason for Not Ordering Tobacco Cessation Pharmacotherapy\":   [\"MedicationRequest\": \"Tobacco Use Cessation Pharmacotherapy\"] NoCessationPharmacotherapyOrdered       where NoCessationPharmacotherapyOrdered.authoredOn during \"Measurement Period\"         and NoCessationPharmacotherapyOrdered.status = 'completed'         and ( ( \"Not Done\"(NoCessationPharmacotherapyOrdered)               and \"Not Done Reason in Medical Reason\"(NoCessationPharmacotherapyOrdered)           )             or ( NoCessationPharmacotherapyOrdered.doNotPerform = true                 and NoCessationPharmacotherapyOrdered.statusReason in \"Medical Reason\"             )         )"
            },
            {
              "url": "displaySequence",
              "valueInteger": 24
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "Denominator Exceptions 2"
            },
            {
              "url": "statement",
              "valueString": "define \"Denominator Exceptions 2\":   exists \"Medical Reason for Not Counseling Tobacco User\"       or exists \"Medical Reason for Not Ordering Tobacco Cessation Pharmacotherapy\"       or \"Has Limited Life Expectancy\""
            },
            {
              "url": "displaySequence",
              "valueInteger": 25
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "Denominator Exceptions 3"
            },
            {
              "url": "statement",
              "valueString": "define \"Denominator Exceptions 3\":   exists \"Medical Reason for Not Screening for Tobacco Use\"       or exists \"Medical Reason for Not Counseling Tobacco User\"       or exists \"Medical Reason for Not Ordering Tobacco Cessation Pharmacotherapy\"       or \"Has Limited Life Expectancy\""
            },
            {
              "url": "displaySequence",
              "valueInteger": 26
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "Denominator 1"
            },
            {
              "url": "statement",
              "valueString": "define \"Denominator 1\":   \"Initial Population\""
            },
            {
              "url": "displaySequence",
              "valueInteger": 27
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "FHIRHelpers"
            },
            {
              "url": "name",
              "valueString": "ToString"
            },
            {
              "url": "statement",
              "valueString": "define function ToString(value string): value.value"
            },
            {
              "url": "displaySequence",
              "valueInteger": 28
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "FHIRHelpers"
            },
            {
              "url": "name",
              "valueString": "ToInterval"
            },
            {
              "url": "statement",
              "valueString": "/* @description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period) value to a CQL DateTime Interval @comment: If the start value of the given period is unspecified, the starting boundary of the resulting interval will be open (meaning the start of the interval is unknown, as opposed to interpreted as the beginning of time). */ define function ToInterval(period FHIR.Period):     if period is null then         null     else         if period.\"start\" is null then             Interval(period.\"start\".value, period.\"end\".value]         else             Interval[period.\"start\".value, period.\"end\".value]"
            },
            {
              "url": "displaySequence",
              "valueInteger": 29
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "FHIRHelpers"
            },
            {
              "url": "name",
              "valueString": "ToString"
            },
            {
              "url": "statement",
              "valueString": "define function ToString(value EncounterStatus): value.value"
            },
            {
              "url": "displaySequence",
              "valueInteger": 30
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "FHIRHelpers"
            },
            {
              "url": "name",
              "valueString": "ToConcept"
            },
            {
              "url": "statement",
              "valueString": "/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept):     if concept is null then         null     else         System.Concept {             codes: concept.coding C return ToCode(C),             display: concept.text.value         }"
            },
            {
              "url": "displaySequence",
              "valueInteger": 31
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "FHIRHelpers"
            },
            {
              "url": "name",
              "valueString": "ToCode"
            },
            {
              "url": "statement",
              "valueString": "/* @description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code. */ define function ToCode(coding FHIR.Coding):     if coding is null then         null     else         System.Code {           code: coding.code.value,           system: coding.system.value,           version: coding.version.value,           display: coding.display.value         }"
            },
            {
              "url": "displaySequence",
              "valueInteger": 32
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "FHIRHelpers"
            },
            {
              "url": "name",
              "valueString": "ToDateTime"
            },
            {
              "url": "statement",
              "valueString": "define function ToDateTime(value dateTime): value.value"
            },
            {
              "url": "displaySequence",
              "valueInteger": 33
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "FHIRHelpers"
            },
            {
              "url": "name",
              "valueString": "ToString"
            },
            {
              "url": "statement",
              "valueString": "define function ToString(value MedicationRequestStatus): value.value"
            },
            {
              "url": "displaySequence",
              "valueInteger": 34
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "FHIRHelpers"
            },
            {
              "url": "name",
              "valueString": "ToDateTime"
            },
            {
              "url": "statement",
              "valueString": "define function ToDateTime(value instant): value.value"
            },
            {
              "url": "displaySequence",
              "valueInteger": 35
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "Not Done"
            },
            {
              "url": "statement",
              "valueString": "define function \"Not Done\"(res DomainResource ):   if ( res R       where ( \"GetModiferExtension\"(R, 'http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDone').value = true )   ) is not null then true     else false"
            },
            {
              "url": "displaySequence",
              "valueInteger": 36
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "FHIRHelpers"
            },
            {
              "url": "name",
              "valueString": "ToBoolean"
            },
            {
              "url": "statement",
              "valueString": "define function ToBoolean(value boolean): value.value"
            },
            {
              "url": "displaySequence",
              "valueInteger": 37
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "GetModiferExtension"
            },
            {
              "url": "statement",
              "valueString": "define function \"GetModiferExtension\"(res DomainResource, url String ):   singleton from \"GetModifierExtensions\"(res, url)"
            },
            {
              "url": "displaySequence",
              "valueInteger": 38
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "GetModifierExtensions"
            },
            {
              "url": "statement",
              "valueString": "define function \"GetModifierExtensions\"(res DomainResource, url String ):   res.modifierExtension E     where E.url = ( url )     return E"
            },
            {
              "url": "displaySequence",
              "valueInteger": 39
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "FHIRHelpers"
            },
            {
              "url": "name",
              "valueString": "ToString"
            },
            {
              "url": "statement",
              "valueString": "define function ToString(value uri): value.value"
            },
            {
              "url": "displaySequence",
              "valueInteger": 40
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "TSCComponent"
            },
            {
              "url": "name",
              "valueString": "Not Done Reason in Medical Reason"
            },
            {
              "url": "statement",
              "valueString": "define function \"Not Done Reason in Medical Reason\"(res DomainResource ):   if ( res R       where \"GetModiferExtension\"(R, 'http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneReason').value in \"Medical Reason\"   ) is not null then true     else false"
            },
            {
              "url": "displaySequence",
              "valueInteger": 41
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "FHIRHelpers"
            },
            {
              "url": "name",
              "valueString": "ToString"
            },
            {
              "url": "statement",
              "valueString": "define function ToString(value base64Binary): value.value"
            },
            {
              "url": "displaySequence",
              "valueInteger": 42
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "FHIRHelpers"
            },
            {
              "url": "name",
              "valueString": "ToString"
            },
            {
              "url": "statement",
              "valueString": "define function ToString(value ObservationStatus): value.value"
            },
            {
              "url": "displaySequence",
              "valueInteger": 43
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "MATGlobalCommonFunctions"
            },
            {
              "url": "name",
              "valueString": "Prevalence Period"
            },
            {
              "url": "statement",
              "valueString": "define function \"Prevalence Period\"(condition Condition):   Interval[start of \"Normalize Interval\"(condition.onset), end of \"Normalize Abatement\"(condition))"
            },
            {
              "url": "displaySequence",
              "valueInteger": 44
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "MATGlobalCommonFunctions"
            },
            {
              "url": "name",
              "valueString": "Normalize Abatement"
            },
            {
              "url": "statement",
              "valueString": "define function \"Normalize Abatement\"(condition Condition):  if condition.abatement is FHIR.dateTime then    Interval[FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime), FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime)]  else if condition.abatement is FHIR.Period then    FHIRHelpers.ToInterval(condition.abatement as FHIR.Period)  else if condition.abatement is FHIR.string then     Message(null as Interval<DateTime>, true, '1', 'Error', 'Cannot compute an interval from a String value')  else if condition.abatement is FHIR.Age then   Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age),    FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age) + 1 year)  else if condition.abatement is FHIR.Range then    Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).low),     FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).high) + 1 year)  else if condition.abatement is FHIR.boolean then    Interval[end of \"Normalize Interval\"(condition.onset), condition.recordedDate)  else null"
            },
            {
              "url": "displaySequence",
              "valueInteger": 45
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "FHIRHelpers"
            },
            {
              "url": "name",
              "valueString": "ToDate"
            },
            {
              "url": "statement",
              "valueString": "define function ToDate(value date): value.value"
            },
            {
              "url": "displaySequence",
              "valueInteger": 46
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "FHIRHelpers"
            },
            {
              "url": "name",
              "valueString": "ToQuantity"
            },
            {
              "url": "statement",
              "valueString": "/* @description: Converts the given FHIR [Quantity](https://hl7.org/fhir/datatypes.html#Quantity)  value to a CQL Quantity @comment: If the given quantity has a comparator specified, a runtime error is raised. If the given quantity has a system other than UCUM (i.e. `http://unitsofmeasure.org`) or CQL calendar units (i.e. `http://hl7.org/fhirpath/CodeSystem/calendar-units`) an error is raised. For UCUM to calendar units, the `ToCalendarUnit` function is used. @seealso: ToCalendarUnit */ define function ToQuantity(quantity FHIR.Quantity):     case         when quantity is null then null         when quantity.value is null then null         when quantity.comparator is not null then             Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')         when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'               or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then             System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }         else             Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' & quantity.unit.value & ' (' & quantity.system.value & '|' & quantity.code.value & ')')     end"
            },
            {
              "url": "displaySequence",
              "valueInteger": 47
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "FHIRHelpers"
            },
            {
              "url": "name",
              "valueString": "ToCalendarUnit"
            },
            {
              "url": "statement",
              "valueString": "/* @description: Converts a UCUM definite duration unit to a CQL calendar duration unit using conversions specified in the [quantities](https://cql.hl7.org/02-authorsguide.html#quantities)  topic of the CQL specification. @comment: Note that for durations above days (or weeks), the conversion is understood to be approximate */ define function ToCalendarUnit(unit System.String):     case unit         when 'ms' then 'millisecond'         when 's' then 'second'         when 'min' then 'minute'         when 'h' then 'hour'         when 'd' then 'day'         when 'wk' then 'week'         when 'mo' then 'month'         when 'a' then 'year'         else unit     end"
            },
            {
              "url": "displaySequence",
              "valueInteger": 48
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "FHIRHelpers"
            },
            {
              "url": "name",
              "valueString": "ToString"
            },
            {
              "url": "statement",
              "valueString": "define function ToString(value AdministrativeGender): value.value"
            },
            {
              "url": "displaySequence",
              "valueInteger": 49
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "MATGlobalCommonFunctions"
            },
            {
              "url": "name",
              "valueString": "CalendarAgeInYearsAt"
            },
            {
              "url": "statement",
              "valueString": "define function \"CalendarAgeInYearsAt\"(BirthDateTime DateTime, AsOf DateTime):  years between ToDate(BirthDateTime)and ToDate(AsOf)"
            },
            {
              "url": "displaySequence",
              "valueInteger": 50
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "MATGlobalCommonFunctions"
            },
            {
              "url": "name",
              "valueString": "ToDate"
            },
            {
              "url": "statement",
              "valueString": "define function \"ToDate\"(Value DateTime):  DateTime(year from Value, month from Value, day from Value, 0, 0, 0, 0, timezoneoffset from Value)"
            },
            {
              "url": "displaySequence",
              "valueInteger": 51
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension": [
            {
              "url": "libraryName",
              "valueString": "FHIRHelpers"
            },
            {
              "url": "name",
              "valueString": "ToString"
            },
            {
              "url": "statement",
              "valueString": "define function ToString(value ProcedureStatus): value.value"
            },
            {
              "url": "displaySequence",
              "valueInteger": 52
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        }
      ],
      "name": "EffectiveDataRequirements",
      "status": "active",
      "type": {
        "coding": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/library-type",
            "code": "module-definition"
          }
        ]
      },
      "relatedArtifact": [
        {
          "type": "depends-on",
          "display": "Library Global",
          "resource": "http://hl7.org/fhir/uv/cqm/Library/MATGlobalCommonFunctions|5.0.000"
        },
        {
          "type": "depends-on",
          "display": "Library FHIRHelpers",
          "resource": "http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1"
        },
        {
          "type": "depends-on",
          "display": "Library SDE",
          "resource": "http://hl7.org/fhir/uv/cqm/Library/SupplementalDataElements|2.0.000"
        },
        {
          "type": "depends-on",
          "display": "Code system ConditionClinicalStatusCodes",
          "resource": "http://terminology.hl7.org/CodeSystem/condition-clinical"
        },
        {
          "type": "depends-on",
          "display": "Code system CPT",
          "resource": "http://www.ama-assn.org/go/cpt"
        },
        {
          "type": "depends-on",
          "display": "Value set Tobacco Use Screening",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1278"
        },
        {
          "type": "depends-on",
          "display": "Value set Tobacco Non-User",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1189"
        },
        {
          "type": "depends-on",
          "display": "Value set Tobacco User",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1170"
        },
        {
          "type": "depends-on",
          "display": "Value set Tobacco Use Cessation Counseling",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.509"
        },
        {
          "type": "depends-on",
          "display": "Value set Tobacco Use Cessation Pharmacotherapy",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1190"
        },
        {
          "type": "depends-on",
          "display": "Value set Medical Reason",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1007"
        },
        {
          "type": "depends-on",
          "display": "Value set Home Healthcare Services",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016"
        },
        {
          "type": "depends-on",
          "display": "Value set Occupational Therapy Evaluation",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1011"
        },
        {
          "type": "depends-on",
          "display": "Value set Office Visit",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001"
        },
        {
          "type": "depends-on",
          "display": "Value set Ophthalmological Services",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1285"
        },
        {
          "type": "depends-on",
          "display": "Value set Physical Therapy Evaluation",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1022"
        },
        {
          "type": "depends-on",
          "display": "Value set Psych Visit - Diagnostic Evaluation",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1492"
        },
        {
          "type": "depends-on",
          "display": "Value set Psych Visit - Psychotherapy",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1496"
        },
        {
          "type": "depends-on",
          "display": "Value set Psychoanalysis",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1141"
        },
        {
          "type": "depends-on",
          "display": "Value set Speech and Hearing Evaluation",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1530"
        },
        {
          "type": "depends-on",
          "display": "Value set Annual Wellness Visit",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240"
        },
        {
          "type": "depends-on",
          "display": "Value set Preventive Care Services - Established Office Visit, 18 and Up",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025"
        },
        {
          "type": "depends-on",
          "display": "Value set Preventive Care Services - Group Counseling",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1027"
        },
        {
          "type": "depends-on",
          "display": "Value set Preventive Care Services - Other",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1030"
        },
        {
          "type": "depends-on",
          "display": "Value set Preventive Care Services-Individual Counseling",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1026"
        },
        {
          "type": "depends-on",
          "display": "Value set Preventive Care Services-Initial Office Visit, 18 and Up",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023"
        },
        {
          "type": "depends-on",
          "display": "Value set Payer",
          "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"
        }
      ],
      "parameter": [
        {
          "name": "Measurement Period",
          "use": "in",
          "min": 0,
          "max": "1",
          "type": "Period"
        },
        {
          "name": "Numerator 3",
          "use": "out",
          "min": 0,
          "max": "1",
          "type": "boolean"
        },
        {
          "name": "Denominator Exceptions 1",
          "use": "out",
          "min": 0,
          "max": "1",
          "type": "boolean"
        },
        {
          "name": "Numerator 1",
          "use": "out",
          "min": 0,
          "max": "1",
          "type": "boolean"
        },
        {
          "name": "Numerator 2",
          "use": "out",
          "min": 0,
          "max": "1",
          "type": "boolean"
        },
        {
          "name": "SDE Race",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Coding"
        },
        {
          "name": "SDE Sex",
          "use": "out",
          "min": 0,
          "max": "1",
          "type": "Coding"
        },
        {
          "name": "Denominator 3",
          "use": "out",
          "min": 0,
          "max": "1",
          "type": "boolean"
        },
        {
          "name": "Denominator 2",
          "use": "out",
          "min": 0,
          "max": "1",
          "type": "boolean"
        },
        {
          "name": "SDE Payer",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Resource"
        },
        {
          "name": "Initial Population",
          "use": "out",
          "min": 0,
          "max": "1",
          "type": "boolean"
        },
        {
          "name": "SDE Ethnicity",
          "use": "out",
          "min": 0,
          "max": "*",
          "type": "Coding"
        },
        {
          "name": "Denominator Exceptions 2",
          "use": "out",
          "min": 0,
          "max": "1",
          "type": "boolean"
        },
        {
          "name": "Denominator Exceptions 3",
          "use": "out",
          "min": 0,
          "max": "1",
          "type": "boolean"
        },
        {
          "name": "Denominator 1",
          "use": "out",
          "min": 0,
          "max": "1",
          "type": "boolean"
        }
      ],
      "dataRequirement": [
        {
          "type": "Observation",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport": [
            "code",
            "effective",
            "value",
            "issued",
            "status"
          ],
          "codeFilter": [
            {
              "path": "code",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1278"
            }
          ]
        },
        {
          "type": "Encounter",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/Encounter"
          ],
          "mustSupport": [
            "type",
            "period",
            "status"
          ],
          "codeFilter": [
            {
              "path": "type",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.509"
            }
          ]
        },
        {
          "type": "Encounter",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/Encounter"
          ],
          "mustSupport": [
            "type",
            "period",
            "status"
          ],
          "codeFilter": [
            {
              "path": "type",
              "code": [
                {
                  "system": "http://www.ama-assn.org/go/cpt",
                  "code": "96158",
                  "display": "Health behavior intervention, individual, face-to-face; initial 30 minutes"
                }
              ]
            }
          ]
        },
        {
          "type": "Encounter",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/Encounter"
          ],
          "mustSupport": [
            "type",
            "period",
            "status"
          ],
          "codeFilter": [
            {
              "path": "type",
              "code": [
                {
                  "system": "http://www.ama-assn.org/go/cpt",
                  "code": "96156",
                  "display": "Health behavior assessment, or re-assessment (ie, health-focused clinical interview, behavioral observations, clinical decision making)"
                }
              ]
            }
          ]
        },
        {
          "type": "Encounter",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/Encounter"
          ],
          "mustSupport": [
            "type",
            "period",
            "status"
          ],
          "codeFilter": [
            {
              "path": "type",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016"
            }
          ]
        },
        {
          "type": "Encounter",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/Encounter"
          ],
          "mustSupport": [
            "type",
            "period",
            "status"
          ],
          "codeFilter": [
            {
              "path": "type",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1011"
            }
          ]
        },
        {
          "type": "Encounter",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/Encounter"
          ],
          "mustSupport": [
            "type",
            "period",
            "status"
          ],
          "codeFilter": [
            {
              "path": "type",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001"
            }
          ]
        },
        {
          "type": "Encounter",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/Encounter"
          ],
          "mustSupport": [
            "type",
            "period",
            "status"
          ],
          "codeFilter": [
            {
              "path": "type",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1285"
            }
          ]
        },
        {
          "type": "Encounter",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/Encounter"
          ],
          "mustSupport": [
            "type",
            "period",
            "status"
          ],
          "codeFilter": [
            {
              "path": "type",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1022"
            }
          ]
        },
        {
          "type": "Encounter",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/Encounter"
          ],
          "mustSupport": [
            "type",
            "period",
            "status"
          ],
          "codeFilter": [
            {
              "path": "type",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1492"
            }
          ]
        },
        {
          "type": "Encounter",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/Encounter"
          ],
          "mustSupport": [
            "type",
            "period",
            "status"
          ],
          "codeFilter": [
            {
              "path": "type",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1496"
            }
          ]
        },
        {
          "type": "Encounter",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/Encounter"
          ],
          "mustSupport": [
            "type",
            "period",
            "status"
          ],
          "codeFilter": [
            {
              "path": "type",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1141"
            }
          ]
        },
        {
          "type": "Encounter",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/Encounter"
          ],
          "mustSupport": [
            "type",
            "period",
            "status"
          ],
          "codeFilter": [
            {
              "path": "type",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1530"
            }
          ]
        },
        {
          "type": "Encounter",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/Encounter"
          ],
          "mustSupport": [
            "type",
            "period",
            "status"
          ],
          "codeFilter": [
            {
              "path": "type",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240"
            }
          ]
        },
        {
          "type": "Encounter",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/Encounter"
          ],
          "mustSupport": [
            "type",
            "period",
            "status"
          ],
          "codeFilter": [
            {
              "path": "type",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025"
            }
          ]
        },
        {
          "type": "Encounter",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/Encounter"
          ],
          "mustSupport": [
            "type",
            "period",
            "status"
          ],
          "codeFilter": [
            {
              "path": "type",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1027"
            }
          ]
        },
        {
          "type": "Encounter",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/Encounter"
          ],
          "mustSupport": [
            "type",
            "period",
            "status"
          ],
          "codeFilter": [
            {
              "path": "type",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1030"
            }
          ]
        },
        {
          "type": "Encounter",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/Encounter"
          ],
          "mustSupport": [
            "type",
            "period",
            "status"
          ],
          "codeFilter": [
            {
              "path": "type",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1026"
            }
          ]
        },
        {
          "type": "Encounter",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/Encounter"
          ],
          "mustSupport": [
            "type",
            "period",
            "status"
          ],
          "codeFilter": [
            {
              "path": "type",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023"
            }
          ]
        },
        {
          "type": "MedicationRequest",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
          ],
          "mustSupport": [
            "medication",
            "authoredOn",
            "status",
            "doNotPerform",
            "statusReason"
          ],
          "codeFilter": [
            {
              "path": "medication",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1190"
            }
          ]
        },
        {
          "type": "MedicationRequest",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
          ],
          "mustSupport": [
            "medication.reference",
            "authoredOn",
            "status",
            "doNotPerform",
            "statusReason"
          ]
        },
        {
          "type": "Medication",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/Medication"
          ],
          "mustSupport": [
            "id",
            "code"
          ]
        },
        {
          "type": "Patient",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/Patient"
          ],
          "mustSupport": [
            "url",
            "extension",
            "value",
            "birthDate"
          ]
        },
        {
          "type": "Condition",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/Condition"
          ],
          "mustSupport": [
            "clinicalStatus"
          ]
        },
        {
          "type": "Coverage",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/Coverage"
          ],
          "mustSupport": [
            "type",
            "period"
          ],
          "codeFilter": [
            {
              "path": "type",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"
            }
          ]
        },
        {
          "type": "Procedure",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/Procedure"
          ],
          "mustSupport": [
            "code",
            "performed",
            "status",
            "statusReason"
          ],
          "codeFilter": [
            {
              "path": "code",
              "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.509"
            }
          ]
        }
      ]
    }
  ],
  "extension": [
    {
      "url": "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-populationBasis",
      "valueCode": "boolean"
    },
    {
      "url": "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem",
      "valueReference": {
        "reference": "Device/software-system-example"
      }
    },
    {
      "url": "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements",
      "valueCanonical": "#effective-data-requirements"
    }
  ],
  "url": "http://hl7.org/fhir/uv/cqm/Measure/TSCComponent",
  "identifier": [
    {
      "use": "official",
      "type": {
        "coding": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/artifact-identifier-type",
            "code": "version-independent",
            "display": "Version Independent"
          }
        ]
      },
      "system": "urn:ietf:rfc:3986",
      "value": "http://example.org/fhir/us/cqm/Measure/HBPComponent"
    },
    {
      "use": "official",
      "type": {
        "coding": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/artifact-identifier-type",
            "code": "version-specific",
            "display": "Version Specific"
          }
        ]
      },
      "system": "urn:ietf:rfc:3986",
      "value": "http://example.org/fhir/us/cqm/Measure/138v12"
    },
    {
      "use": "usual",
      "type": {
        "coding": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/artifact-identifier-type",
            "code": "short-name",
            "display": "Short Name"
          }
        ]
      },
      "value": "Preventive Care and Screening: Tobacco Use: Screening and Cessation Intervention"
    },
    {
      "system": "urn:ietf:rfc:3986",
      "value": "urn:oid:2.16.840.1.113883.4.642.40.61.29.18"
    }
  ],
  "version": "0.0.001",
  "name": "TSCComponent",
  "title": "Preventive Care and Screening: Tobacco Use: Screening and Cessation Intervention",
  "status": "active",
  "experimental": true,
  "date": "2025-08-07T21:50:23-06:00",
  "publisher": "HL7 International / Clinical Quality Information",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/cqi"
        }
      ]
    }
  ],
  "description": "This is an example only.",
  "useContext": [
    {
      "code": {
        "system": "http://terminology.hl7.org/CodeSystem/usage-context-type",
        "code": "venue",
        "display": "Clinical Venue"
      },
      "valueCodeableConcept": {
        "coding": [
          {
            "system": "http://hl7.org/fhir/uv/cqm/CodeSystem/intended-venue-codes",
            "code": "ec",
            "display": "EC"
          }
        ]
      }
    }
  ],
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code": "001"
        }
      ]
    }
  ],
  "effectivePeriod": {
    "start": "2022-01-01",
    "end": "2022-12-31"
  },
  "library": [
    "http://hl7.org/fhir/uv/cqm/Library/TSCComponent"
  ],
  "scoring": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/measure-scoring",
        "code": "proportion",
        "display": "Proportion"
      }
    ]
  },
  "type": [
    {
      "coding": [
        {
          "system": "http://terminology.hl7.org/CodeSystem/measure-type",
          "code": "process"
        }
      ]
    }
  ],
  "improvementNotation": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/measure-improvement-notation",
        "code": "increase"
      }
    ]
  },
  "group": [
    {
      "id": "group-1",
      "extension": [
        {
          "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.linkId",
          "valueString": "primary"
        }
      ],
      "code": {
        "text": "Group 1"
      },
      "population": [
        {
          "id": "1DE7294A-72AE-42D1-A2A6-BCAE23DBA8A6",
          "extension": [
            {
              "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId",
              "valueString": "primary-tsccomponent-initial-population"
            }
          ],
          "code": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/measure-population",
                "code": "initial-population",
                "display": "Initial Population"
              }
            ]
          },
          "criteria": {
            "language": "text/cql-identifier",
            "expression": "Initial Population"
          }
        },
        {
          "id": "0F57D23C-C2AA-4CE1-9E20-33DAE1F2B145",
          "extension": [
            {
              "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId",
              "valueString": "primary-tsccomponent-denominator"
            }
          ],
          "code": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/measure-population",
                "code": "denominator",
                "display": "Denominator"
              }
            ]
          },
          "criteria": {
            "language": "text/cql-identifier",
            "expression": "Denominator 1"
          }
        },
        {
          "id": "570F7624-72EC-4CFC-9137-F48E476D77DC",
          "extension": [
            {
              "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId",
              "valueString": "primary-tsccomponent-denominator-exception"
            }
          ],
          "code": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/measure-population",
                "code": "denominator-exception",
                "display": "Denominator Exception"
              }
            ]
          },
          "criteria": {
            "language": "text/cql-identifier",
            "expression": "Denominator Exceptions 1"
          }
        },
        {
          "id": "20577EB7-3FE9-43D2-B918-A8C7AE5E0E91",
          "extension": [
            {
              "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId",
              "valueString": "primary-tsccomponent-numerator"
            }
          ],
          "code": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/measure-population",
                "code": "numerator",
                "display": "Numerator"
              }
            ]
          },
          "criteria": {
            "language": "text/cql-identifier",
            "expression": "Numerator 1"
          }
        }
      ]
    },
    {
      "id": "group-2",
      "extension": [
        {
          "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.linkId",
          "valueString": "group-2"
        }
      ],
      "code": {
        "text": "Group 2"
      },
      "population": [
        {
          "id": "DD346C87-5D2B-4319-B41D-7BF64ADF95D0",
          "extension": [
            {
              "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId",
              "valueString": "group-2-tsccomponent-initial-population"
            }
          ],
          "code": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/measure-population",
                "code": "initial-population",
                "display": "Initial Population"
              }
            ]
          },
          "criteria": {
            "language": "text/cql-identifier",
            "expression": "Initial Population"
          }
        },
        {
          "id": "A1FAA872-5C94-4F2B-A355-8E3A3390369C",
          "extension": [
            {
              "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId",
              "valueString": "group-2-tsccomponent-denominator"
            }
          ],
          "code": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/measure-population",
                "code": "denominator",
                "display": "Denominator"
              }
            ]
          },
          "criteria": {
            "language": "text/cql-identifier",
            "expression": "Denominator 2"
          }
        },
        {
          "id": "3AE470CD-37DF-492D-A3A4-365BAF744C5A",
          "extension": [
            {
              "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId",
              "valueString": "group-2-tsccomponent-denominator-exception"
            }
          ],
          "code": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/measure-population",
                "code": "denominator-exception",
                "display": "Denominator Exception"
              }
            ]
          },
          "criteria": {
            "language": "text/cql-identifier",
            "expression": "Denominator Exceptions 2"
          }
        },
        {
          "id": "B1F8B729-7BBD-4616-B39C-E90444B7884C",
          "extension": [
            {
              "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId",
              "valueString": "group-2-tsccomponent-numerator"
            }
          ],
          "code": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/measure-population",
                "code": "numerator",
                "display": "Numerator"
              }
            ]
          },
          "criteria": {
            "language": "text/cql-identifier",
            "expression": "Numerator 2"
          }
        }
      ]
    },
    {
      "id": "group-3",
      "extension": [
        {
          "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.linkId",
          "valueString": "group-3"
        }
      ],
      "code": {
        "text": "Group 3"
      },
      "population": [
        {
          "id": "EA2696EE-326B-490A-82B5-E4D8FC581E77",
          "extension": [
            {
              "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId",
              "valueString": "group-3-tsccomponent-initial-population"
            }
          ],
          "code": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/measure-population",
                "code": "initial-population",
                "display": "Initial Population"
              }
            ]
          },
          "criteria": {
            "language": "text/cql-identifier",
            "expression": "Initial Population"
          }
        },
        {
          "id": "D346BB79-EFD1-4DB1-902A-36F027BE75E9",
          "extension": [
            {
              "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId",
              "valueString": "group-3-tsccomponent-denominator"
            }
          ],
          "code": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/measure-population",
                "code": "denominator",
                "display": "Denominator"
              }
            ]
          },
          "criteria": {
            "language": "text/cql-identifier",
            "expression": "Denominator 3"
          }
        },
        {
          "id": "6BBFE753-2072-4848-B189-0E5B44BE1F52",
          "extension": [
            {
              "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId",
              "valueString": "group-3-tsccomponent-denominator-exception"
            }
          ],
          "code": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/measure-population",
                "code": "denominator-exception",
                "display": "Denominator Exception"
              }
            ]
          },
          "criteria": {
            "language": "text/cql-identifier",
            "expression": "Denominator Exceptions 3"
          }
        },
        {
          "id": "F8E22F0F-7307-4BED-9295-648803772928",
          "extension": [
            {
              "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId",
              "valueString": "group-3-tsccomponent-numerator"
            }
          ],
          "code": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/measure-population",
                "code": "numerator",
                "display": "Numerator"
              }
            ]
          },
          "criteria": {
            "language": "text/cql-identifier",
            "expression": "Numerator 3"
          }
        }
      ]
    }
  ],
  "supplementalData": [
    {
      "id": "fe7bab72-cc69-44bb-a678-473b24811e67",
      "extension": [
        {
          "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId",
          "valueString": "tsccomponent-sde-ethnicity"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "supplemental-data"
            }
          ]
        }
      ],
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "SDE Ethnicity"
      }
    },
    {
      "id": "2486f84d-df90-489b-8f5c-e55cdcfb361e",
      "extension": [
        {
          "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId",
          "valueString": "tsccomponent-sde-payer"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "supplemental-data"
            }
          ]
        }
      ],
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "SDE Payer"
      }
    },
    {
      "id": "bb0949c4-1f7b-4ce2-a988-c2e60f1a0079",
      "extension": [
        {
          "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId",
          "valueString": "tsccomponent-sde-race"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "supplemental-data"
            }
          ]
        }
      ],
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "SDE Race"
      }
    },
    {
      "id": "742028bc-5aa5-4a5b-927d-be1908e10aaf",
      "extension": [
        {
          "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId",
          "valueString": "tsccomponent-sde-sex"
        }
      ],
      "usage": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage",
              "code": "supplemental-data"
            }
          ]
        }
      ],
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "SDE Sex"
      }
    }
  ]
}