Library Name | Name | sequence |
EXM125 |
SDE Sex |
define "SDE Sex":
SDE."SDE Sex"
Library Name | Name | sequence |
SupplementalDataElements |
SDE Sex |
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
Library Name | Name | sequence |
EXM125 |
Numerator |
define "Numerator":
exists (
[DiagnosticReport: "Mammography"] Mammogram
where ( Global."Normalize Interval"(Mammogram.effective) ends 27 months or less before day of end of "Measurement Period" )
and Mammogram.status in { 'final', 'amended', 'corrected', 'appended' }
)
Library Name | Name | sequence |
EXM125 |
Denominator |
define "Denominator":
"Initial Population"
Library Name | Name | sequence |
EXM125 |
Initial Population |
define "Initial Population":
Patient.gender = 'female'
and Global."CalendarAgeInYearsAt"(FHIRHelpers.ToDate(Patient.birthDate), start of "Measurement Period") in Interval[51, 74]
and exists AdultOutpatientEncounters."Qualifying Encounters"
Library Name | Name | sequence |
AdultOutpatientEncounters |
Qualifying Encounters |
define "Qualifying Encounters":
(
[Encounter: "Office Visit"]
union [Encounter: "Annual Wellness Visit"]
union [Encounter: "Preventive Care Services - Established Office Visit, 18 and Up"]
union [Encounter: "Preventive Care Services-Initial Office Visit, 18 and Up"]
union [Encounter: "Home Healthcare Services"]
) ValidEncounter
where ValidEncounter.period during "Measurement Period"
and ValidEncounter.status = 'finished'
Library Name | Name | sequence |
EXM125 |
SDE Payer |
define "SDE Payer":
SDE."SDE Payer"
Library Name | Name | sequence |
SupplementalDataElements |
SDE Payer |
define "SDE Payer":
[Coverage: type in "Payer"] Payer
return {
code: Payer.type,
period: Payer.period
}
Library Name | Name | sequence |
EXM125 |
Initial Population |
define "Initial Population":
Patient.gender = 'female'
and Global."CalendarAgeInYearsAt"(FHIRHelpers.ToDate(Patient.birthDate), start of "Measurement Period") in Interval[51, 74]
and exists AdultOutpatientEncounters."Qualifying Encounters"
Library Name | Name | sequence |
EXM125 |
SDE Ethnicity |
define "SDE Ethnicity":
SDE."SDE Ethnicity"
Library Name | Name | sequence |
SupplementalDataElements |
SDE Ethnicity |
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
Library Name | Name | sequence |
EXM125 |
Denominator Exclusion |
define "Denominator Exclusion":
Hospice."Has Hospice"
or ( Count("Unilateral Mastectomy Procedure") = 2 )
or ( exists "Right Mastectomy" and exists "Left Mastectomy" )
or exists "History Bilateral Mastectomy"
or exists "Bilateral Mastectomy Procedure"
Library Name | Name | sequence |
Hospice |
Has Hospice |
define "Has Hospice":
exists (
[Encounter: "Encounter Inpatient"] DischargeHospice
where DischargeHospice.status = 'finished'
and (
DischargeHospice.hospitalization.dischargeDisposition ~ "Discharge to home for hospice care (procedure)"
or DischargeHospice.hospitalization.dischargeDisposition ~ "Discharge to healthcare facility for hospice care (procedure)"
)
and DischargeHospice.period ends during "Measurement Period"
)
or exists (
[ServiceRequest: "Hospice care ambulatory"] HospiceOrder
where HospiceOrder.intent = 'order'
and HospiceOrder.authoredOn in "Measurement Period"
)
or exists (
[Procedure: "Hospice care ambulatory"] HospicePerformed
where HospicePerformed.status = 'completed'
and Global."Normalize Interval"(HospicePerformed.performed) overlaps "Measurement Period"
)
Library Name | Name | sequence |
EXM125 |
Unilateral Mastectomy Procedure |
define "Unilateral Mastectomy Procedure":
[Procedure: "Unilateral Mastectomy"] UnilateralMastectomyProcedure
where Global."Normalize Interval"(UnilateralMastectomyProcedure.performed) ends before day of end of "Measurement Period"
and UnilateralMastectomyProcedure.status = 'completed'
Library Name | Name | sequence |
EXM125 |
Right Mastectomy |
define "Right Mastectomy":
(
( [Condition: "Status Post Right Mastectomy"] C
where C.clinicalStatus ~ ToConcept(Global."active")
)
union (
[Condition: "Unilateral Mastectomy, Unspecified Laterality"] UnilateralMastectomyDiagnosis
where UnilateralMastectomyDiagnosis.bodySite in "Right"
and UnilateralMastectomyDiagnosis.clinicalStatus ~ ToConcept(Global."active")
)
) RightMastectomy
where Global."Normalize Interval"(RightMastectomy.onset) starts before day of end of "Measurement Period"
Library Name | Name | sequence |
EXM125 |
Left Mastectomy |
define "Left Mastectomy":
(
( [Condition: "Status Post Left Mastectomy"] C
where C.clinicalStatus ~ ToConcept(Global."active")
)
union (
[Condition: "Unilateral Mastectomy, Unspecified Laterality"] UnilateralMastectomyDiagnosis
where UnilateralMastectomyDiagnosis.bodySite in "Left"
and UnilateralMastectomyDiagnosis.clinicalStatus ~ ToConcept(Global."active")
)
) LeftMastectomy
where Global."Normalize Interval"(LeftMastectomy.onset) starts before day of end of "Measurement Period"
Library Name | Name | sequence |
EXM125 |
History Bilateral Mastectomy |
define "History Bilateral Mastectomy":
[Condition: "History of bilateral mastectomy"] BilateralMastectomyHistory
where Global."Normalize Interval"(BilateralMastectomyHistory.onset) starts before day of end of "Measurement Period"
and BilateralMastectomyHistory.clinicalStatus ~ ToConcept(Global."active")
Library Name | Name | sequence |
EXM125 |
Bilateral Mastectomy Procedure |
define "Bilateral Mastectomy Procedure":
[Procedure: "Bilateral Mastectomy"] BilateralMastectomyPerformed
where Global."Normalize Interval"(BilateralMastectomyPerformed.performed) ends before day of end of "Measurement Period"
and BilateralMastectomyPerformed.status = 'completed'
Library Name | Name | sequence |
EXM125 |
SDE Race |
define "SDE Race":
SDE."SDE Race"
Library Name | Name | sequence |
SupplementalDataElements |
SDE Race |
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
|