Metadata Title BCS Component Library Version 0.0.001 Identifier urn:oid:2.16.840.1.113883.4.642.40.61.28.4 Status Draft Jurisdiction Global (Whole world) Steward (Publisher) HL7 International / Clinical Quality Information Description This library is the primary measure library for the Breast Cancer Screening component of the composite measure examples in this implementation guide. Type Logic Library Parameter Name: Measurement Period Use: In Min Cardinality: 0 Max Cardinality: 1 Type: Period Parameter Name: Patient Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: Patient Parameter Name: SDE Ethnicity Use: Out Min Cardinality: 0 Max Cardinality: * Type: Coding Parameter Name: SDE Payer Use: Out Min Cardinality: 0 Max Cardinality: * Type: Resource 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: Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Denominator Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Right Mastectomy Diagnosis Use: Out Min Cardinality: 0 Max Cardinality: * Type: Condition Parameter Name: Right Mastectomy Procedure Use: Out Min Cardinality: 0 Max Cardinality: * Type: Procedure Parameter Name: Left Mastectomy Procedure Use: Out Min Cardinality: 0 Max Cardinality: * Type: Procedure Parameter Name: Bilateral Mastectomy Diagnosis Use: Out Min Cardinality: 0 Max Cardinality: * Type: Condition Parameter Name: Bilateral Mastectomy Procedure Use: Out Min Cardinality: 0 Max Cardinality: * Type: Procedure Parameter Name: Numerator Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Left Mastectomy Use: Out Min Cardinality: 0 Max Cardinality: * Type: Condition Parameter Name: Denominator Exclusion Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Data Requirement Type: Patient Profile(s): Patient Data Requirement Type: Condition Profile(s): Condition Must Support Elements: code, onset Code Filter(s): Path: code ValueSet: Status Post Right Mastectomy Data Requirement Type: Condition Profile(s): Condition Must Support Elements: code, onset Code Filter(s): Path: code ValueSet: History of bilateral mastectomy Data Requirement Type: Condition Profile(s): Condition Must Support Elements: code, onset Code Filter(s): Path: code ValueSet: Status Post Left Mastectomy Data Requirement Type: Condition Profile(s): Condition Must Support Elements: code, bodySite, onset Code Filter(s): Path: code ValueSet: Unilateral Mastectomy, Unspecified Laterality Data Requirement Type: Procedure Profile(s): Procedure Must Support Elements: code, performed, status Code Filter(s): Path: code ValueSet: Unilateral Mastectomy Right Data Requirement Type: Procedure Profile(s): Procedure Must Support Elements: code, performed, status Code Filter(s): Path: code ValueSet: Unilateral Mastectomy Left Data Requirement Type: Procedure Profile(s): Procedure Must Support Elements: code, performed, status Code Filter(s): Path: code ValueSet: Bilateral Mastectomy Data Requirement Type: DiagnosticReport Profile(s): DiagnosticReport Must Support Elements: code, effective, status Code Filter(s): Path: code ValueSet: Mammography Library Content CQL Content /*#xD; This example is a work in progress and should not be considered a final specification#xD; or recommendation for guidance. This example will help guide and direct the process#xD; of finding conventions and usage patterns that meet the needs of the various stakeholders#xD; in the measure development community.#xD; */#xD; library BCSComponent version '0.0.001'#xD; #xD; using FHIR version '4.0.1'#xD; #xD; include hl7.fhir.uv.cql.FHIRHelpers version '4.0.1' called FHIRHelpers#xD; #xD; include SupplementalDataElements version '2.0.000' called SDE#xD; include MATGlobalCommonFunctions version '5.0.000' called Global#xD; include AdultOutpatientEncounters version '2.0.000' called AdultOutpatientEncounters#xD; include Hospice version '2.0.000' called Hospice#xD; include AdvancedIllnessandFrailtyExclusion version '5.12.000' called Frailty#xD; #xD; codesystem "LOINC": 'http://loinc.org'#xD; codesystem "SNOMEDCT": 'http://snomed.info/sct'#xD; #xD; valueset "Bilateral Mastectomy": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1005'#xD; valueset "Ethnicity": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.837'#xD; valueset "Female": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.560.100.2'#xD; valueset "History of bilateral mastectomy": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1068'#xD; valueset "Left": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.122.12.1036'#xD; valueset "Mammography": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1018'#xD; valueset "ONC Administrative Sex": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1'#xD; valueset "Payer": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591'#xD; valueset "Race": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.836'#xD; valueset "Right": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.122.12.1035'#xD; valueset "Status Post Left Mastectomy": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1069'#xD; valueset "Status Post Right Mastectomy": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1070'#xD; valueset "Unilateral Mastectomy Left": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1133'#xD; valueset "Unilateral Mastectomy Right": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1134'#xD; valueset "Unilateral Mastectomy, Unspecified Laterality": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1071'#xD; #xD; code "Birth date": '21112-8' from "LOINC" display 'Birth date'#xD; code "Left (qualifier value)": '7771000' from "SNOMEDCT" display 'Left (qualifier value)'#xD; code "Right (qualifier value)": '24028007' from "SNOMEDCT" display 'Right (qualifier value)'#xD; #xD; parameter "Measurement Period" Interval<DateTime>#xD; #xD; context Patient#xD; #xD; define "SDE Ethnicity":#xD; SDE."SDE Ethnicity"#xD; #xD; define "SDE Payer":#xD; SDE."SDE Payer"#xD; #xD; define "SDE Race":#xD; SDE."SDE Race"#xD; #xD; define "SDE Sex":#xD; SDE."SDE Sex"#xD; #xD; define "Initial Population":#xD; Patient.gender = 'female'#xD; and Global."CalendarAgeInYearsAt" ( FHIRHelpers.ToDate ( Patient.birthDate ), start of "Measurement Period" ) in Interval[51, 74 )#xD; and exists AdultOutpatientEncounters."Qualifying Encounters"#xD; #xD; define "Denominator":#xD; "Initial Population"#xD; #xD; define "Right Mastectomy Diagnosis":#xD; ( ( [Condition: "Status Post Right Mastectomy"] )#xD; union ( [Condition: "Unilateral Mastectomy, Unspecified Laterality"] UnilateralMastectomyDiagnosis#xD; where UnilateralMastectomyDiagnosis.bodySite in "Right"#xD; ) ) RightMastectomy#xD; where Global."Normalize Interval" ( RightMastectomy.onset ) starts on or before#xD; end of "Measurement Period"#xD; #xD; define "Right Mastectomy Procedure":#xD; [Procedure: "Unilateral Mastectomy Right"] UnilateralMastectomyRightPerformed#xD; where Global."Normalize Interval" ( UnilateralMastectomyRightPerformed.performed ) ends on or before#xD; end of "Measurement Period"#xD; and UnilateralMastectomyRightPerformed.status = 'completed'#xD; #xD; define "Left Mastectomy Procedure":#xD; [Procedure: "Unilateral Mastectomy Left"] UnilateralMastectomyLeftPerformed#xD; where Global."Normalize Interval" ( UnilateralMastectomyLeftPerformed.performed ) ends on or before#xD; end of "Measurement Period"#xD; and UnilateralMastectomyLeftPerformed.status = 'completed'#xD; #xD; define "Bilateral Mastectomy Diagnosis":#xD; [Condition: "History of bilateral mastectomy"] BilateralMastectomyHistory#xD; where Global."Normalize Interval" ( BilateralMastectomyHistory.onset ) starts on or before#xD; end of "Measurement Period"#xD; #xD; define "Bilateral Mastectomy Procedure":#xD; [Procedure: "Bilateral Mastectomy"] BilateralMastectomyPerformed#xD; where Global."Normalize Interval" ( BilateralMastectomyPerformed.performed ) ends on or before#xD; end of "Measurement Period"#xD; and BilateralMastectomyPerformed.status = 'completed'#xD; #xD; define "Numerator":#xD; exists ( [DiagnosticReport: "Mammography"] Mammogram#xD; where ( Global."Normalize Interval" ( Mammogram.effective ) ends 27 months or less on or before#xD; end of "Measurement Period"#xD; )#xD; and Mammogram.status in { 'final', 'amended', 'corrected', 'appended' }#xD; )#xD; #xD; define "Denominator Exclusion":#xD; Hospice."Has Hospice"#xD; or ( ( exists "Right Mastectomy Diagnosis"#xD; or exists "Right Mastectomy Procedure"#xD; )#xD; and ( exists "Left Mastectomy"#xD; or exists "Left Mastectomy Procedure"#xD; )#xD; )#xD; or exists "Bilateral Mastectomy Diagnosis"#xD; or exists "Bilateral Mastectomy Procedure"#xD; or Frailty."Advanced Illness and Frailty Exclusion Not Including Over Age 80"#xD; or ( Global."CalendarAgeInYearsAt" ( FHIRHelpers.ToDate ( Patient.birthDate ), start of "Measurement Period" ) >= 65#xD; and Frailty."Long Term Care Periods Longer Than 90 Consecutive Days"#xD; )#xD; #xD; define "Left Mastectomy":#xD; ( ( [Condition: "Status Post Left Mastectomy"] )#xD; union ( [Condition: "Unilateral Mastectomy, Unspecified Laterality"] UnilateralMastectomyDiagnosis#xD; where UnilateralMastectomyDiagnosis.bodySite in "Left"#xD; ) ) LeftMastectomy#xD; where Global."Normalize Interval" ( LeftMastectomy.onset ) starts on or before#xD; end of "Measurement Period"#xD; ELM XML Content Encoded data (111544 characters) ELM JSON Content Encoded data (203656 characters) Generated using version 0.4.9 of the sample-content-ig Liquid templates
HL7 International / Clinical Quality Information
This library is the primary measure library for the Breast Cancer Screening component of the composite measure examples in this implementation guide.
Value set History of bilateral mastectomy
Value set Unilateral Mastectomy, Unspecified Laterality