bonnie_bundler 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +3 -0
  3. data/.travis.yml +12 -0
  4. data/Gemfile +29 -0
  5. data/Gemfile.lock +267 -0
  6. data/README.md +4 -0
  7. data/Rakefile +29 -0
  8. data/bonnie-bundler.gemspec +29 -0
  9. data/config/initializers/mongo.rb +1 -0
  10. data/config/measures/measures_2_4_0.yml +719 -0
  11. data/config/mongoid.yml +6 -0
  12. data/lib/bonnie_bundler.rb +39 -0
  13. data/lib/ext/hash.rb +28 -0
  14. data/lib/ext/railtie.rb +11 -0
  15. data/lib/ext/valueset.rb +11 -0
  16. data/lib/measures/cql_to_elm_helper.rb +90 -0
  17. data/lib/measures/elm_parser.rb +74 -0
  18. data/lib/measures/loading/base_loader_definition.rb +61 -0
  19. data/lib/measures/loading/cql_loader.rb +420 -0
  20. data/lib/measures/loading/exceptions.rb +10 -0
  21. data/lib/measures/loading/loader.rb +178 -0
  22. data/lib/measures/loading/value_set_loader.rb +137 -0
  23. data/lib/measures/logic_extractor.rb +552 -0
  24. data/lib/measures/mongo_hash_key_wrapper.rb +44 -0
  25. data/lib/models/cql_measure.rb +160 -0
  26. data/lib/models/measure.rb +330 -0
  27. data/test/fixtures/BCS_v5_0_Artifacts.zip +0 -0
  28. data/test/fixtures/CMS158_v5_4_Artifacts.zip +0 -0
  29. data/test/fixtures/CMS158_v5_4_Artifacts_Update.zip +0 -0
  30. data/test/fixtures/DRAFT_CMS2_CQL.zip +0 -0
  31. data/test/fixtures/bonnienesting01_fixed.zip +0 -0
  32. data/test/fixtures/vcr_cassettes/mat_5-4_cql_export_vsac_response.yml +4723 -0
  33. data/test/fixtures/vcr_cassettes/multi_library_webcalls.yml +1892 -0
  34. data/test/fixtures/vcr_cassettes/valid_translation_response.yml +1120 -0
  35. data/test/fixtures/vcr_cassettes/valid_vsac_response.yml +1678 -0
  36. data/test/fixtures/vcr_cassettes/valid_vsac_response_158.yml +1670 -0
  37. data/test/fixtures/vcr_cassettes/valid_vsac_response_158_update.yml +1670 -0
  38. data/test/fixtures/vcr_cassettes/valid_vsac_response_includes_draft.yml +3480 -0
  39. data/test/fixtures/vcr_cassettes/vs_loading_draft_no_profile_version.yml +1198 -0
  40. data/test/fixtures/vcr_cassettes/vs_loading_draft_profile.yml +1198 -0
  41. data/test/fixtures/vcr_cassettes/vs_loading_draft_verion.yml +1198 -0
  42. data/test/fixtures/vcr_cassettes/vs_loading_no_profile_version.yml +1198 -0
  43. data/test/fixtures/vcr_cassettes/vs_loading_profile.yml +1196 -0
  44. data/test/fixtures/vcr_cassettes/vs_loading_version.yml +20331 -0
  45. data/test/fixtures/vs_loading/DocofMeds_v5_1_Artifacts.zip +0 -0
  46. data/test/fixtures/vs_loading/DocofMeds_v5_1_Artifacts_Version.zip +0 -0
  47. data/test/fixtures/vs_loading/DocofMeds_v5_1_Artifacts_With_Profiles.zip +0 -0
  48. data/test/simplecov_init.rb +18 -0
  49. data/test/test_helper.rb +44 -0
  50. data/test/unit/load_mat_export_test.rb +181 -0
  51. data/test/unit/measure_complexity_test.rb +32 -0
  52. data/test/unit/measure_diff_test.rb +68 -0
  53. data/test/unit/mongo_hash_key_wrapper_test.rb +247 -0
  54. data/test/unit/storing_mat_export_package_test.rb +45 -0
  55. data/test/unit/value_set_loading_test.rb +109 -0
  56. data/test/vcr_setup.rb +20 -0
  57. metadata +258 -0
@@ -0,0 +1,1120 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:8080/cql/translator
6
+ body:
7
+ encoding: ASCII-8BIT
8
+ string: "--646210\r\nContent-Disposition: form-data; name=\"file[]\"\r\n\r\nlibrary
9
+ BCSTest version '0.0.001'\n\nusing QDM version '5.0'\n\ncodesystem \"LOINC:2.46\":
10
+ 'urn:oid:2.16.840.1.113883.6.1' version 'urn:hl7:version:2.46'\n\ncodesystem
11
+ \"SNOMEDCT:2016-03\": 'urn:oid:2.16.840.1.113883.6.96' version 'urn:hl7:version:2016-03'\n\ncodesystem
12
+ \"CPT:2016\": 'urn:oid:2.16.840.1.113883.6.12' version 'urn:hl7:version:2016'\n\ncodesystem
13
+ \"AdministrativeGender:HL7V3.0_2015-07\": 'urn:oid:2.16.840.1.113883.5.1'
14
+ version 'urn:hl7:version:HL7V3.0_2015-07'\n\ncodesystem \"SNOMEDCT:2016-09\":
15
+ 'urn:oid:2.16.840.1.113883.6.96' version 'urn:hl7:version:2016-09'\n\ncodesystem
16
+ \"LOINC:2.56\": 'urn:oid:2.16.840.1.113883.6.1' version 'urn:hl7:version:2.56'\n\ncodesystem
17
+ \"HCPCS:2016\": 'urn:oid:2.16.840.1.113883.6.285' version 'urn:hl7:version:2016'\n\ncodesystem
18
+ \"CDCREC:1.0\": 'urn:oid:2.16.840.1.113883.6.238' version 'urn:hl7:version:1.0'\n\ncodesystem
19
+ \"SOP:6.0\": 'urn:oid:2.16.840.1.113883.3.221.5' version 'urn:hl7:version:6.0'\n\nvalueset
20
+ \"ONC Administrative Sex\": 'urn:oid:2.16.840.1.113762.1.4.1' codesystems
21
+ {\"AdministrativeGender:HL7V3.0_2015-07\"}\n\nvalueset \"Race\": 'urn:oid:2.16.840.1.114222.4.11.836'
22
+ codesystems {\"CDCREC:1.0\"}\n\nvalueset \"Ethnicity\": 'urn:oid:2.16.840.1.114222.4.11.837'
23
+ codesystems {\"CDCREC:1.0\"}\n\nvalueset \"Payer\": 'urn:oid:2.16.840.1.114222.4.11.3591'
24
+ codesystems {\"SOP:6.0\"}\n\nvalueset \"Mammogram\": 'urn:oid:2.16.840.1.113883.3.464.1003.108.12.1018'
25
+ codesystems {\"LOINC:2.56\", \"HCPCS:2016\"}\n\nvalueset \"Face-to-Face Interaction\":
26
+ 'urn:oid:2.16.840.1.113883.3.464.1003.101.12.1048' codesystems {\"SNOMEDCT:2016-09\"}\n\nvalueset
27
+ \"Home Healthcare Services\": 'urn:oid:2.16.840.1.113883.3.464.1003.101.12.1016'
28
+ codesystems {\"CPT:2016\"}\n\nvalueset \"Office Visit\": 'urn:oid:2.16.840.1.113883.3.464.1003.101.12.1001'
29
+ codesystems {\"CPT:2016\"}\n\nvalueset \"Bilateral Mastectomy\": 'urn:oid:2.16.840.1.113883.3.464.1003.198.12.1005'
30
+ codesystems {\"SNOMEDCT:2016-09\"}\n\nvalueset \"Unilateral Mastectomy\":
31
+ 'urn:oid:2.16.840.1.113883.3.464.1003.198.12.1020' codesystems {\"SNOMEDCT:2016-09\",
32
+ \"CPT:2016\"}\n\nvalueset \"Female\": 'urn:oid:2.16.840.1.113883.3.560.100.2'
33
+ codesystems {\"AdministrativeGender:HL7V3.0_2015-07\"}\n\nparameter \"Measurement
34
+ Period\" Interval<DateTime>\n\ncontext Patient\n\ndefine \"SDE Ethnicity\":
35
+ [\"Patient Characteristic Ethnicity\": \"Ethnicity\"]\n\ndefine \"SDE Payer\":
36
+ [\"Patient Characteristic Payer\": \"Payer\"]\n\ndefine \"SDE Race\": [\"Patient
37
+ Characteristic Race\": \"Race\"]\n\ndefine \"SDE Sex\": [\"Patient Characteristic
38
+ Sex\": \"ONC Administrative Sex\"]\n\ndefine \"Initial Pop\": ([\"Encounter,
39
+ Performed\": \"Office Visit\"]\nunion [\"Encounter, Performed\": \"Face-to-Face
40
+ Interaction\"]\nunion [\"Encounter, Performed\": \"Home Healthcare Services\"])Enc\nwhere
41
+ Enc.relevantPeriod during \"Measurement Period\"\nand AgeInYearsAt(start of
42
+ \"Measurement Period\")>=65\n\ndefine \"Num\": [\"Diagnostic Study, Performed\":
43
+ \"Mammogram\"]Mam\nwhere Mam.relevantPeriod 26 months or less before end of
44
+ \"Measurement Period\"\n\ndefine \"Double Unilateral Mastectomy\": Count([\"Procedure,
45
+ Performed\": \"Unilateral Mastectomy\"]P\nwhere P.relevantPeriod before end
46
+ of \"Measurement Period\")=2\n\ndefine \"Denom\": exists(\"Initial Pop\")
47
+ and\nAgeInYearsAt(start of \"Measurement Period\")<74\nand exists([\"Patient
48
+ Characteristic Sex\": \"Female\"])\n\ndefine \"Denom Excl\": exists([\"Procedure,
49
+ Performed\": \"Bilateral Mastectomy\"]BIM\nwhere BIM.relevantPeriod before
50
+ end of \"Measurement Period\") or \"Double Unilateral Mastectomy\"\n\r\n--646210--\r\n"
51
+ headers:
52
+ Accept:
53
+ - "*/*; q=0.5, application/xml"
54
+ Accept-Encoding:
55
+ - gzip, deflate
56
+ Content-Length:
57
+ - '3432'
58
+ Content-Type:
59
+ - multipart/form-data; boundary=646210
60
+ User-Agent:
61
+ - Ruby
62
+ response:
63
+ status:
64
+ code: 200
65
+ message: OK
66
+ headers:
67
+ Mime-Version:
68
+ - '1.0'
69
+ Content-Type:
70
+ - multipart/form-data;boundary=Boundary_301_382515094_1504886314908
71
+ Date:
72
+ - Fri, 08 Sep 2017 15:58:34 GMT
73
+ Transfer-Encoding:
74
+ - chunked
75
+ body:
76
+ encoding: UTF-8
77
+ string: "--Boundary_301_382515094_1504886314908\r\nContent-Type: application/elm+json\r\nContent-Disposition:
78
+ form-data; name=\"file[]\"\r\n\r\n{\n \"library\" : {\n \"annotation\"
79
+ : [ {\n \"startLine\" : 49,\n \"startChar\" : 25,\n \"endLine\"
80
+ : 49,\n \"endChar\" : 73,\n \"message\" : \"Retrieve has a
81
+ terminology target but does not specify a code path and the type of the retrieve
82
+ does not have a primary code path defined.\",\n \"errorType\" : \"semantic\",\n
83
+ \ \"errorSeverity\" : \"warning\",\n \"type\" : \"CqlToElmError\"\n
84
+ \ }, {\n \"startLine\" : 49,\n \"startChar\" : 25,\n \"endLine\"
85
+ : 49,\n \"endChar\" : 73,\n \"message\" : \"Could not resolve
86
+ membership operator for terminology target of the retrieve.\",\n \"errorType\"
87
+ : \"semantic\",\n \"errorSeverity\" : \"warning\",\n \"type\"
88
+ : \"CqlToElmError\"\n }, {\n \"startLine\" : 51,\n \"startChar\"
89
+ : 21,\n \"endLine\" : 51,\n \"endChar\" : 61,\n \"message\"
90
+ : \"Retrieve has a terminology target but does not specify a code path and
91
+ the type of the retrieve does not have a primary code path defined.\",\n \"errorType\"
92
+ : \"semantic\",\n \"errorSeverity\" : \"warning\",\n \"type\"
93
+ : \"CqlToElmError\"\n }, {\n \"startLine\" : 51,\n \"startChar\"
94
+ : 21,\n \"endLine\" : 51,\n \"endChar\" : 61,\n \"message\"
95
+ : \"Could not resolve membership operator for terminology target of the retrieve.\",\n
96
+ \ \"errorType\" : \"semantic\",\n \"errorSeverity\" : \"warning\",\n
97
+ \ \"type\" : \"CqlToElmError\"\n }, {\n \"startLine\"
98
+ : 53,\n \"startChar\" : 20,\n \"endLine\" : 53,\n \"endChar\"
99
+ : 58,\n \"message\" : \"Retrieve has a terminology target but does
100
+ not specify a code path and the type of the retrieve does not have a primary
101
+ code path defined.\",\n \"errorType\" : \"semantic\",\n \"errorSeverity\"
102
+ : \"warning\",\n \"type\" : \"CqlToElmError\"\n }, {\n \"startLine\"
103
+ : 53,\n \"startChar\" : 20,\n \"endLine\" : 53,\n \"endChar\"
104
+ : 58,\n \"message\" : \"Could not resolve membership operator for
105
+ terminology target of the retrieve.\",\n \"errorType\" : \"semantic\",\n
106
+ \ \"errorSeverity\" : \"warning\",\n \"type\" : \"CqlToElmError\"\n
107
+ \ }, {\n \"startLine\" : 55,\n \"startChar\" : 19,\n \"endLine\"
108
+ : 55,\n \"endChar\" : 74,\n \"message\" : \"Retrieve has a
109
+ terminology target but does not specify a code path and the type of the retrieve
110
+ does not have a primary code path defined.\",\n \"errorType\" : \"semantic\",\n
111
+ \ \"errorSeverity\" : \"warning\",\n \"type\" : \"CqlToElmError\"\n
112
+ \ }, {\n \"startLine\" : 55,\n \"startChar\" : 19,\n \"endLine\"
113
+ : 55,\n \"endChar\" : 74,\n \"message\" : \"Could not resolve
114
+ membership operator for terminology target of the retrieve.\",\n \"errorType\"
115
+ : \"semantic\",\n \"errorSeverity\" : \"warning\",\n \"type\"
116
+ : \"CqlToElmError\"\n }, {\n \"startLine\" : 71,\n \"startChar\"
117
+ : 12,\n \"endLine\" : 71,\n \"endChar\" : 51,\n \"message\"
118
+ : \"Retrieve has a terminology target but does not specify a code path and
119
+ the type of the retrieve does not have a primary code path defined.\",\n \"errorType\"
120
+ : \"semantic\",\n \"errorSeverity\" : \"warning\",\n \"type\"
121
+ : \"CqlToElmError\"\n }, {\n \"startLine\" : 71,\n \"startChar\"
122
+ : 12,\n \"endLine\" : 71,\n \"endChar\" : 51,\n \"message\"
123
+ : \"Could not resolve membership operator for terminology target of the retrieve.\",\n
124
+ \ \"errorType\" : \"semantic\",\n \"errorSeverity\" : \"warning\",\n
125
+ \ \"type\" : \"CqlToElmError\"\n } ],\n \"identifier\" :
126
+ {\n \"id\" : \"BCSTest\",\n \"version\" : \"0.0.001\"\n },\n
127
+ \ \"schemaIdentifier\" : {\n \"id\" : \"urn:hl7-org:elm\",\n \"version\"
128
+ : \"r1\"\n },\n \"usings\" : {\n \"def\" : [ {\n \"localIdentifier\"
129
+ : \"System\",\n \"uri\" : \"urn:hl7-org:elm-types:r1\"\n },
130
+ {\n \"localId\" : \"1\",\n \"localIdentifier\" : \"QDM\",\n
131
+ \ \"uri\" : \"urn:healthit-gov:qdm:v5_0_draft\",\n \"version\"
132
+ : \"5.0\"\n } ]\n },\n \"parameters\" : {\n \"def\"
133
+ : [ {\n \"localId\" : \"37\",\n \"name\" : \"Measurement
134
+ Period\",\n \"accessLevel\" : \"Public\",\n \"parameterTypeSpecifier\"
135
+ : {\n \"localId\" : \"36\",\n \"type\" : \"IntervalTypeSpecifier\",\n
136
+ \ \"pointType\" : {\n \"localId\" : \"35\",\n
137
+ \ \"name\" : \"{urn:hl7-org:elm-types:r1}DateTime\",\n \"type\"
138
+ : \"NamedTypeSpecifier\"\n }\n }\n } ]\n
139
+ \ },\n \"codeSystems\" : {\n \"def\" : [ {\n \"localId\"
140
+ : \"2\",\n \"name\" : \"LOINC:2.46\",\n \"id\" : \"urn:oid:2.16.840.1.113883.6.1\",\n
141
+ \ \"version\" : \"urn:hl7:version:2.46\",\n \"accessLevel\"
142
+ : \"Public\"\n }, {\n \"localId\" : \"3\",\n \"name\"
143
+ : \"SNOMEDCT:2016-03\",\n \"id\" : \"urn:oid:2.16.840.1.113883.6.96\",\n
144
+ \ \"version\" : \"urn:hl7:version:2016-03\",\n \"accessLevel\"
145
+ : \"Public\"\n }, {\n \"localId\" : \"4\",\n \"name\"
146
+ : \"CPT:2016\",\n \"id\" : \"urn:oid:2.16.840.1.113883.6.12\",\n
147
+ \ \"version\" : \"urn:hl7:version:2016\",\n \"accessLevel\"
148
+ : \"Public\"\n }, {\n \"localId\" : \"5\",\n \"name\"
149
+ : \"AdministrativeGender:HL7V3.0_2015-07\",\n \"id\" : \"urn:oid:2.16.840.1.113883.5.1\",\n
150
+ \ \"version\" : \"urn:hl7:version:HL7V3.0_2015-07\",\n \"accessLevel\"
151
+ : \"Public\"\n }, {\n \"localId\" : \"6\",\n \"name\"
152
+ : \"SNOMEDCT:2016-09\",\n \"id\" : \"urn:oid:2.16.840.1.113883.6.96\",\n
153
+ \ \"version\" : \"urn:hl7:version:2016-09\",\n \"accessLevel\"
154
+ : \"Public\"\n }, {\n \"localId\" : \"7\",\n \"name\"
155
+ : \"LOINC:2.56\",\n \"id\" : \"urn:oid:2.16.840.1.113883.6.1\",\n
156
+ \ \"version\" : \"urn:hl7:version:2.56\",\n \"accessLevel\"
157
+ : \"Public\"\n }, {\n \"localId\" : \"8\",\n \"name\"
158
+ : \"HCPCS:2016\",\n \"id\" : \"urn:oid:2.16.840.1.113883.6.285\",\n
159
+ \ \"version\" : \"urn:hl7:version:2016\",\n \"accessLevel\"
160
+ : \"Public\"\n }, {\n \"localId\" : \"9\",\n \"name\"
161
+ : \"CDCREC:1.0\",\n \"id\" : \"urn:oid:2.16.840.1.113883.6.238\",\n
162
+ \ \"version\" : \"urn:hl7:version:1.0\",\n \"accessLevel\"
163
+ : \"Public\"\n }, {\n \"localId\" : \"10\",\n \"name\"
164
+ : \"SOP:6.0\",\n \"id\" : \"urn:oid:2.16.840.1.113883.3.221.5\",\n
165
+ \ \"version\" : \"urn:hl7:version:6.0\",\n \"accessLevel\"
166
+ : \"Public\"\n } ]\n },\n \"valueSets\" : {\n \"def\"
167
+ : [ {\n \"localId\" : \"12\",\n \"name\" : \"ONC Administrative
168
+ Sex\",\n \"id\" : \"urn:oid:2.16.840.1.113762.1.4.1\",\n \"accessLevel\"
169
+ : \"Public\",\n \"codeSystem\" : [ {\n \"localId\"
170
+ : \"11\",\n \"name\" : \"AdministrativeGender:HL7V3.0_2015-07\"\n
171
+ \ } ]\n }, {\n \"localId\" : \"14\",\n \"name\"
172
+ : \"Race\",\n \"id\" : \"urn:oid:2.16.840.1.114222.4.11.836\",\n
173
+ \ \"accessLevel\" : \"Public\",\n \"codeSystem\" : [
174
+ {\n \"localId\" : \"13\",\n \"name\" : \"CDCREC:1.0\"\n
175
+ \ } ]\n }, {\n \"localId\" : \"16\",\n \"name\"
176
+ : \"Ethnicity\",\n \"id\" : \"urn:oid:2.16.840.1.114222.4.11.837\",\n
177
+ \ \"accessLevel\" : \"Public\",\n \"codeSystem\" : [
178
+ {\n \"localId\" : \"15\",\n \"name\" : \"CDCREC:1.0\"\n
179
+ \ } ]\n }, {\n \"localId\" : \"18\",\n \"name\"
180
+ : \"Payer\",\n \"id\" : \"urn:oid:2.16.840.1.114222.4.11.3591\",\n
181
+ \ \"accessLevel\" : \"Public\",\n \"codeSystem\" : [
182
+ {\n \"localId\" : \"17\",\n \"name\" : \"SOP:6.0\"\n
183
+ \ } ]\n }, {\n \"localId\" : \"21\",\n \"name\"
184
+ : \"Mammogram\",\n \"id\" : \"urn:oid:2.16.840.1.113883.3.464.1003.108.12.1018\",\n
185
+ \ \"accessLevel\" : \"Public\",\n \"codeSystem\" : [
186
+ {\n \"localId\" : \"19\",\n \"name\" : \"LOINC:2.56\"\n
187
+ \ }, {\n \"localId\" : \"20\",\n \"name\"
188
+ : \"HCPCS:2016\"\n } ]\n }, {\n \"localId\"
189
+ : \"23\",\n \"name\" : \"Face-to-Face Interaction\",\n \"id\"
190
+ : \"urn:oid:2.16.840.1.113883.3.464.1003.101.12.1048\",\n \"accessLevel\"
191
+ : \"Public\",\n \"codeSystem\" : [ {\n \"localId\"
192
+ : \"22\",\n \"name\" : \"SNOMEDCT:2016-09\"\n } ]\n
193
+ \ }, {\n \"localId\" : \"25\",\n \"name\" : \"Home
194
+ Healthcare Services\",\n \"id\" : \"urn:oid:2.16.840.1.113883.3.464.1003.101.12.1016\",\n
195
+ \ \"accessLevel\" : \"Public\",\n \"codeSystem\" : [
196
+ {\n \"localId\" : \"24\",\n \"name\" : \"CPT:2016\"\n
197
+ \ } ]\n }, {\n \"localId\" : \"27\",\n \"name\"
198
+ : \"Office Visit\",\n \"id\" : \"urn:oid:2.16.840.1.113883.3.464.1003.101.12.1001\",\n
199
+ \ \"accessLevel\" : \"Public\",\n \"codeSystem\" : [
200
+ {\n \"localId\" : \"26\",\n \"name\" : \"CPT:2016\"\n
201
+ \ } ]\n }, {\n \"localId\" : \"29\",\n \"name\"
202
+ : \"Bilateral Mastectomy\",\n \"id\" : \"urn:oid:2.16.840.1.113883.3.464.1003.198.12.1005\",\n
203
+ \ \"accessLevel\" : \"Public\",\n \"codeSystem\" : [
204
+ {\n \"localId\" : \"28\",\n \"name\" : \"SNOMEDCT:2016-09\"\n
205
+ \ } ]\n }, {\n \"localId\" : \"32\",\n \"name\"
206
+ : \"Unilateral Mastectomy\",\n \"id\" : \"urn:oid:2.16.840.1.113883.3.464.1003.198.12.1020\",\n
207
+ \ \"accessLevel\" : \"Public\",\n \"codeSystem\" : [
208
+ {\n \"localId\" : \"30\",\n \"name\" : \"SNOMEDCT:2016-09\"\n
209
+ \ }, {\n \"localId\" : \"31\",\n \"name\"
210
+ : \"CPT:2016\"\n } ]\n }, {\n \"localId\" :
211
+ \"34\",\n \"name\" : \"Female\",\n \"id\" : \"urn:oid:2.16.840.1.113883.3.560.100.2\",\n
212
+ \ \"accessLevel\" : \"Public\",\n \"codeSystem\" : [
213
+ {\n \"localId\" : \"33\",\n \"name\" : \"AdministrativeGender:HL7V3.0_2015-07\"\n
214
+ \ } ]\n } ]\n },\n \"statements\" : {\n \"def\"
215
+ : [ {\n \"name\" : \"Patient\",\n \"context\" : \"Patient\",\n
216
+ \ \"expression\" : {\n \"type\" : \"SingletonFrom\",\n
217
+ \ \"operand\" : {\n \"dataType\" : \"{urn:healthit-gov:qdm:v5_0_draft}Patient\",\n
218
+ \ \"templateId\" : \"Patient\",\n \"type\"
219
+ : \"Retrieve\"\n }\n }\n }, {\n \"localId\"
220
+ : \"39\",\n \"name\" : \"SDE Ethnicity\",\n \"context\"
221
+ : \"Patient\",\n \"accessLevel\" : \"Public\",\n \"annotation\"
222
+ : [ {\n \"type\" : \"Annotation\",\n \"s\" : {\n
223
+ \ \"r\" : \"39\",\n \"s\" : [ {\n \"value\"
224
+ : [ \"define \",\"\\\"SDE Ethnicity\\\"\",\": \" ]\n }, {\n
225
+ \ \"r\" : \"38\",\n \"s\" : [ {\n \"value\"
226
+ : [ \"[\",\"\\\"Patient Characteristic Ethnicity\\\"\",\": \" ]\n },
227
+ {\n \"s\" : [ {\n \"value\"
228
+ : [ \"\\\"Ethnicity\\\"\" ]\n } ]\n },
229
+ {\n \"value\" : [ \"]\" ]\n } ]\n
230
+ \ } ]\n }\n } ],\n \"expression\"
231
+ : {\n \"localId\" : \"38\",\n \"dataType\" : \"{urn:healthit-gov:qdm:v5_0_draft}PatientCharacteristicEthnicity\",\n
232
+ \ \"type\" : \"Retrieve\",\n \"codes\" : {\n \"name\"
233
+ : \"Ethnicity\",\n \"type\" : \"ValueSetRef\"\n }\n
234
+ \ }\n }, {\n \"localId\" : \"41\",\n \"name\"
235
+ : \"SDE Payer\",\n \"context\" : \"Patient\",\n \"accessLevel\"
236
+ : \"Public\",\n \"annotation\" : [ {\n \"type\" :
237
+ \"Annotation\",\n \"s\" : {\n \"r\" : \"41\",\n
238
+ \ \"s\" : [ {\n \"value\" : [ \"define
239
+ \",\"\\\"SDE Payer\\\"\",\": \" ]\n }, {\n \"r\"
240
+ : \"40\",\n \"s\" : [ {\n \"value\"
241
+ : [ \"[\",\"\\\"Patient Characteristic Payer\\\"\",\": \" ]\n },
242
+ {\n \"s\" : [ {\n \"value\"
243
+ : [ \"\\\"Payer\\\"\" ]\n } ]\n },
244
+ {\n \"value\" : [ \"]\" ]\n } ]\n
245
+ \ } ]\n }\n } ],\n \"expression\"
246
+ : {\n \"localId\" : \"40\",\n \"dataType\" : \"{urn:healthit-gov:qdm:v5_0_draft}PatientCharacteristicPayer\",\n
247
+ \ \"type\" : \"Retrieve\",\n \"codes\" : {\n \"name\"
248
+ : \"Payer\",\n \"type\" : \"ValueSetRef\"\n }\n
249
+ \ }\n }, {\n \"localId\" : \"43\",\n \"name\"
250
+ : \"SDE Race\",\n \"context\" : \"Patient\",\n \"accessLevel\"
251
+ : \"Public\",\n \"annotation\" : [ {\n \"type\" :
252
+ \"Annotation\",\n \"s\" : {\n \"r\" : \"43\",\n
253
+ \ \"s\" : [ {\n \"value\" : [ \"define
254
+ \",\"\\\"SDE Race\\\"\",\": \" ]\n }, {\n \"r\"
255
+ : \"42\",\n \"s\" : [ {\n \"value\"
256
+ : [ \"[\",\"\\\"Patient Characteristic Race\\\"\",\": \" ]\n },
257
+ {\n \"s\" : [ {\n \"value\"
258
+ : [ \"\\\"Race\\\"\" ]\n } ]\n },
259
+ {\n \"value\" : [ \"]\" ]\n } ]\n
260
+ \ } ]\n }\n } ],\n \"expression\"
261
+ : {\n \"localId\" : \"42\",\n \"dataType\" : \"{urn:healthit-gov:qdm:v5_0_draft}PatientCharacteristicRace\",\n
262
+ \ \"type\" : \"Retrieve\",\n \"codes\" : {\n \"name\"
263
+ : \"Race\",\n \"type\" : \"ValueSetRef\"\n }\n
264
+ \ }\n }, {\n \"localId\" : \"45\",\n \"name\"
265
+ : \"SDE Sex\",\n \"context\" : \"Patient\",\n \"accessLevel\"
266
+ : \"Public\",\n \"annotation\" : [ {\n \"type\" :
267
+ \"Annotation\",\n \"s\" : {\n \"r\" : \"45\",\n
268
+ \ \"s\" : [ {\n \"value\" : [ \"define
269
+ \",\"\\\"SDE Sex\\\"\",\": \" ]\n }, {\n \"r\"
270
+ : \"44\",\n \"s\" : [ {\n \"value\"
271
+ : [ \"[\",\"\\\"Patient Characteristic Sex\\\"\",\": \" ]\n },
272
+ {\n \"s\" : [ {\n \"value\"
273
+ : [ \"\\\"ONC Administrative Sex\\\"\" ]\n } ]\n },
274
+ {\n \"value\" : [ \"]\" ]\n } ]\n
275
+ \ } ]\n }\n } ],\n \"expression\"
276
+ : {\n \"localId\" : \"44\",\n \"dataType\" : \"{urn:healthit-gov:qdm:v5_0_draft}PatientCharacteristicSex\",\n
277
+ \ \"type\" : \"Retrieve\",\n \"codes\" : {\n \"name\"
278
+ : \"ONC Administrative Sex\",\n \"type\" : \"ValueSetRef\"\n
279
+ \ }\n }\n }, {\n \"localId\" :
280
+ \"63\",\n \"name\" : \"Initial Pop\",\n \"context\"
281
+ : \"Patient\",\n \"accessLevel\" : \"Public\",\n \"annotation\"
282
+ : [ {\n \"type\" : \"Annotation\",\n \"s\" : {\n
283
+ \ \"r\" : \"63\",\n \"s\" : [ {\n \"value\"
284
+ : [ \"define \",\"\\\"Initial Pop\\\"\",\": \" ]\n }, {\n
285
+ \ \"r\" : \"62\",\n \"s\" : [ {\n \"s\"
286
+ : [ {\n \"r\" : \"51\",\n \"s\"
287
+ : [ {\n \"r\" : \"50\",\n \"s\"
288
+ : [ {\n \"value\" : [ \"(\" ]\n },
289
+ {\n \"r\" : \"50\",\n \"s\"
290
+ : [ {\n \"r\" : \"48\",\n \"s\"
291
+ : [ {\n \"r\" : \"46\",\n \"s\"
292
+ : [ {\n \"value\" : [ \"[\",\"\\\"Encounter,
293
+ Performed\\\"\",\": \" ]\n }, {\n \"s\"
294
+ : [ {\n \"value\" : [ \"\\\"Office
295
+ Visit\\\"\" ]\n } ]\n },
296
+ {\n \"value\" : [ \"]\" ]\n }
297
+ ]\n }, {\n \"value\"
298
+ : [ \"\\nunion \" ]\n }, {\n \"r\"
299
+ : \"47\",\n \"s\" : [ {\n \"value\"
300
+ : [ \"[\",\"\\\"Encounter, Performed\\\"\",\": \" ]\n },
301
+ {\n \"s\" : [ {\n \"value\"
302
+ : [ \"\\\"Face-to-Face Interaction\\\"\" ]\n }
303
+ ]\n }, {\n \"value\"
304
+ : [ \"]\" ]\n } ]\n }
305
+ ]\n }, {\n \"value\"
306
+ : [ \"\\nunion \" ]\n }, {\n \"r\"
307
+ : \"49\",\n \"s\" : [ {\n \"value\"
308
+ : [ \"[\",\"\\\"Encounter, Performed\\\"\",\": \" ]\n },
309
+ {\n \"s\" : [ {\n \"value\"
310
+ : [ \"\\\"Home Healthcare Services\\\"\" ]\n }
311
+ ]\n }, {\n \"value\"
312
+ : [ \"]\" ]\n } ]\n }
313
+ ]\n }, {\n \"value\"
314
+ : [ \")\" ]\n } ]\n },
315
+ {\n \"value\" : [ \"Enc\" ]\n }
316
+ ]\n } ]\n }, {\n \"value\"
317
+ : [ \"\\n\" ]\n }, {\n \"r\" :
318
+ \"61\",\n \"s\" : [ {\n \"value\"
319
+ : [ \"where \" ]\n }, {\n \"r\"
320
+ : \"61\",\n \"s\" : [ {\n \"r\"
321
+ : \"55\",\n \"s\" : [ {\n \"r\"
322
+ : \"53\",\n \"s\" : [ {\n \"r\"
323
+ : \"52\",\n \"s\" : [ {\n \"value\"
324
+ : [ \"Enc\" ]\n } ]\n },
325
+ {\n \"value\" : [ \".\" ]\n },
326
+ {\n \"r\" : \"53\",\n \"s\"
327
+ : [ {\n \"value\" : [ \"relevantPeriod\"
328
+ ]\n } ]\n }
329
+ ]\n }, {\n \"value\"
330
+ : [ \" \",\"during\",\" \" ]\n }, {\n \"r\"
331
+ : \"54\",\n \"s\" : [ {\n \"value\"
332
+ : [ \"\\\"Measurement Period\\\"\" ]\n } ]\n
333
+ \ } ]\n }, {\n \"value\"
334
+ : [ \"\\nand \" ]\n }, {\n \"r\"
335
+ : \"60\",\n \"s\" : [ {\n \"r\"
336
+ : \"58\",\n \"s\" : [ {\n \"value\"
337
+ : [ \"AgeInYearsAt\",\"(\" ]\n }, {\n \"r\"
338
+ : \"57\",\n \"s\" : [ {\n \"value\"
339
+ : [ \"start of \" ]\n }, {\n \"r\"
340
+ : \"56\",\n \"s\" : [ {\n \"value\"
341
+ : [ \"\\\"Measurement Period\\\"\" ]\n }
342
+ ]\n } ]\n },
343
+ {\n \"value\" : [ \")\" ]\n }
344
+ ]\n }, {\n \"value\"
345
+ : [ \">=\",\"65\" ]\n } ]\n }
346
+ ]\n } ]\n } ]\n }
347
+ ]\n }\n } ],\n \"expression\" : {\n \"localId\"
348
+ : \"62\",\n \"type\" : \"Query\",\n \"source\"
349
+ : [ {\n \"localId\" : \"51\",\n \"alias\"
350
+ : \"Enc\",\n \"expression\" : {\n \"localId\"
351
+ : \"50\",\n \"type\" : \"Union\",\n \"operand\"
352
+ : [ {\n \"localId\" : \"48\",\n \"type\"
353
+ : \"Union\",\n \"operand\" : [ {\n \"localId\"
354
+ : \"46\",\n \"dataType\" : \"{urn:healthit-gov:qdm:v5_0_draft}PositiveEncounterPerformed\",\n
355
+ \ \"templateId\" : \"PositiveEncounterPerformed\",\n
356
+ \ \"codeProperty\" : \"code\",\n \"type\"
357
+ : \"Retrieve\",\n \"codes\" : {\n \"name\"
358
+ : \"Office Visit\",\n \"type\" : \"ValueSetRef\"\n
359
+ \ }\n }, {\n \"localId\"
360
+ : \"47\",\n \"dataType\" : \"{urn:healthit-gov:qdm:v5_0_draft}PositiveEncounterPerformed\",\n
361
+ \ \"templateId\" : \"PositiveEncounterPerformed\",\n
362
+ \ \"codeProperty\" : \"code\",\n \"type\"
363
+ : \"Retrieve\",\n \"codes\" : {\n \"name\"
364
+ : \"Face-to-Face Interaction\",\n \"type\" :
365
+ \"ValueSetRef\"\n }\n } ]\n
366
+ \ }, {\n \"localId\" : \"49\",\n
367
+ \ \"dataType\" : \"{urn:healthit-gov:qdm:v5_0_draft}PositiveEncounterPerformed\",\n
368
+ \ \"templateId\" : \"PositiveEncounterPerformed\",\n
369
+ \ \"codeProperty\" : \"code\",\n \"type\"
370
+ : \"Retrieve\",\n \"codes\" : {\n \"name\"
371
+ : \"Home Healthcare Services\",\n \"type\" : \"ValueSetRef\"\n
372
+ \ }\n } ]\n }\n
373
+ \ } ],\n \"relationship\" : [ ],\n \"where\"
374
+ : {\n \"localId\" : \"61\",\n \"type\" :
375
+ \"And\",\n \"operand\" : [ {\n \"localId\"
376
+ : \"55\",\n \"type\" : \"IncludedIn\",\n \"operand\"
377
+ : [ {\n \"localId\" : \"53\",\n \"path\"
378
+ : \"relevantPeriod\",\n \"scope\" : \"Enc\",\n \"type\"
379
+ : \"Property\"\n }, {\n \"localId\"
380
+ : \"54\",\n \"name\" : \"Measurement Period\",\n \"type\"
381
+ : \"ParameterRef\"\n } ]\n }, {\n \"localId\"
382
+ : \"60\",\n \"type\" : \"GreaterOrEqual\",\n \"operand\"
383
+ : [ {\n \"localId\" : \"58\",\n \"precision\"
384
+ : \"Year\",\n \"type\" : \"CalculateAgeAt\",\n \"operand\"
385
+ : [ {\n \"path\" : \"birthDatetime\",\n \"type\"
386
+ : \"Property\",\n \"source\" : {\n \"name\"
387
+ : \"Patient\",\n \"type\" : \"ExpressionRef\"\n
388
+ \ }\n }, {\n \"localId\"
389
+ : \"57\",\n \"type\" : \"Start\",\n \"operand\"
390
+ : {\n \"localId\" : \"56\",\n \"name\"
391
+ : \"Measurement Period\",\n \"type\" : \"ParameterRef\"\n
392
+ \ }\n } ]\n },
393
+ {\n \"localId\" : \"59\",\n \"valueType\"
394
+ : \"{urn:hl7-org:elm-types:r1}Integer\",\n \"value\"
395
+ : \"65\",\n \"type\" : \"Literal\"\n }
396
+ ]\n } ]\n }\n }\n }, {\n
397
+ \ \"localId\" : \"73\",\n \"name\" : \"Num\",\n \"context\"
398
+ : \"Patient\",\n \"accessLevel\" : \"Public\",\n \"annotation\"
399
+ : [ {\n \"type\" : \"Annotation\",\n \"s\" : {\n
400
+ \ \"r\" : \"73\",\n \"s\" : [ {\n \"value\"
401
+ : [ \"define \",\"\\\"Num\\\"\",\": \" ]\n }, {\n \"r\"
402
+ : \"72\",\n \"s\" : [ {\n \"s\"
403
+ : [ {\n \"r\" : \"65\",\n \"s\"
404
+ : [ {\n \"r\" : \"64\",\n \"s\"
405
+ : [ {\n \"r\" : \"64\",\n \"s\"
406
+ : [ {\n \"value\" : [ \"[\",\"\\\"Diagnostic
407
+ Study, Performed\\\"\",\": \" ]\n }, {\n \"s\"
408
+ : [ {\n \"value\" : [ \"\\\"Mammogram\\\"\"
409
+ ]\n } ]\n },
410
+ {\n \"value\" : [ \"]\" ]\n }
411
+ ]\n } ]\n }, {\n \"value\"
412
+ : [ \"Mam\" ]\n } ]\n } ]\n
413
+ \ }, {\n \"value\" : [ \"\\n\" ]\n
414
+ \ }, {\n \"r\" : \"71\",\n \"s\"
415
+ : [ {\n \"value\" : [ \"where \" ]\n },
416
+ {\n \"r\" : \"71\",\n \"s\"
417
+ : [ {\n \"r\" : \"67\",\n \"s\"
418
+ : [ {\n \"r\" : \"66\",\n \"s\"
419
+ : [ {\n \"value\" : [ \"Mam\" ]\n }
420
+ ]\n }, {\n \"value\"
421
+ : [ \".\" ]\n }, {\n \"r\"
422
+ : \"67\",\n \"s\" : [ {\n \"value\"
423
+ : [ \"relevantPeriod\" ]\n } ]\n }
424
+ ]\n }, {\n \"value\"
425
+ : [ \" \" ]\n }, {\n \"r\"
426
+ : \"71\",\n \"s\" : [ {\n \"r\"
427
+ : \"70\",\n \"s\" : [ {\n \"value\"
428
+ : [ \"26 \",\"months\" ]\n } ]\n },
429
+ {\n \"value\" : [ \" or less before\" ]\n
430
+ \ } ]\n }, {\n \"value\"
431
+ : [ \" \" ]\n }, {\n \"r\"
432
+ : \"69\",\n \"s\" : [ {\n \"value\"
433
+ : [ \"end of \" ]\n }, {\n \"r\"
434
+ : \"68\",\n \"s\" : [ {\n \"value\"
435
+ : [ \"\\\"Measurement Period\\\"\" ]\n } ]\n
436
+ \ } ]\n } ]\n }
437
+ ]\n } ]\n } ]\n }\n }
438
+ ],\n \"expression\" : {\n \"localId\" : \"72\",\n
439
+ \ \"type\" : \"Query\",\n \"source\" : [ {\n \"localId\"
440
+ : \"65\",\n \"alias\" : \"Mam\",\n \"expression\"
441
+ : {\n \"localId\" : \"64\",\n \"dataType\"
442
+ : \"{urn:healthit-gov:qdm:v5_0_draft}PositiveDiagnosticStudyPerformed\",\n
443
+ \ \"templateId\" : \"PositiveDiagnosticStudyPerformed\",\n
444
+ \ \"codeProperty\" : \"code\",\n \"type\"
445
+ : \"Retrieve\",\n \"codes\" : {\n \"name\"
446
+ : \"Mammogram\",\n \"type\" : \"ValueSetRef\"\n }\n
447
+ \ }\n } ],\n \"relationship\"
448
+ : [ ],\n \"where\" : {\n \"localId\" : \"71\",\n
449
+ \ \"type\" : \"In\",\n \"operand\" : [ {\n
450
+ \ \"type\" : \"End\",\n \"operand\"
451
+ : {\n \"localId\" : \"67\",\n \"path\"
452
+ : \"relevantPeriod\",\n \"scope\" : \"Mam\",\n \"type\"
453
+ : \"Property\"\n }\n }, {\n \"lowClosed\"
454
+ : true,\n \"highClosed\" : false,\n \"type\"
455
+ : \"Interval\",\n \"low\" : {\n \"type\"
456
+ : \"Subtract\",\n \"operand\" : [ {\n \"localId\"
457
+ : \"69\",\n \"type\" : \"End\",\n \"operand\"
458
+ : {\n \"localId\" : \"68\",\n \"name\"
459
+ : \"Measurement Period\",\n \"type\" : \"ParameterRef\"\n
460
+ \ }\n }, {\n \"localId\"
461
+ : \"70\",\n \"value\" : 26,\n \"unit\"
462
+ : \"months\",\n \"type\" : \"Quantity\"\n }
463
+ ]\n },\n \"high\" : {\n \"localId\"
464
+ : \"69\",\n \"type\" : \"End\",\n \"operand\"
465
+ : {\n \"localId\" : \"68\",\n \"name\"
466
+ : \"Measurement Period\",\n \"type\" : \"ParameterRef\"\n
467
+ \ }\n }\n } ]\n
468
+ \ }\n }\n }, {\n \"localId\" :
469
+ \"85\",\n \"name\" : \"Double Unilateral Mastectomy\",\n \"context\"
470
+ : \"Patient\",\n \"accessLevel\" : \"Public\",\n \"annotation\"
471
+ : [ {\n \"type\" : \"Annotation\",\n \"s\" : {\n
472
+ \ \"r\" : \"85\",\n \"s\" : [ {\n \"value\"
473
+ : [ \"define \",\"\\\"Double Unilateral Mastectomy\\\"\",\": \" ]\n },
474
+ {\n \"r\" : \"84\",\n \"s\" : [ {\n
475
+ \ \"r\" : \"82\",\n \"s\" : [
476
+ {\n \"value\" : [ \"Count\",\"(\" ]\n },
477
+ {\n \"r\" : \"81\",\n \"s\"
478
+ : [ {\n \"s\" : [ {\n \"r\"
479
+ : \"75\",\n \"s\" : [ {\n \"r\"
480
+ : \"74\",\n \"s\" : [ {\n \"r\"
481
+ : \"74\",\n \"s\" : [ {\n \"value\"
482
+ : [ \"[\",\"\\\"Procedure, Performed\\\"\",\": \" ]\n },
483
+ {\n \"s\" : [ {\n \"value\"
484
+ : [ \"\\\"Unilateral Mastectomy\\\"\" ]\n }
485
+ ]\n }, {\n \"value\"
486
+ : [ \"]\" ]\n } ]\n }
487
+ ]\n }, {\n \"value\"
488
+ : [ \"P\" ]\n } ]\n }
489
+ ]\n }, {\n \"value\"
490
+ : [ \"\\n\" ]\n }, {\n \"r\"
491
+ : \"80\",\n \"s\" : [ {\n \"value\"
492
+ : [ \"where \" ]\n }, {\n \"r\"
493
+ : \"80\",\n \"s\" : [ {\n \"r\"
494
+ : \"77\",\n \"s\" : [ {\n \"r\"
495
+ : \"76\",\n \"s\" : [ {\n \"value\"
496
+ : [ \"P\" ]\n } ]\n },
497
+ {\n \"value\" : [ \".\" ]\n },
498
+ {\n \"r\" : \"77\",\n \"s\"
499
+ : [ {\n \"value\" : [ \"relevantPeriod\"
500
+ ]\n } ]\n }
501
+ ]\n }, {\n \"value\"
502
+ : [ \" \",\"before\",\" \" ]\n }, {\n \"r\"
503
+ : \"79\",\n \"s\" : [ {\n \"value\"
504
+ : [ \"end of \" ]\n }, {\n \"r\"
505
+ : \"78\",\n \"s\" : [ {\n \"value\"
506
+ : [ \"\\\"Measurement Period\\\"\" ]\n }
507
+ ]\n } ]\n }
508
+ ]\n } ]\n } ]\n },
509
+ {\n \"value\" : [ \")\" ]\n }
510
+ ]\n }, {\n \"value\" : [ \"=\",\"2\"
511
+ ]\n } ]\n } ]\n }\n }
512
+ ],\n \"expression\" : {\n \"localId\" : \"84\",\n
513
+ \ \"type\" : \"Equal\",\n \"operand\" : [ {\n \"localId\"
514
+ : \"82\",\n \"type\" : \"Count\",\n \"source\"
515
+ : {\n \"localId\" : \"81\",\n \"type\"
516
+ : \"Query\",\n \"source\" : [ {\n \"localId\"
517
+ : \"75\",\n \"alias\" : \"P\",\n \"expression\"
518
+ : {\n \"localId\" : \"74\",\n \"dataType\"
519
+ : \"{urn:healthit-gov:qdm:v5_0_draft}PositiveProcedurePerformed\",\n \"templateId\"
520
+ : \"PositiveProcedurePerformed\",\n \"codeProperty\"
521
+ : \"code\",\n \"type\" : \"Retrieve\",\n \"codes\"
522
+ : {\n \"name\" : \"Unilateral Mastectomy\",\n
523
+ \ \"type\" : \"ValueSetRef\"\n }\n
524
+ \ }\n } ],\n \"relationship\"
525
+ : [ ],\n \"where\" : {\n \"localId\"
526
+ : \"80\",\n \"type\" : \"Before\",\n \"operand\"
527
+ : [ {\n \"localId\" : \"77\",\n \"path\"
528
+ : \"relevantPeriod\",\n \"scope\" : \"P\",\n \"type\"
529
+ : \"Property\"\n }, {\n \"localId\"
530
+ : \"79\",\n \"type\" : \"End\",\n \"operand\"
531
+ : {\n \"localId\" : \"78\",\n \"name\"
532
+ : \"Measurement Period\",\n \"type\" : \"ParameterRef\"\n
533
+ \ }\n } ]\n }\n
534
+ \ }\n }, {\n \"localId\" :
535
+ \"83\",\n \"valueType\" : \"{urn:hl7-org:elm-types:r1}Integer\",\n
536
+ \ \"value\" : \"2\",\n \"type\" : \"Literal\"\n
537
+ \ } ]\n }\n }, {\n \"localId\"
538
+ : \"97\",\n \"name\" : \"Denom\",\n \"context\" : \"Patient\",\n
539
+ \ \"accessLevel\" : \"Public\",\n \"annotation\" : [
540
+ {\n \"type\" : \"Annotation\",\n \"s\" : {\n \"r\"
541
+ : \"97\",\n \"s\" : [ {\n \"value\" :
542
+ [ \"define \",\"\\\"Denom\\\"\",\": \" ]\n }, {\n \"r\"
543
+ : \"96\",\n \"s\" : [ {\n \"r\"
544
+ : \"93\",\n \"s\" : [ {\n \"r\"
545
+ : \"87\",\n \"s\" : [ {\n \"value\"
546
+ : [ \"exists\" ]\n }, {\n \"r\"
547
+ : \"86\",\n \"s\" : [ {\n \"value\"
548
+ : [ \"(\" ]\n }, {\n \"r\"
549
+ : \"86\",\n \"s\" : [ {\n \"value\"
550
+ : [ \"\\\"Initial Pop\\\"\" ]\n } ]\n },
551
+ {\n \"value\" : [ \")\" ]\n }
552
+ ]\n } ]\n }, {\n \"value\"
553
+ : [ \" and\\n\" ]\n }, {\n \"r\"
554
+ : \"92\",\n \"s\" : [ {\n \"r\"
555
+ : \"90\",\n \"s\" : [ {\n \"value\"
556
+ : [ \"AgeInYearsAt\",\"(\" ]\n }, {\n \"r\"
557
+ : \"89\",\n \"s\" : [ {\n \"value\"
558
+ : [ \"start of \" ]\n }, {\n \"r\"
559
+ : \"88\",\n \"s\" : [ {\n \"value\"
560
+ : [ \"\\\"Measurement Period\\\"\" ]\n }
561
+ ]\n } ]\n },
562
+ {\n \"value\" : [ \")\" ]\n }
563
+ ]\n }, {\n \"value\"
564
+ : [ \"<\",\"74\" ]\n } ]\n }
565
+ ]\n }, {\n \"value\" : [ \"\\nand
566
+ \" ]\n }, {\n \"r\" : \"95\",\n
567
+ \ \"s\" : [ {\n \"value\"
568
+ : [ \"exists\" ]\n }, {\n \"r\"
569
+ : \"94\",\n \"s\" : [ {\n \"value\"
570
+ : [ \"(\" ]\n }, {\n \"r\"
571
+ : \"94\",\n \"s\" : [ {\n \"value\"
572
+ : [ \"[\",\"\\\"Patient Characteristic Sex\\\"\",\": \" ]\n },
573
+ {\n \"s\" : [ {\n \"value\"
574
+ : [ \"\\\"Female\\\"\" ]\n } ]\n },
575
+ {\n \"value\" : [ \"]\" ]\n }
576
+ ]\n }, {\n \"value\"
577
+ : [ \")\" ]\n } ]\n } ]\n
578
+ \ } ]\n } ]\n }\n }
579
+ ],\n \"expression\" : {\n \"localId\" : \"96\",\n
580
+ \ \"type\" : \"And\",\n \"operand\" : [ {\n \"localId\"
581
+ : \"93\",\n \"type\" : \"And\",\n \"operand\"
582
+ : [ {\n \"localId\" : \"87\",\n \"type\"
583
+ : \"Exists\",\n \"operand\" : {\n \"localId\"
584
+ : \"86\",\n \"name\" : \"Initial Pop\",\n \"type\"
585
+ : \"ExpressionRef\"\n }\n }, {\n \"localId\"
586
+ : \"92\",\n \"type\" : \"Less\",\n \"operand\"
587
+ : [ {\n \"localId\" : \"90\",\n \"precision\"
588
+ : \"Year\",\n \"type\" : \"CalculateAgeAt\",\n \"operand\"
589
+ : [ {\n \"path\" : \"birthDatetime\",\n \"type\"
590
+ : \"Property\",\n \"source\" : {\n \"name\"
591
+ : \"Patient\",\n \"type\" : \"ExpressionRef\"\n
592
+ \ }\n }, {\n \"localId\"
593
+ : \"89\",\n \"type\" : \"Start\",\n \"operand\"
594
+ : {\n \"localId\" : \"88\",\n \"name\"
595
+ : \"Measurement Period\",\n \"type\" : \"ParameterRef\"\n
596
+ \ }\n } ]\n },
597
+ {\n \"localId\" : \"91\",\n \"valueType\"
598
+ : \"{urn:hl7-org:elm-types:r1}Integer\",\n \"value\"
599
+ : \"74\",\n \"type\" : \"Literal\"\n }
600
+ ]\n } ]\n }, {\n \"localId\"
601
+ : \"95\",\n \"type\" : \"Exists\",\n \"operand\"
602
+ : {\n \"localId\" : \"94\",\n \"dataType\"
603
+ : \"{urn:healthit-gov:qdm:v5_0_draft}PatientCharacteristicSex\",\n \"type\"
604
+ : \"Retrieve\",\n \"codes\" : {\n \"name\"
605
+ : \"Female\",\n \"type\" : \"ValueSetRef\"\n }\n
606
+ \ }\n } ]\n }\n }, {\n \"localId\"
607
+ : \"109\",\n \"name\" : \"Denom Excl\",\n \"context\"
608
+ : \"Patient\",\n \"accessLevel\" : \"Public\",\n \"annotation\"
609
+ : [ {\n \"type\" : \"Annotation\",\n \"s\" : {\n
610
+ \ \"r\" : \"109\",\n \"s\" : [ {\n \"value\"
611
+ : [ \"define \",\"\\\"Denom Excl\\\"\",\": \" ]\n }, {\n
612
+ \ \"r\" : \"108\",\n \"s\" : [ {\n
613
+ \ \"r\" : \"106\",\n \"s\" :
614
+ [ {\n \"value\" : [ \"exists\" ]\n },
615
+ {\n \"r\" : \"105\",\n \"s\"
616
+ : [ {\n \"value\" : [ \"(\" ]\n },
617
+ {\n \"r\" : \"105\",\n \"s\"
618
+ : [ {\n \"s\" : [ {\n \"r\"
619
+ : \"99\",\n \"s\" : [ {\n \"r\"
620
+ : \"98\",\n \"s\" : [ {\n \"r\"
621
+ : \"98\",\n \"s\" : [ {\n \"value\"
622
+ : [ \"[\",\"\\\"Procedure, Performed\\\"\",\": \" ]\n },
623
+ {\n \"s\" : [ {\n \"value\"
624
+ : [ \"\\\"Bilateral Mastectomy\\\"\" ]\n }
625
+ ]\n }, {\n \"value\"
626
+ : [ \"]\" ]\n } ]\n }
627
+ ]\n }, {\n \"value\"
628
+ : [ \"BIM\" ]\n } ]\n }
629
+ ]\n }, {\n \"value\"
630
+ : [ \"\\n\" ]\n }, {\n \"r\"
631
+ : \"104\",\n \"s\" : [ {\n \"value\"
632
+ : [ \"where \" ]\n }, {\n \"r\"
633
+ : \"104\",\n \"s\" : [ {\n \"r\"
634
+ : \"101\",\n \"s\" : [ {\n \"r\"
635
+ : \"100\",\n \"s\" : [ {\n \"value\"
636
+ : [ \"BIM\" ]\n } ]\n },
637
+ {\n \"value\" : [ \".\" ]\n },
638
+ {\n \"r\" : \"101\",\n \"s\"
639
+ : [ {\n \"value\" : [ \"relevantPeriod\"
640
+ ]\n } ]\n }
641
+ ]\n }, {\n \"value\"
642
+ : [ \" \",\"before\",\" \" ]\n }, {\n \"r\"
643
+ : \"103\",\n \"s\" : [ {\n \"value\"
644
+ : [ \"end of \" ]\n }, {\n \"r\"
645
+ : \"102\",\n \"s\" : [ {\n \"value\"
646
+ : [ \"\\\"Measurement Period\\\"\" ]\n }
647
+ ]\n } ]\n }
648
+ ]\n } ]\n } ]\n
649
+ \ }, {\n \"value\" :
650
+ [ \")\" ]\n } ]\n } ]\n },
651
+ {\n \"value\" : [ \" or \" ]\n },
652
+ {\n \"r\" : \"107\",\n \"s\"
653
+ : [ {\n \"value\" : [ \"\\\"Double Unilateral Mastectomy\\\"\"
654
+ ]\n } ]\n } ]\n }
655
+ ]\n }\n } ],\n \"expression\" : {\n \"localId\"
656
+ : \"108\",\n \"type\" : \"Or\",\n \"operand\"
657
+ : [ {\n \"localId\" : \"106\",\n \"type\"
658
+ : \"Exists\",\n \"operand\" : {\n \"localId\"
659
+ : \"105\",\n \"type\" : \"Query\",\n \"source\"
660
+ : [ {\n \"localId\" : \"99\",\n \"alias\"
661
+ : \"BIM\",\n \"expression\" : {\n \"localId\"
662
+ : \"98\",\n \"dataType\" : \"{urn:healthit-gov:qdm:v5_0_draft}PositiveProcedurePerformed\",\n
663
+ \ \"templateId\" : \"PositiveProcedurePerformed\",\n
664
+ \ \"codeProperty\" : \"code\",\n \"type\"
665
+ : \"Retrieve\",\n \"codes\" : {\n \"name\"
666
+ : \"Bilateral Mastectomy\",\n \"type\" : \"ValueSetRef\"\n
667
+ \ }\n }\n }
668
+ ],\n \"relationship\" : [ ],\n \"where\"
669
+ : {\n \"localId\" : \"104\",\n \"type\"
670
+ : \"Before\",\n \"operand\" : [ {\n \"localId\"
671
+ : \"101\",\n \"path\" : \"relevantPeriod\",\n \"scope\"
672
+ : \"BIM\",\n \"type\" : \"Property\"\n },
673
+ {\n \"localId\" : \"103\",\n \"type\"
674
+ : \"End\",\n \"operand\" : {\n \"localId\"
675
+ : \"102\",\n \"name\" : \"Measurement Period\",\n
676
+ \ \"type\" : \"ParameterRef\"\n }\n
677
+ \ } ]\n }\n }\n
678
+ \ }, {\n \"localId\" : \"107\",\n \"name\"
679
+ : \"Double Unilateral Mastectomy\",\n \"type\" : \"ExpressionRef\"\n
680
+ \ } ]\n }\n } ]\n }\n }\n}\r\n--Boundary_301_382515094_1504886314908--\r\n"
681
+ http_version:
682
+ recorded_at: Fri, 08 Sep 2017 15:58:34 GMT
683
+ - request:
684
+ method: post
685
+ uri: http://localhost:8080/cql/translator
686
+ body:
687
+ encoding: ASCII-8BIT
688
+ string: "--953383\r\nContent-Disposition: form-data; name=\"file[]\"\r\n\r\nlibrary
689
+ BCSTest version '0.0.001'\n\nusing QDM version '5.0'\n\ncodesystem \"LOINC:2.46\":
690
+ 'urn:oid:2.16.840.1.113883.6.1' version 'urn:hl7:version:2.46'\n\ncodesystem
691
+ \"SNOMEDCT:2016-03\": 'urn:oid:2.16.840.1.113883.6.96' version 'urn:hl7:version:2016-03'\n\ncodesystem
692
+ \"CPT:2016\": 'urn:oid:2.16.840.1.113883.6.12' version 'urn:hl7:version:2016'\n\ncodesystem
693
+ \"AdministrativeGender:HL7V3.0_2015-07\": 'urn:oid:2.16.840.1.113883.5.1'
694
+ version 'urn:hl7:version:HL7V3.0_2015-07'\n\ncodesystem \"SNOMEDCT:2016-09\":
695
+ 'urn:oid:2.16.840.1.113883.6.96' version 'urn:hl7:version:2016-09'\n\ncodesystem
696
+ \"LOINC:2.56\": 'urn:oid:2.16.840.1.113883.6.1' version 'urn:hl7:version:2.56'\n\ncodesystem
697
+ \"HCPCS:2016\": 'urn:oid:2.16.840.1.113883.6.285' version 'urn:hl7:version:2016'\n\ncodesystem
698
+ \"CDCREC:1.0\": 'urn:oid:2.16.840.1.113883.6.238' version 'urn:hl7:version:1.0'\n\ncodesystem
699
+ \"SOP:6.0\": 'urn:oid:2.16.840.1.113883.3.221.5' version 'urn:hl7:version:6.0'\n\nvalueset
700
+ \"ONC Administrative Sex\": 'urn:oid:2.16.840.1.113762.1.4.1' codesystems
701
+ {\"AdministrativeGender:HL7V3.0_2015-07\"}\n\nvalueset \"Race\": 'urn:oid:2.16.840.1.114222.4.11.836'
702
+ codesystems {\"CDCREC:1.0\"}\n\nvalueset \"Ethnicity\": 'urn:oid:2.16.840.1.114222.4.11.837'
703
+ codesystems {\"CDCREC:1.0\"}\n\nvalueset \"Payer\": 'urn:oid:2.16.840.1.114222.4.11.3591'
704
+ codesystems {\"SOP:6.0\"}\n\nvalueset \"Mammogram\": 'urn:oid:2.16.840.1.113883.3.464.1003.108.12.1018'
705
+ codesystems {\"LOINC:2.56\", \"HCPCS:2016\"}\n\nvalueset \"Face-to-Face Interaction\":
706
+ 'urn:oid:2.16.840.1.113883.3.464.1003.101.12.1048' codesystems {\"SNOMEDCT:2016-09\"}\n\nvalueset
707
+ \"Home Healthcare Services\": 'urn:oid:2.16.840.1.113883.3.464.1003.101.12.1016'
708
+ codesystems {\"CPT:2016\"}\n\nvalueset \"Office Visit\": 'urn:oid:2.16.840.1.113883.3.464.1003.101.12.1001'
709
+ codesystems {\"CPT:2016\"}\n\nvalueset \"Bilateral Mastectomy\": 'urn:oid:2.16.840.1.113883.3.464.1003.198.12.1005'
710
+ codesystems {\"SNOMEDCT:2016-09\"}\n\nvalueset \"Unilateral Mastectomy\":
711
+ 'urn:oid:2.16.840.1.113883.3.464.1003.198.12.1020' codesystems {\"SNOMEDCT:2016-09\",
712
+ \"CPT:2016\"}\n\nvalueset \"Female\": 'urn:oid:2.16.840.1.113883.3.560.100.2'
713
+ codesystems {\"AdministrativeGender:HL7V3.0_2015-07\"}\n\nparameter \"Measurement
714
+ Period\" Interval<DateTime>\n\ncontext Patient\n\ndefine \"SDE Ethnicity\":
715
+ [\"Patient Characteristic Ethnicity\": \"Ethnicity\"]\n\ndefine \"SDE Payer\":
716
+ [\"Patient Characteristic Payer\": \"Payer\"]\n\ndefine \"SDE Race\": [\"Patient
717
+ Characteristic Race\": \"Race\"]\n\ndefine \"SDE Sex\": [\"Patient Characteristic
718
+ Sex\": \"ONC Administrative Sex\"]\n\ndefine \"Initial Pop\": ([\"Encounter,
719
+ Performed\": \"Office Visit\"]\nunion [\"Encounter, Performed\": \"Face-to-Face
720
+ Interaction\"]\nunion [\"Encounter, Performed\": \"Home Healthcare Services\"])Enc\nwhere
721
+ Enc.relevantPeriod during \"Measurement Period\"\nand AgeInYearsAt(start of
722
+ \"Measurement Period\")>=65\n\ndefine \"Num\": [\"Diagnostic Study, Performed\":
723
+ \"Mammogram\"]Mam\nwhere Mam.relevantPeriod 26 months or less before end of
724
+ \"Measurement Period\"\n\ndefine \"Double Unilateral Mastectomy\": Count([\"Procedure,
725
+ Performed\": \"Unilateral Mastectomy\"]P\nwhere P.relevantPeriod before end
726
+ of \"Measurement Period\")=2\n\ndefine \"Denom\": exists(\"Initial Pop\")
727
+ and\nAgeInYearsAt(start of \"Measurement Period\")<74\nand exists([\"Patient
728
+ Characteristic Sex\": \"Female\"])\n\ndefine \"Denom Excl\": exists([\"Procedure,
729
+ Performed\": \"Bilateral Mastectomy\"]BIM\nwhere BIM.relevantPeriod before
730
+ end of \"Measurement Period\") or \"Double Unilateral Mastectomy\"\n\r\n--953383--\r\n"
731
+ headers:
732
+ Accept:
733
+ - multipart/form-data
734
+ Accept-Encoding:
735
+ - gzip, deflate
736
+ X-Targetformat:
737
+ - application/elm+xml
738
+ Content-Length:
739
+ - '3432'
740
+ Content-Type:
741
+ - multipart/form-data; boundary=953383
742
+ User-Agent:
743
+ - Ruby
744
+ response:
745
+ status:
746
+ code: 200
747
+ message: OK
748
+ headers:
749
+ Mime-Version:
750
+ - '1.0'
751
+ Content-Type:
752
+ - multipart/form-data;boundary=Boundary_302_1150925484_1504886315003
753
+ Date:
754
+ - Fri, 08 Sep 2017 15:58:34 GMT
755
+ Transfer-Encoding:
756
+ - chunked
757
+ body:
758
+ encoding: UTF-8
759
+ string: "--Boundary_302_1150925484_1504886315003\r\nContent-Type: application/elm+xml\r\nContent-Disposition:
760
+ form-data; name=\"file[]\"\r\n\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<library
761
+ xmlns=\"urn:hl7-org:elm:r1\" xmlns:t=\"urn:hl7-org:elm-types:r1\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
762
+ xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:fhir=\"http://hl7.org/fhir\"
763
+ xmlns:a=\"urn:hl7-org:cql-annotations:r1\">\n <annotation startLine=\"49\"
764
+ startChar=\"25\" endLine=\"49\" endChar=\"73\" message=\"Retrieve has a terminology
765
+ target but does not specify a code path and the type of the retrieve does
766
+ not have a primary code path defined.\" errorType=\"semantic\" errorSeverity=\"warning\"
767
+ xsi:type=\"a:CqlToElmError\"/>\n <annotation startLine=\"49\" startChar=\"25\"
768
+ endLine=\"49\" endChar=\"73\" message=\"Could not resolve membership operator
769
+ for terminology target of the retrieve.\" errorType=\"semantic\" errorSeverity=\"warning\"
770
+ xsi:type=\"a:CqlToElmError\"/>\n <annotation startLine=\"51\" startChar=\"21\"
771
+ endLine=\"51\" endChar=\"61\" message=\"Retrieve has a terminology target
772
+ but does not specify a code path and the type of the retrieve does not have
773
+ a primary code path defined.\" errorType=\"semantic\" errorSeverity=\"warning\"
774
+ xsi:type=\"a:CqlToElmError\"/>\n <annotation startLine=\"51\" startChar=\"21\"
775
+ endLine=\"51\" endChar=\"61\" message=\"Could not resolve membership operator
776
+ for terminology target of the retrieve.\" errorType=\"semantic\" errorSeverity=\"warning\"
777
+ xsi:type=\"a:CqlToElmError\"/>\n <annotation startLine=\"53\" startChar=\"20\"
778
+ endLine=\"53\" endChar=\"58\" message=\"Retrieve has a terminology target
779
+ but does not specify a code path and the type of the retrieve does not have
780
+ a primary code path defined.\" errorType=\"semantic\" errorSeverity=\"warning\"
781
+ xsi:type=\"a:CqlToElmError\"/>\n <annotation startLine=\"53\" startChar=\"20\"
782
+ endLine=\"53\" endChar=\"58\" message=\"Could not resolve membership operator
783
+ for terminology target of the retrieve.\" errorType=\"semantic\" errorSeverity=\"warning\"
784
+ xsi:type=\"a:CqlToElmError\"/>\n <annotation startLine=\"55\" startChar=\"19\"
785
+ endLine=\"55\" endChar=\"74\" message=\"Retrieve has a terminology target
786
+ but does not specify a code path and the type of the retrieve does not have
787
+ a primary code path defined.\" errorType=\"semantic\" errorSeverity=\"warning\"
788
+ xsi:type=\"a:CqlToElmError\"/>\n <annotation startLine=\"55\" startChar=\"19\"
789
+ endLine=\"55\" endChar=\"74\" message=\"Could not resolve membership operator
790
+ for terminology target of the retrieve.\" errorType=\"semantic\" errorSeverity=\"warning\"
791
+ xsi:type=\"a:CqlToElmError\"/>\n <annotation startLine=\"71\" startChar=\"12\"
792
+ endLine=\"71\" endChar=\"51\" message=\"Retrieve has a terminology target
793
+ but does not specify a code path and the type of the retrieve does not have
794
+ a primary code path defined.\" errorType=\"semantic\" errorSeverity=\"warning\"
795
+ xsi:type=\"a:CqlToElmError\"/>\n <annotation startLine=\"71\" startChar=\"12\"
796
+ endLine=\"71\" endChar=\"51\" message=\"Could not resolve membership operator
797
+ for terminology target of the retrieve.\" errorType=\"semantic\" errorSeverity=\"warning\"
798
+ xsi:type=\"a:CqlToElmError\"/>\n <identifier id=\"BCSTest\" version=\"0.0.001\"/>\n
799
+ \ <schemaIdentifier id=\"urn:hl7-org:elm\" version=\"r1\"/>\n <usings>\n
800
+ \ <def localIdentifier=\"System\" uri=\"urn:hl7-org:elm-types:r1\"/>\n
801
+ \ <def localId=\"1\" localIdentifier=\"QDM\" uri=\"urn:healthit-gov:qdm:v5_0_draft\"
802
+ version=\"5.0\"/>\n </usings>\n <parameters>\n <def localId=\"37\"
803
+ name=\"Measurement Period\" accessLevel=\"Public\">\n <parameterTypeSpecifier
804
+ localId=\"36\" xsi:type=\"IntervalTypeSpecifier\">\n <pointType
805
+ localId=\"35\" name=\"t:DateTime\" xsi:type=\"NamedTypeSpecifier\"/>\n </parameterTypeSpecifier>\n
806
+ \ </def>\n </parameters>\n <codeSystems>\n <def localId=\"2\"
807
+ name=\"LOINC:2.46\" id=\"urn:oid:2.16.840.1.113883.6.1\" version=\"urn:hl7:version:2.46\"
808
+ accessLevel=\"Public\"/>\n <def localId=\"3\" name=\"SNOMEDCT:2016-03\"
809
+ id=\"urn:oid:2.16.840.1.113883.6.96\" version=\"urn:hl7:version:2016-03\"
810
+ accessLevel=\"Public\"/>\n <def localId=\"4\" name=\"CPT:2016\" id=\"urn:oid:2.16.840.1.113883.6.12\"
811
+ version=\"urn:hl7:version:2016\" accessLevel=\"Public\"/>\n <def localId=\"5\"
812
+ name=\"AdministrativeGender:HL7V3.0_2015-07\" id=\"urn:oid:2.16.840.1.113883.5.1\"
813
+ version=\"urn:hl7:version:HL7V3.0_2015-07\" accessLevel=\"Public\"/>\n <def
814
+ localId=\"6\" name=\"SNOMEDCT:2016-09\" id=\"urn:oid:2.16.840.1.113883.6.96\"
815
+ version=\"urn:hl7:version:2016-09\" accessLevel=\"Public\"/>\n <def localId=\"7\"
816
+ name=\"LOINC:2.56\" id=\"urn:oid:2.16.840.1.113883.6.1\" version=\"urn:hl7:version:2.56\"
817
+ accessLevel=\"Public\"/>\n <def localId=\"8\" name=\"HCPCS:2016\" id=\"urn:oid:2.16.840.1.113883.6.285\"
818
+ version=\"urn:hl7:version:2016\" accessLevel=\"Public\"/>\n <def localId=\"9\"
819
+ name=\"CDCREC:1.0\" id=\"urn:oid:2.16.840.1.113883.6.238\" version=\"urn:hl7:version:1.0\"
820
+ accessLevel=\"Public\"/>\n <def localId=\"10\" name=\"SOP:6.0\" id=\"urn:oid:2.16.840.1.113883.3.221.5\"
821
+ version=\"urn:hl7:version:6.0\" accessLevel=\"Public\"/>\n </codeSystems>\n
822
+ \ <valueSets>\n <def localId=\"12\" name=\"ONC Administrative Sex\"
823
+ id=\"urn:oid:2.16.840.1.113762.1.4.1\" accessLevel=\"Public\">\n <codeSystem
824
+ localId=\"11\" name=\"AdministrativeGender:HL7V3.0_2015-07\"/>\n </def>\n
825
+ \ <def localId=\"14\" name=\"Race\" id=\"urn:oid:2.16.840.1.114222.4.11.836\"
826
+ accessLevel=\"Public\">\n <codeSystem localId=\"13\" name=\"CDCREC:1.0\"/>\n
827
+ \ </def>\n <def localId=\"16\" name=\"Ethnicity\" id=\"urn:oid:2.16.840.1.114222.4.11.837\"
828
+ accessLevel=\"Public\">\n <codeSystem localId=\"15\" name=\"CDCREC:1.0\"/>\n
829
+ \ </def>\n <def localId=\"18\" name=\"Payer\" id=\"urn:oid:2.16.840.1.114222.4.11.3591\"
830
+ accessLevel=\"Public\">\n <codeSystem localId=\"17\" name=\"SOP:6.0\"/>\n
831
+ \ </def>\n <def localId=\"21\" name=\"Mammogram\" id=\"urn:oid:2.16.840.1.113883.3.464.1003.108.12.1018\"
832
+ accessLevel=\"Public\">\n <codeSystem localId=\"19\" name=\"LOINC:2.56\"/>\n
833
+ \ <codeSystem localId=\"20\" name=\"HCPCS:2016\"/>\n </def>\n
834
+ \ <def localId=\"23\" name=\"Face-to-Face Interaction\" id=\"urn:oid:2.16.840.1.113883.3.464.1003.101.12.1048\"
835
+ accessLevel=\"Public\">\n <codeSystem localId=\"22\" name=\"SNOMEDCT:2016-09\"/>\n
836
+ \ </def>\n <def localId=\"25\" name=\"Home Healthcare Services\"
837
+ id=\"urn:oid:2.16.840.1.113883.3.464.1003.101.12.1016\" accessLevel=\"Public\">\n
838
+ \ <codeSystem localId=\"24\" name=\"CPT:2016\"/>\n </def>\n <def
839
+ localId=\"27\" name=\"Office Visit\" id=\"urn:oid:2.16.840.1.113883.3.464.1003.101.12.1001\"
840
+ accessLevel=\"Public\">\n <codeSystem localId=\"26\" name=\"CPT:2016\"/>\n
841
+ \ </def>\n <def localId=\"29\" name=\"Bilateral Mastectomy\" id=\"urn:oid:2.16.840.1.113883.3.464.1003.198.12.1005\"
842
+ accessLevel=\"Public\">\n <codeSystem localId=\"28\" name=\"SNOMEDCT:2016-09\"/>\n
843
+ \ </def>\n <def localId=\"32\" name=\"Unilateral Mastectomy\" id=\"urn:oid:2.16.840.1.113883.3.464.1003.198.12.1020\"
844
+ accessLevel=\"Public\">\n <codeSystem localId=\"30\" name=\"SNOMEDCT:2016-09\"/>\n
845
+ \ <codeSystem localId=\"31\" name=\"CPT:2016\"/>\n </def>\n <def
846
+ localId=\"34\" name=\"Female\" id=\"urn:oid:2.16.840.1.113883.3.560.100.2\"
847
+ accessLevel=\"Public\">\n <codeSystem localId=\"33\" name=\"AdministrativeGender:HL7V3.0_2015-07\"/>\n
848
+ \ </def>\n </valueSets>\n <statements>\n <def name=\"Patient\"
849
+ context=\"Patient\">\n <expression xsi:type=\"SingletonFrom\">\n <operand
850
+ xmlns:ns0=\"urn:healthit-gov:qdm:v5_0_draft\" dataType=\"ns0:Patient\" templateId=\"Patient\"
851
+ xsi:type=\"Retrieve\"/>\n </expression>\n </def>\n <def
852
+ localId=\"39\" name=\"SDE Ethnicity\" context=\"Patient\" accessLevel=\"Public\">\n
853
+ \ <annotation xsi:type=\"a:Annotation\">\n <a:s r=\"39\">\n
854
+ \ <a:s>define &quot;SDE Ethnicity&quot;: </a:s>\n <a:s
855
+ r=\"38\">\n <a:s>[&quot;Patient Characteristic Ethnicity&quot;:
856
+ </a:s>\n <a:s>\n <a:s>&quot;Ethnicity&quot;</a:s>\n
857
+ \ </a:s>\n <a:s>]</a:s>\n </a:s>\n
858
+ \ </a:s>\n </annotation>\n <expression localId=\"38\"
859
+ xmlns:ns1=\"urn:healthit-gov:qdm:v5_0_draft\" dataType=\"ns1:PatientCharacteristicEthnicity\"
860
+ xsi:type=\"Retrieve\">\n <codes name=\"Ethnicity\" xsi:type=\"ValueSetRef\"/>\n
861
+ \ </expression>\n </def>\n <def localId=\"41\" name=\"SDE
862
+ Payer\" context=\"Patient\" accessLevel=\"Public\">\n <annotation
863
+ xsi:type=\"a:Annotation\">\n <a:s r=\"41\">\n <a:s>define
864
+ &quot;SDE Payer&quot;: </a:s>\n <a:s r=\"40\">\n <a:s>[&quot;Patient
865
+ Characteristic Payer&quot;: </a:s>\n <a:s>\n <a:s>&quot;Payer&quot;</a:s>\n
866
+ \ </a:s>\n <a:s>]</a:s>\n </a:s>\n
867
+ \ </a:s>\n </annotation>\n <expression localId=\"40\"
868
+ xmlns:ns2=\"urn:healthit-gov:qdm:v5_0_draft\" dataType=\"ns2:PatientCharacteristicPayer\"
869
+ xsi:type=\"Retrieve\">\n <codes name=\"Payer\" xsi:type=\"ValueSetRef\"/>\n
870
+ \ </expression>\n </def>\n <def localId=\"43\" name=\"SDE
871
+ Race\" context=\"Patient\" accessLevel=\"Public\">\n <annotation xsi:type=\"a:Annotation\">\n
872
+ \ <a:s r=\"43\">\n <a:s>define &quot;SDE Race&quot;:
873
+ </a:s>\n <a:s r=\"42\">\n <a:s>[&quot;Patient
874
+ Characteristic Race&quot;: </a:s>\n <a:s>\n <a:s>&quot;Race&quot;</a:s>\n
875
+ \ </a:s>\n <a:s>]</a:s>\n </a:s>\n
876
+ \ </a:s>\n </annotation>\n <expression localId=\"42\"
877
+ xmlns:ns3=\"urn:healthit-gov:qdm:v5_0_draft\" dataType=\"ns3:PatientCharacteristicRace\"
878
+ xsi:type=\"Retrieve\">\n <codes name=\"Race\" xsi:type=\"ValueSetRef\"/>\n
879
+ \ </expression>\n </def>\n <def localId=\"45\" name=\"SDE
880
+ Sex\" context=\"Patient\" accessLevel=\"Public\">\n <annotation xsi:type=\"a:Annotation\">\n
881
+ \ <a:s r=\"45\">\n <a:s>define &quot;SDE Sex&quot;:
882
+ </a:s>\n <a:s r=\"44\">\n <a:s>[&quot;Patient
883
+ Characteristic Sex&quot;: </a:s>\n <a:s>\n <a:s>&quot;ONC
884
+ Administrative Sex&quot;</a:s>\n </a:s>\n <a:s>]</a:s>\n
885
+ \ </a:s>\n </a:s>\n </annotation>\n <expression
886
+ localId=\"44\" xmlns:ns4=\"urn:healthit-gov:qdm:v5_0_draft\" dataType=\"ns4:PatientCharacteristicSex\"
887
+ xsi:type=\"Retrieve\">\n <codes name=\"ONC Administrative Sex\"
888
+ xsi:type=\"ValueSetRef\"/>\n </expression>\n </def>\n <def
889
+ localId=\"63\" name=\"Initial Pop\" context=\"Patient\" accessLevel=\"Public\">\n
890
+ \ <annotation xsi:type=\"a:Annotation\">\n <a:s r=\"63\">\n
891
+ \ <a:s>define &quot;Initial Pop&quot;: </a:s>\n <a:s
892
+ r=\"62\">\n <a:s>\n <a:s r=\"51\">\n
893
+ \ <a:s r=\"50\">\n <a:s>(</a:s>\n
894
+ \ <a:s r=\"50\">\n <a:s
895
+ r=\"48\">\n <a:s r=\"46\">\n <a:s>[&quot;Encounter,
896
+ Performed&quot;: </a:s>\n <a:s>\n <a:s>&quot;Office
897
+ Visit&quot;</a:s>\n </a:s>\n <a:s>]</a:s>\n
898
+ \ </a:s>\n <a:s>\nunion
899
+ </a:s>\n <a:s r=\"47\">\n <a:s>[&quot;Encounter,
900
+ Performed&quot;: </a:s>\n <a:s>\n <a:s>&quot;Face-to-Face
901
+ Interaction&quot;</a:s>\n </a:s>\n <a:s>]</a:s>\n
902
+ \ </a:s>\n </a:s>\n
903
+ \ <a:s>\nunion </a:s>\n <a:s
904
+ r=\"49\">\n <a:s>[&quot;Encounter, Performed&quot;:
905
+ </a:s>\n <a:s>\n <a:s>&quot;Home
906
+ Healthcare Services&quot;</a:s>\n </a:s>\n
907
+ \ <a:s>]</a:s>\n </a:s>\n
908
+ \ </a:s>\n <a:s>)</a:s>\n
909
+ \ </a:s>\n <a:s>Enc</a:s>\n </a:s>\n
910
+ \ </a:s>\n <a:s>\n</a:s>\n <a:s
911
+ r=\"61\">\n <a:s>where </a:s>\n <a:s
912
+ r=\"61\">\n <a:s r=\"55\">\n <a:s
913
+ r=\"53\">\n <a:s r=\"52\">\n <a:s>Enc</a:s>\n
914
+ \ </a:s>\n <a:s>.</a:s>\n
915
+ \ <a:s r=\"53\">\n <a:s>relevantPeriod</a:s>\n
916
+ \ </a:s>\n </a:s>\n
917
+ \ <a:s> during </a:s>\n <a:s
918
+ r=\"54\">\n <a:s>&quot;Measurement Period&quot;</a:s>\n
919
+ \ </a:s>\n </a:s>\n <a:s>\nand
920
+ </a:s>\n <a:s r=\"60\">\n <a:s
921
+ r=\"58\">\n <a:s>AgeInYearsAt(</a:s>\n <a:s
922
+ r=\"57\">\n <a:s>start of </a:s>\n <a:s
923
+ r=\"56\">\n <a:s>&quot;Measurement Period&quot;</a:s>\n
924
+ \ </a:s>\n </a:s>\n
925
+ \ <a:s>)</a:s>\n </a:s>\n
926
+ \ <a:s>>=65</a:s>\n </a:s>\n
927
+ \ </a:s>\n </a:s>\n </a:s>\n
928
+ \ </a:s>\n </annotation>\n <expression localId=\"62\"
929
+ xsi:type=\"Query\">\n <source localId=\"51\" alias=\"Enc\">\n <expression
930
+ localId=\"50\" xsi:type=\"Union\">\n <operand localId=\"48\"
931
+ xsi:type=\"Union\">\n <operand localId=\"46\" xmlns:ns5=\"urn:healthit-gov:qdm:v5_0_draft\"
932
+ dataType=\"ns5:PositiveEncounterPerformed\" templateId=\"PositiveEncounterPerformed\"
933
+ codeProperty=\"code\" xsi:type=\"Retrieve\">\n <codes
934
+ name=\"Office Visit\" xsi:type=\"ValueSetRef\"/>\n </operand>\n
935
+ \ <operand localId=\"47\" xmlns:ns6=\"urn:healthit-gov:qdm:v5_0_draft\"
936
+ dataType=\"ns6:PositiveEncounterPerformed\" templateId=\"PositiveEncounterPerformed\"
937
+ codeProperty=\"code\" xsi:type=\"Retrieve\">\n <codes
938
+ name=\"Face-to-Face Interaction\" xsi:type=\"ValueSetRef\"/>\n </operand>\n
939
+ \ </operand>\n <operand localId=\"49\" xmlns:ns7=\"urn:healthit-gov:qdm:v5_0_draft\"
940
+ dataType=\"ns7:PositiveEncounterPerformed\" templateId=\"PositiveEncounterPerformed\"
941
+ codeProperty=\"code\" xsi:type=\"Retrieve\">\n <codes
942
+ name=\"Home Healthcare Services\" xsi:type=\"ValueSetRef\"/>\n </operand>\n
943
+ \ </expression>\n </source>\n <where localId=\"61\"
944
+ xsi:type=\"And\">\n <operand localId=\"55\" xsi:type=\"IncludedIn\">\n
945
+ \ <operand localId=\"53\" path=\"relevantPeriod\" scope=\"Enc\"
946
+ xsi:type=\"Property\"/>\n <operand localId=\"54\" name=\"Measurement
947
+ Period\" xsi:type=\"ParameterRef\"/>\n </operand>\n <operand
948
+ localId=\"60\" xsi:type=\"GreaterOrEqual\">\n <operand localId=\"58\"
949
+ precision=\"Year\" xsi:type=\"CalculateAgeAt\">\n <operand
950
+ path=\"birthDatetime\" xsi:type=\"Property\">\n <source
951
+ name=\"Patient\" xsi:type=\"ExpressionRef\"/>\n </operand>\n
952
+ \ <operand localId=\"57\" xsi:type=\"Start\">\n <operand
953
+ localId=\"56\" name=\"Measurement Period\" xsi:type=\"ParameterRef\"/>\n </operand>\n
954
+ \ </operand>\n <operand localId=\"59\" valueType=\"t:Integer\"
955
+ value=\"65\" xsi:type=\"Literal\"/>\n </operand>\n </where>\n
956
+ \ </expression>\n </def>\n <def localId=\"73\" name=\"Num\"
957
+ context=\"Patient\" accessLevel=\"Public\">\n <annotation xsi:type=\"a:Annotation\">\n
958
+ \ <a:s r=\"73\">\n <a:s>define &quot;Num&quot;: </a:s>\n
959
+ \ <a:s r=\"72\">\n <a:s>\n <a:s
960
+ r=\"65\">\n <a:s r=\"64\">\n <a:s
961
+ r=\"64\">\n <a:s>[&quot;Diagnostic Study, Performed&quot;:
962
+ </a:s>\n <a:s>\n <a:s>&quot;Mammogram&quot;</a:s>\n
963
+ \ </a:s>\n <a:s>]</a:s>\n
964
+ \ </a:s>\n </a:s>\n <a:s>Mam</a:s>\n
965
+ \ </a:s>\n </a:s>\n <a:s>\n</a:s>\n
966
+ \ <a:s r=\"71\">\n <a:s>where </a:s>\n
967
+ \ <a:s r=\"71\">\n <a:s r=\"67\">\n
968
+ \ <a:s r=\"66\">\n <a:s>Mam</a:s>\n
969
+ \ </a:s>\n <a:s>.</a:s>\n
970
+ \ <a:s r=\"67\">\n <a:s>relevantPeriod</a:s>\n
971
+ \ </a:s>\n </a:s>\n <a:s>
972
+ </a:s>\n <a:s r=\"71\">\n <a:s
973
+ r=\"70\">\n <a:s>26 months</a:s>\n </a:s>\n
974
+ \ <a:s> or less before</a:s>\n </a:s>\n
975
+ \ <a:s> </a:s>\n <a:s r=\"69\">\n
976
+ \ <a:s>end of </a:s>\n <a:s
977
+ r=\"68\">\n <a:s>&quot;Measurement Period&quot;</a:s>\n
978
+ \ </a:s>\n </a:s>\n </a:s>\n
979
+ \ </a:s>\n </a:s>\n </a:s>\n </annotation>\n
980
+ \ <expression localId=\"72\" xsi:type=\"Query\">\n <source
981
+ localId=\"65\" alias=\"Mam\">\n <expression localId=\"64\" xmlns:ns8=\"urn:healthit-gov:qdm:v5_0_draft\"
982
+ dataType=\"ns8:PositiveDiagnosticStudyPerformed\" templateId=\"PositiveDiagnosticStudyPerformed\"
983
+ codeProperty=\"code\" xsi:type=\"Retrieve\">\n <codes name=\"Mammogram\"
984
+ xsi:type=\"ValueSetRef\"/>\n </expression>\n </source>\n
985
+ \ <where localId=\"71\" xsi:type=\"In\">\n <operand
986
+ xsi:type=\"End\">\n <operand localId=\"67\" path=\"relevantPeriod\"
987
+ scope=\"Mam\" xsi:type=\"Property\"/>\n </operand>\n <operand
988
+ lowClosed=\"true\" highClosed=\"false\" xsi:type=\"Interval\">\n <low
989
+ xsi:type=\"Subtract\">\n <operand localId=\"69\" xsi:type=\"End\">\n
990
+ \ <operand localId=\"68\" name=\"Measurement Period\"
991
+ xsi:type=\"ParameterRef\"/>\n </operand>\n <operand
992
+ localId=\"70\" value=\"26\" unit=\"months\" xsi:type=\"Quantity\"/>\n </low>\n
993
+ \ <high localId=\"69\" xsi:type=\"End\">\n <operand
994
+ localId=\"68\" name=\"Measurement Period\" xsi:type=\"ParameterRef\"/>\n </high>\n
995
+ \ </operand>\n </where>\n </expression>\n
996
+ \ </def>\n <def localId=\"85\" name=\"Double Unilateral Mastectomy\"
997
+ context=\"Patient\" accessLevel=\"Public\">\n <annotation xsi:type=\"a:Annotation\">\n
998
+ \ <a:s r=\"85\">\n <a:s>define &quot;Double Unilateral
999
+ Mastectomy&quot;: </a:s>\n <a:s r=\"84\">\n <a:s
1000
+ r=\"82\">\n <a:s>Count(</a:s>\n <a:s
1001
+ r=\"81\">\n <a:s>\n <a:s
1002
+ r=\"75\">\n <a:s r=\"74\">\n <a:s
1003
+ r=\"74\">\n <a:s>[&quot;Procedure, Performed&quot;:
1004
+ </a:s>\n <a:s>\n <a:s>&quot;Unilateral
1005
+ Mastectomy&quot;</a:s>\n </a:s>\n <a:s>]</a:s>\n
1006
+ \ </a:s>\n </a:s>\n
1007
+ \ <a:s>P</a:s>\n </a:s>\n
1008
+ \ </a:s>\n <a:s>\n</a:s>\n <a:s
1009
+ r=\"80\">\n <a:s>where </a:s>\n <a:s
1010
+ r=\"80\">\n <a:s r=\"77\">\n <a:s
1011
+ r=\"76\">\n <a:s>P</a:s>\n </a:s>\n
1012
+ \ <a:s>.</a:s>\n <a:s
1013
+ r=\"77\">\n <a:s>relevantPeriod</a:s>\n
1014
+ \ </a:s>\n </a:s>\n
1015
+ \ <a:s> before </a:s>\n <a:s
1016
+ r=\"79\">\n <a:s>end of </a:s>\n <a:s
1017
+ r=\"78\">\n <a:s>&quot;Measurement Period&quot;</a:s>\n
1018
+ \ </a:s>\n </a:s>\n
1019
+ \ </a:s>\n </a:s>\n </a:s>\n
1020
+ \ <a:s>)</a:s>\n </a:s>\n <a:s>=2</a:s>\n
1021
+ \ </a:s>\n </a:s>\n </annotation>\n <expression
1022
+ localId=\"84\" xsi:type=\"Equal\">\n <operand localId=\"82\" xsi:type=\"Count\">\n
1023
+ \ <source localId=\"81\" xsi:type=\"Query\">\n <source
1024
+ localId=\"75\" alias=\"P\">\n <expression localId=\"74\"
1025
+ xmlns:ns9=\"urn:healthit-gov:qdm:v5_0_draft\" dataType=\"ns9:PositiveProcedurePerformed\"
1026
+ templateId=\"PositiveProcedurePerformed\" codeProperty=\"code\" xsi:type=\"Retrieve\">\n
1027
+ \ <codes name=\"Unilateral Mastectomy\" xsi:type=\"ValueSetRef\"/>\n
1028
+ \ </expression>\n </source>\n <where
1029
+ localId=\"80\" xsi:type=\"Before\">\n <operand localId=\"77\"
1030
+ path=\"relevantPeriod\" scope=\"P\" xsi:type=\"Property\"/>\n <operand
1031
+ localId=\"79\" xsi:type=\"End\">\n <operand localId=\"78\"
1032
+ name=\"Measurement Period\" xsi:type=\"ParameterRef\"/>\n </operand>\n
1033
+ \ </where>\n </source>\n </operand>\n
1034
+ \ <operand localId=\"83\" valueType=\"t:Integer\" value=\"2\" xsi:type=\"Literal\"/>\n
1035
+ \ </expression>\n </def>\n <def localId=\"97\" name=\"Denom\"
1036
+ context=\"Patient\" accessLevel=\"Public\">\n <annotation xsi:type=\"a:Annotation\">\n
1037
+ \ <a:s r=\"97\">\n <a:s>define &quot;Denom&quot;:
1038
+ </a:s>\n <a:s r=\"96\">\n <a:s r=\"93\">\n
1039
+ \ <a:s r=\"87\">\n <a:s>exists</a:s>\n
1040
+ \ <a:s r=\"86\">\n <a:s>(</a:s>\n
1041
+ \ <a:s r=\"86\">\n <a:s>&quot;Initial
1042
+ Pop&quot;</a:s>\n </a:s>\n <a:s>)</a:s>\n
1043
+ \ </a:s>\n </a:s>\n <a:s>
1044
+ and\n</a:s>\n <a:s r=\"92\">\n <a:s
1045
+ r=\"90\">\n <a:s>AgeInYearsAt(</a:s>\n <a:s
1046
+ r=\"89\">\n <a:s>start of </a:s>\n <a:s
1047
+ r=\"88\">\n <a:s>&quot;Measurement Period&quot;</a:s>\n
1048
+ \ </a:s>\n </a:s>\n
1049
+ \ <a:s>)</a:s>\n </a:s>\n
1050
+ \ <a:s>&lt;74</a:s>\n </a:s>\n </a:s>\n
1051
+ \ <a:s>\nand </a:s>\n <a:s r=\"95\">\n <a:s>exists</a:s>\n
1052
+ \ <a:s r=\"94\">\n <a:s>(</a:s>\n
1053
+ \ <a:s r=\"94\">\n <a:s>[&quot;Patient
1054
+ Characteristic Sex&quot;: </a:s>\n <a:s>\n <a:s>&quot;Female&quot;</a:s>\n
1055
+ \ </a:s>\n <a:s>]</a:s>\n
1056
+ \ </a:s>\n <a:s>)</a:s>\n </a:s>\n
1057
+ \ </a:s>\n </a:s>\n </a:s>\n </annotation>\n
1058
+ \ <expression localId=\"96\" xsi:type=\"And\">\n <operand
1059
+ localId=\"93\" xsi:type=\"And\">\n <operand localId=\"87\" xsi:type=\"Exists\">\n
1060
+ \ <operand localId=\"86\" name=\"Initial Pop\" xsi:type=\"ExpressionRef\"/>\n
1061
+ \ </operand>\n <operand localId=\"92\" xsi:type=\"Less\">\n
1062
+ \ <operand localId=\"90\" precision=\"Year\" xsi:type=\"CalculateAgeAt\">\n
1063
+ \ <operand path=\"birthDatetime\" xsi:type=\"Property\">\n
1064
+ \ <source name=\"Patient\" xsi:type=\"ExpressionRef\"/>\n
1065
+ \ </operand>\n <operand localId=\"89\"
1066
+ xsi:type=\"Start\">\n <operand localId=\"88\" name=\"Measurement
1067
+ Period\" xsi:type=\"ParameterRef\"/>\n </operand>\n </operand>\n
1068
+ \ <operand localId=\"91\" valueType=\"t:Integer\" value=\"74\"
1069
+ xsi:type=\"Literal\"/>\n </operand>\n </operand>\n
1070
+ \ <operand localId=\"95\" xsi:type=\"Exists\">\n <operand
1071
+ localId=\"94\" xmlns:ns10=\"urn:healthit-gov:qdm:v5_0_draft\" dataType=\"ns10:PatientCharacteristicSex\"
1072
+ xsi:type=\"Retrieve\">\n <codes name=\"Female\" xsi:type=\"ValueSetRef\"/>\n
1073
+ \ </operand>\n </operand>\n </expression>\n
1074
+ \ </def>\n <def localId=\"109\" name=\"Denom Excl\" context=\"Patient\"
1075
+ accessLevel=\"Public\">\n <annotation xsi:type=\"a:Annotation\">\n
1076
+ \ <a:s r=\"109\">\n <a:s>define &quot;Denom Excl&quot;:
1077
+ </a:s>\n <a:s r=\"108\">\n <a:s r=\"106\">\n
1078
+ \ <a:s>exists</a:s>\n <a:s r=\"105\">\n
1079
+ \ <a:s>(</a:s>\n <a:s r=\"105\">\n
1080
+ \ <a:s>\n <a:s r=\"99\">\n
1081
+ \ <a:s r=\"98\">\n <a:s
1082
+ r=\"98\">\n <a:s>[&quot;Procedure, Performed&quot;:
1083
+ </a:s>\n <a:s>\n <a:s>&quot;Bilateral
1084
+ Mastectomy&quot;</a:s>\n </a:s>\n <a:s>]</a:s>\n
1085
+ \ </a:s>\n </a:s>\n
1086
+ \ <a:s>BIM</a:s>\n </a:s>\n
1087
+ \ </a:s>\n <a:s>\n</a:s>\n
1088
+ \ <a:s r=\"104\">\n <a:s>where
1089
+ </a:s>\n <a:s r=\"104\">\n <a:s
1090
+ r=\"101\">\n <a:s r=\"100\">\n <a:s>BIM</a:s>\n
1091
+ \ </a:s>\n <a:s>.</a:s>\n
1092
+ \ <a:s r=\"101\">\n <a:s>relevantPeriod</a:s>\n
1093
+ \ </a:s>\n </a:s>\n
1094
+ \ <a:s> before </a:s>\n <a:s
1095
+ r=\"103\">\n <a:s>end of </a:s>\n <a:s
1096
+ r=\"102\">\n <a:s>&quot;Measurement
1097
+ Period&quot;</a:s>\n </a:s>\n </a:s>\n
1098
+ \ </a:s>\n </a:s>\n
1099
+ \ </a:s>\n <a:s>)</a:s>\n </a:s>\n
1100
+ \ </a:s>\n <a:s> or </a:s>\n <a:s
1101
+ r=\"107\">\n <a:s>&quot;Double Unilateral Mastectomy&quot;</a:s>\n
1102
+ \ </a:s>\n </a:s>\n </a:s>\n </annotation>\n
1103
+ \ <expression localId=\"108\" xsi:type=\"Or\">\n <operand
1104
+ localId=\"106\" xsi:type=\"Exists\">\n <operand localId=\"105\"
1105
+ xsi:type=\"Query\">\n <source localId=\"99\" alias=\"BIM\">\n
1106
+ \ <expression localId=\"98\" xmlns:ns11=\"urn:healthit-gov:qdm:v5_0_draft\"
1107
+ dataType=\"ns11:PositiveProcedurePerformed\" templateId=\"PositiveProcedurePerformed\"
1108
+ codeProperty=\"code\" xsi:type=\"Retrieve\">\n <codes
1109
+ name=\"Bilateral Mastectomy\" xsi:type=\"ValueSetRef\"/>\n </expression>\n
1110
+ \ </source>\n <where localId=\"104\" xsi:type=\"Before\">\n
1111
+ \ <operand localId=\"101\" path=\"relevantPeriod\" scope=\"BIM\"
1112
+ xsi:type=\"Property\"/>\n <operand localId=\"103\" xsi:type=\"End\">\n
1113
+ \ <operand localId=\"102\" name=\"Measurement Period\"
1114
+ xsi:type=\"ParameterRef\"/>\n </operand>\n </where>\n
1115
+ \ </operand>\n </operand>\n <operand localId=\"107\"
1116
+ name=\"Double Unilateral Mastectomy\" xsi:type=\"ExpressionRef\"/>\n </expression>\n
1117
+ \ </def>\n </statements>\n</library>\n\r\n--Boundary_302_1150925484_1504886315003--\r\n"
1118
+ http_version:
1119
+ recorded_at: Fri, 08 Sep 2017 15:58:35 GMT
1120
+ recorded_with: VCR 3.0.3