forked from cqframework/cqf-exercises
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Exercises11.cql
62 lines (46 loc) · 2.72 KB
/
Exercises11.cql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
Quality Measurement
Based on
[CMS124 - Cervical Cancer Screening](https://ecqi.healthit.gov/sites/default/files/ecqm/measures/CMS124v9.html)
## Description
Percentage of women 21-64 years of age who were screened for cervical cancer using either of the following criteria:
* Women age 21-64 who had cervical cytology performed within the last 3 years
* Women age 30-64 who had cervical human papillomavirus (HPV) testing performed within the last 5 years
## Initial Population
Women 23-64 years of age with a visit during the measurement period
## Denominator
Equals Initial Population
## Denominator Exclusions
Women who had a hysterectomy with no residual cervix or a congenital absence of cervix.
Exclude patients whose hospice care overlaps the measurement period.
## Numerator
Women with one or more screenings for cervical cancer. Appropriate screenings are defined by any one of the following criteria:
* Cervical cytology performed during the measurement period or the two years prior to the measurement period for women who are at least 21 years old at the time of the test
* Cervical human papillomavirus (HPV) testing performed during the measurement period or the four years prior to the measurement period for women who are 30 years or older at the time of the test
NOTE: This example is for instructional purposes only and is dervied from work in progress.
It should in no way be considered a final specification or recommendation for guidance.
The example is derived from work in progress by the Centers for Medicare and Medicaid Services,
see the original project repository for more information: https://github.com/cqframework/ecqm-content-r4
*/
library Exercises11
using FHIR version '4.0.1'
include FHIRHelpers version '4.0.1' called FHIRHelpers
include FHIRCommon version '4.0.1' called FC
codesystem "SNOMEDCT:2017-09": 'http://snomed.info/sct/731000124108' version 'http://snomed.info/sct/731000124108/version/201709'
valueset "Hysterectomy with No Residual Cervix": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1014'
valueset "Pap Test": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1017'
valueset "HPV Test": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1059'
code "Congenital absence of cervix (disorder)": '37687000' from "SNOMEDCT:2017-09" display 'Congenital absence of cervix (disorder)'
parameter "Measurement Period" Interval<DateTime>
default Interval[@2019-01-01T00:00:00.0, @2020-01-01T00:00:00.0)
context Patient
/*
Build expressions for the
* Initial Population
* Denominator
* Denominator Exclusion
* Numerator
HINT: Express the intermediates first:
* Cervical Cytology Within 3 Years
* HPV Test Within 5 Years For Women Age 30 and Older
*/