conceptql 0.6.0 → 0.7.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 (126) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +176 -0
  3. data/README.md +4 -2
  4. data/assets/diagram/diagram.css +331 -0
  5. data/assets/diagram/fonts/OFL.txt +93 -0
  6. data/assets/diagram/fonts/Roboto-400.ttf +0 -0
  7. data/assets/diagram/fonts/Roboto-700.ttf +0 -0
  8. data/assets/diagram/fonts/Roboto-Italic-400.ttf +0 -0
  9. data/assets/diagram/fonts/Roboto-Italic-Latin.woff2 +0 -0
  10. data/assets/diagram/fonts/Roboto-Normal-Latin.woff2 +0 -0
  11. data/assets/diagram/operators.svg +224 -0
  12. data/config/vocabularies.csv +85 -85
  13. data/docs/spec/README.md +2624 -0
  14. data/docs/spec/examples/after-operator.json +562 -0
  15. data/docs/spec/examples/any-overlap-operator.json +106 -0
  16. data/docs/spec/examples/before-operator.json +437 -0
  17. data/docs/spec/examples/co-reported-operator.json +168 -0
  18. data/docs/spec/examples/contains-operator.json +97 -0
  19. data/docs/spec/examples/date-range-operator.json +275 -0
  20. data/docs/spec/examples/death-operator.json +103 -0
  21. data/docs/spec/examples/during-operator.json +178 -0
  22. data/docs/spec/examples/episode-operator.json +80 -0
  23. data/docs/spec/examples/equal-operator.json +79 -0
  24. data/docs/spec/examples/ethnicity-operator.json +86 -0
  25. data/docs/spec/examples/except-operator.json +536 -0
  26. data/docs/spec/examples/filter-operator.json +218 -0
  27. data/docs/spec/examples/first-operator.json +148 -0
  28. data/docs/spec/examples/gender-operator.json +257 -0
  29. data/docs/spec/examples/hospice-operator.json +40 -0
  30. data/docs/spec/examples/hospitalization-operator.json +131 -0
  31. data/docs/spec/examples/information-periods-operator.json +131 -0
  32. data/docs/spec/examples/last-operator.json +148 -0
  33. data/docs/spec/examples/match-operator.json +186 -0
  34. data/docs/spec/examples/nth-occurrence-operator.json +300 -0
  35. data/docs/spec/examples/numeric-filter-operator.json +77 -0
  36. data/docs/spec/examples/one-in-two-out-operator.json +158 -0
  37. data/docs/spec/examples/person-filter-operator.json +919 -0
  38. data/docs/spec/examples/person-operator.json +274 -0
  39. data/docs/spec/examples/place-of-service-filter-operator.json +57 -0
  40. data/docs/spec/examples/provenance-operator.json +148 -0
  41. data/docs/spec/examples/provider-filter-operator.json +77 -0
  42. data/docs/spec/examples/race-operator.json +131 -0
  43. data/docs/spec/examples/recall-operator.json +289 -0
  44. data/docs/spec/examples/snf-operator.json +40 -0
  45. data/docs/spec/examples/time-window-operator.json +736 -0
  46. data/docs/spec/examples/trim-date-end-operator.json +201 -0
  47. data/docs/spec/examples/trim-date-start-operator.json +201 -0
  48. data/docs/spec/examples/union-operator.json +547 -0
  49. data/docs/spec/examples/vocabulary-operator.json +232 -0
  50. data/lib/conceptql/behaviors/metadatable.rb +68 -2
  51. data/lib/conceptql/behaviors/provenanceable.rb +4 -1
  52. data/lib/conceptql/behaviors/utilizable.rb +3 -0
  53. data/lib/conceptql/code_case_mismatch_error.rb +50 -0
  54. data/lib/conceptql/data_model/gdm.rb +23 -2
  55. data/lib/conceptql/diagram_renderer/app.rb +59 -0
  56. data/lib/conceptql/diagram_renderer/configuration.rb +87 -0
  57. data/lib/conceptql/diagram_renderer/diagram_data.rb +80 -0
  58. data/lib/conceptql/diagram_renderer/drawing.rb +255 -0
  59. data/lib/conceptql/diagram_renderer/geometry.rb +380 -0
  60. data/lib/conceptql/diagram_renderer/input_error.rb +11 -0
  61. data/lib/conceptql/diagram_renderer/js_format.rb +112 -0
  62. data/lib/conceptql/diagram_renderer/resvg.rb +120 -0
  63. data/lib/conceptql/diagram_renderer/sprite.rb +73 -0
  64. data/lib/conceptql/diagram_renderer/static.rb +70 -0
  65. data/lib/conceptql/diagram_renderer/svg.rb +73 -0
  66. data/lib/conceptql/diagram_renderer/tree_layout.rb +287 -0
  67. data/lib/conceptql/diagram_renderer.rb +82 -0
  68. data/lib/conceptql/lexicon/lexicon_strategy.rb +16 -0
  69. data/lib/conceptql/lexicon.rb +63 -11
  70. data/lib/conceptql/nodifier.rb +5 -3
  71. data/lib/conceptql/operators/after.rb +15 -1
  72. data/lib/conceptql/operators/any_overlap.rb +6 -1
  73. data/lib/conceptql/operators/before.rb +11 -1
  74. data/lib/conceptql/operators/binary_operator_operator.rb +12 -2
  75. data/lib/conceptql/operators/co_reported.rb +9 -4
  76. data/lib/conceptql/operators/contains.rb +6 -1
  77. data/lib/conceptql/operators/count.rb +2 -0
  78. data/lib/conceptql/operators/date_range.rb +15 -3
  79. data/lib/conceptql/operators/death.rb +5 -1
  80. data/lib/conceptql/operators/dedup.rb +2 -0
  81. data/lib/conceptql/operators/during.rb +6 -1
  82. data/lib/conceptql/operators/episode.rb +13 -2
  83. data/lib/conceptql/operators/equal.rb +11 -1
  84. data/lib/conceptql/operators/ethnicity.rb +19 -7
  85. data/lib/conceptql/operators/except.rb +10 -1
  86. data/lib/conceptql/operators/filter.rb +6 -1
  87. data/lib/conceptql/operators/first.rb +19 -9
  88. data/lib/conceptql/operators/from.rb +3 -0
  89. data/lib/conceptql/operators/gender.rb +10 -2
  90. data/lib/conceptql/operators/hospice.rb +7 -1
  91. data/lib/conceptql/operators/hospitalization.rb +6 -1
  92. data/lib/conceptql/operators/information_periods.rb +26 -7
  93. data/lib/conceptql/operators/invalid.rb +4 -0
  94. data/lib/conceptql/operators/last.rb +19 -9
  95. data/lib/conceptql/operators/match.rb +6 -1
  96. data/lib/conceptql/operators/multiple_vocabularies.rb +17 -3
  97. data/lib/conceptql/operators/numeric.rb +4 -0
  98. data/lib/conceptql/operators/numeric_filter.rb +13 -3
  99. data/lib/conceptql/operators/occurrence.rb +33 -12
  100. data/lib/conceptql/operators/one_in_two_out.rb +22 -5
  101. data/lib/conceptql/operators/operator.rb +8 -4
  102. data/lib/conceptql/operators/person.rb +5 -1
  103. data/lib/conceptql/operators/person_filter.rb +14 -1
  104. data/lib/conceptql/operators/place_of_service_filter.rb +14 -3
  105. data/lib/conceptql/operators/provenance.rb +17 -8
  106. data/lib/conceptql/operators/provider_filter.rb +18 -6
  107. data/lib/conceptql/operators/race.rb +14 -9
  108. data/lib/conceptql/operators/read.rb +11 -1
  109. data/lib/conceptql/operators/recall.rb +34 -2
  110. data/lib/conceptql/operators/snf.rb +7 -1
  111. data/lib/conceptql/operators/sum.rb +4 -0
  112. data/lib/conceptql/operators/temporal_operator.rb +4 -2
  113. data/lib/conceptql/operators/time_window.rb +27 -4
  114. data/lib/conceptql/operators/trim_date.rb +6 -14
  115. data/lib/conceptql/operators/trim_date_end.rb +9 -3
  116. data/lib/conceptql/operators/trim_date_start.rb +9 -3
  117. data/lib/conceptql/operators/union.rb +13 -1
  118. data/lib/conceptql/operators/vocabulary.rb +80 -6
  119. data/lib/conceptql/paths.rb +9 -1
  120. data/lib/conceptql/version.rb +1 -1
  121. data/lib/conceptql/vocabularies/drg_systems.rb +3 -2
  122. data/lib/conceptql/vocabularies/entry.rb +14 -11
  123. data/lib/conceptql/vocabularies/vocabulary_class_factory.rb +2 -1
  124. data/lib/conceptql.rb +3 -0
  125. metadata +75 -2
  126. data/doc/spec.md +0 -2091
@@ -0,0 +1,562 @@
1
+ {
2
+ "spec_id": "after-operator",
3
+ "examples": [
4
+ {
5
+ "title": "All MIs that occurred after a patient's first case of diabetes (250.01)",
6
+ "statement": [
7
+ "after",
8
+ {
9
+ "left": ["icd9", "412"],
10
+ "right": ["icd9", "250.01"]
11
+ }
12
+ ],
13
+ "help": true,
14
+ "columns": [
15
+ "person_id",
16
+ "criterion_id",
17
+ "criterion_table",
18
+ "criterion_domain",
19
+ "start_date",
20
+ "end_date",
21
+ "source_value"
22
+ ],
23
+ "rows": [
24
+ [
25
+ 77,
26
+ 58165,
27
+ "observations",
28
+ "condition_occurrence",
29
+ "2010-10-06",
30
+ "2010-10-06",
31
+ "412"
32
+ ],
33
+ [
34
+ 96,
35
+ 20748,
36
+ "observations",
37
+ "condition_occurrence",
38
+ "2008-09-21",
39
+ "2008-09-24",
40
+ "412"
41
+ ],
42
+ [
43
+ 110,
44
+ 62592,
45
+ "observations",
46
+ "condition_occurrence",
47
+ "2010-06-27",
48
+ "2010-06-27",
49
+ "412"
50
+ ],
51
+ [
52
+ 152,
53
+ 84298,
54
+ "observations",
55
+ "condition_occurrence",
56
+ "2010-11-22",
57
+ "2010-11-22",
58
+ "412"
59
+ ],
60
+ [
61
+ 187,
62
+ 87583,
63
+ "observations",
64
+ "condition_occurrence",
65
+ "2010-12-26",
66
+ "2010-12-26",
67
+ "412"
68
+ ],
69
+ [
70
+ 190,
71
+ 61423,
72
+ "observations",
73
+ "condition_occurrence",
74
+ "2009-04-09",
75
+ "2009-04-09",
76
+ "412"
77
+ ],
78
+ [
79
+ 214,
80
+ 83257,
81
+ "observations",
82
+ "condition_occurrence",
83
+ "2009-11-12",
84
+ "2009-11-12",
85
+ "412"
86
+ ],
87
+ [
88
+ 223,
89
+ 38682,
90
+ "observations",
91
+ "condition_occurrence",
92
+ "2008-07-28",
93
+ "2008-07-28",
94
+ "412"
95
+ ],
96
+ [
97
+ 223,
98
+ 39893,
99
+ "observations",
100
+ "condition_occurrence",
101
+ "2008-10-31",
102
+ "2008-10-31",
103
+ "412"
104
+ ]
105
+ ],
106
+ "tree": {
107
+ "format": "conceptql-diagram/v1",
108
+ "statements": [
109
+ {
110
+ "name": "after",
111
+ "base": "filter",
112
+ "humanName": "After",
113
+ "outputTypes": ["condition_occurrence"],
114
+ "parameters": {},
115
+ "values": [],
116
+ "children": [
117
+ {
118
+ "name": "icd9",
119
+ "base": "selection",
120
+ "humanName": "ICD-9 CM",
121
+ "vocabularyId": "ICD9CM",
122
+ "outputTypes": ["condition_occurrence"],
123
+ "parameters": {},
124
+ "values": ["412"],
125
+ "children": [],
126
+ "counts": {
127
+ "condition_occurrence": {
128
+ "rows": 48,
129
+ "n": 37
130
+ }
131
+ }
132
+ },
133
+ {
134
+ "name": "icd9",
135
+ "base": "selection",
136
+ "humanName": "ICD-9 CM",
137
+ "vocabularyId": "ICD9CM",
138
+ "outputTypes": ["condition_occurrence"],
139
+ "parameters": {},
140
+ "values": ["250.01"],
141
+ "children": [],
142
+ "counts": {
143
+ "condition_occurrence": {
144
+ "rows": 82,
145
+ "n": 45
146
+ }
147
+ }
148
+ }
149
+ ],
150
+ "counts": {
151
+ "condition_occurrence": {
152
+ "rows": 9,
153
+ "n": 8
154
+ }
155
+ }
156
+ }
157
+ ]
158
+ }
159
+ },
160
+ {
161
+ "title": "Prescriptions of interest within three days after an office visit",
162
+ "statement": [
163
+ "after",
164
+ {
165
+ "left": [
166
+ "ndc",
167
+ "61392070054",
168
+ "65084025214",
169
+ "65726040125",
170
+ {
171
+ "label": "Prescriptions of Interest"
172
+ }
173
+ ],
174
+ "right": [
175
+ "cpt",
176
+ "99214",
177
+ {
178
+ "label": "Office Visit"
179
+ }
180
+ ],
181
+ "within": "3d"
182
+ }
183
+ ],
184
+ "help": true,
185
+ "columns": [
186
+ "person_id",
187
+ "criterion_id",
188
+ "criterion_table",
189
+ "criterion_domain",
190
+ "start_date",
191
+ "end_date",
192
+ "source_value"
193
+ ],
194
+ "rows": [
195
+ [
196
+ 207,
197
+ 11312,
198
+ "observations",
199
+ "drug_exposure",
200
+ "2010-08-13",
201
+ "2010-08-13",
202
+ "61392070054"
203
+ ]
204
+ ],
205
+ "tree": {
206
+ "format": "conceptql-diagram/v1",
207
+ "statements": [
208
+ {
209
+ "name": "after",
210
+ "base": "filter",
211
+ "humanName": "After",
212
+ "outputTypes": ["drug_exposure"],
213
+ "parameters": {
214
+ "within": "3d"
215
+ },
216
+ "values": [],
217
+ "children": [
218
+ {
219
+ "name": "ndc",
220
+ "base": "selection",
221
+ "humanName": "National Drug Code (FDA and manufacturers)",
222
+ "vocabularyId": "NDC",
223
+ "outputTypes": ["drug_exposure"],
224
+ "parameters": {
225
+ "label": "Prescriptions of Interest"
226
+ },
227
+ "values": ["61392070054", "65084025214", "65726040125"],
228
+ "children": [],
229
+ "counts": {
230
+ "drug_exposure": {
231
+ "rows": 9,
232
+ "n": 8
233
+ }
234
+ }
235
+ },
236
+ {
237
+ "name": "cpt",
238
+ "base": "selection",
239
+ "humanName": "CPT",
240
+ "vocabularyId": "CPT4",
241
+ "outputTypes": ["procedure_occurrence"],
242
+ "parameters": {
243
+ "label": "Office Visit"
244
+ },
245
+ "values": ["99214"],
246
+ "children": [],
247
+ "counts": {
248
+ "procedure_occurrence": {
249
+ "rows": 1073,
250
+ "n": 175
251
+ }
252
+ }
253
+ }
254
+ ],
255
+ "counts": {
256
+ "drug_exposure": {
257
+ "rows": 1,
258
+ "n": 1
259
+ }
260
+ }
261
+ }
262
+ ]
263
+ }
264
+ },
265
+ {
266
+ "title": "Heart attack diagnoses more than 1 week after a diagnosis of diabetes",
267
+ "statement": [
268
+ "after",
269
+ {
270
+ "left": [
271
+ "icd9",
272
+ "410.00",
273
+ "410.01",
274
+ "410.10",
275
+ "410.11",
276
+ {
277
+ "label": "Heart Attack Dx"
278
+ }
279
+ ],
280
+ "right": [
281
+ "icd9",
282
+ "250.01",
283
+ {
284
+ "label": "Diabetes Dx"
285
+ }
286
+ ],
287
+ "at_least": "1w"
288
+ }
289
+ ],
290
+ "help": true,
291
+ "columns": [
292
+ "person_id",
293
+ "criterion_id",
294
+ "criterion_table",
295
+ "criterion_domain",
296
+ "start_date",
297
+ "end_date",
298
+ "source_value"
299
+ ],
300
+ "rows": [
301
+ [
302
+ 58,
303
+ 79480,
304
+ "observations",
305
+ "condition_occurrence",
306
+ "2009-02-24",
307
+ "2009-02-24",
308
+ "41011"
309
+ ]
310
+ ],
311
+ "tree": {
312
+ "format": "conceptql-diagram/v1",
313
+ "statements": [
314
+ {
315
+ "name": "after",
316
+ "base": "filter",
317
+ "humanName": "After",
318
+ "outputTypes": ["condition_occurrence"],
319
+ "parameters": {
320
+ "at_least": "1w"
321
+ },
322
+ "values": [],
323
+ "children": [
324
+ {
325
+ "name": "icd9",
326
+ "base": "selection",
327
+ "humanName": "ICD-9 CM",
328
+ "vocabularyId": "ICD9CM",
329
+ "outputTypes": ["condition_occurrence"],
330
+ "parameters": {
331
+ "label": "Heart Attack Dx"
332
+ },
333
+ "values": ["410.00", "410.01", "410.10", "410.11"],
334
+ "children": [],
335
+ "counts": {
336
+ "condition_occurrence": {
337
+ "rows": 13,
338
+ "n": 8
339
+ }
340
+ }
341
+ },
342
+ {
343
+ "name": "icd9",
344
+ "base": "selection",
345
+ "humanName": "ICD-9 CM",
346
+ "vocabularyId": "ICD9CM",
347
+ "outputTypes": ["condition_occurrence"],
348
+ "parameters": {
349
+ "label": "Diabetes Dx"
350
+ },
351
+ "values": ["250.01"],
352
+ "children": [],
353
+ "counts": {
354
+ "condition_occurrence": {
355
+ "rows": 82,
356
+ "n": 45
357
+ }
358
+ }
359
+ }
360
+ ],
361
+ "counts": {
362
+ "condition_occurrence": {
363
+ "rows": 1,
364
+ "n": 1
365
+ }
366
+ }
367
+ }
368
+ ]
369
+ }
370
+ },
371
+ {
372
+ "title": "All MIs that occurred after a male patient's 50th birthday",
373
+ "statement": [
374
+ "after",
375
+ {
376
+ "left": ["icd9", "412"],
377
+ "right": [
378
+ "time_window",
379
+ ["gender", "Male"],
380
+ {
381
+ "start": "50y",
382
+ "end": "50y"
383
+ }
384
+ ]
385
+ }
386
+ ],
387
+ "help": true,
388
+ "columns": [
389
+ "person_id",
390
+ "criterion_id",
391
+ "criterion_table",
392
+ "criterion_domain",
393
+ "start_date",
394
+ "end_date",
395
+ "source_value"
396
+ ],
397
+ "rows": [
398
+ [
399
+ 54,
400
+ 74606,
401
+ "observations",
402
+ "condition_occurrence",
403
+ "2008-06-05",
404
+ "2008-06-05",
405
+ "412"
406
+ ],
407
+ [
408
+ 60,
409
+ 986,
410
+ "observations",
411
+ "condition_occurrence",
412
+ "2009-07-19",
413
+ "2009-07-22",
414
+ "412"
415
+ ],
416
+ [
417
+ 93,
418
+ 82295,
419
+ "observations",
420
+ "condition_occurrence",
421
+ "2009-11-08",
422
+ "2009-11-08",
423
+ "412"
424
+ ],
425
+ [
426
+ 96,
427
+ 20748,
428
+ "observations",
429
+ "condition_occurrence",
430
+ "2008-09-21",
431
+ "2008-09-24",
432
+ "412"
433
+ ],
434
+ [
435
+ 109,
436
+ 89334,
437
+ "observations",
438
+ "condition_occurrence",
439
+ "2010-07-06",
440
+ "2010-07-06",
441
+ "412"
442
+ ],
443
+ [
444
+ 110,
445
+ 62592,
446
+ "observations",
447
+ "condition_occurrence",
448
+ "2010-06-27",
449
+ "2010-06-27",
450
+ "412"
451
+ ],
452
+ [
453
+ 131,
454
+ 172,
455
+ "observations",
456
+ "condition_occurrence",
457
+ "2008-03-22",
458
+ "2008-03-23",
459
+ "412"
460
+ ],
461
+ [
462
+ 149,
463
+ 28518,
464
+ "observations",
465
+ "condition_occurrence",
466
+ "2008-04-07",
467
+ "2008-04-07",
468
+ "412"
469
+ ],
470
+ [
471
+ 152,
472
+ 82988,
473
+ "observations",
474
+ "condition_occurrence",
475
+ "2008-08-16",
476
+ "2008-08-16",
477
+ "412"
478
+ ],
479
+ [
480
+ 152,
481
+ 84298,
482
+ "observations",
483
+ "condition_occurrence",
484
+ "2010-11-22",
485
+ "2010-11-22",
486
+ "412"
487
+ ]
488
+ ],
489
+ "tree": {
490
+ "format": "conceptql-diagram/v1",
491
+ "statements": [
492
+ {
493
+ "name": "after",
494
+ "base": "filter",
495
+ "humanName": "After",
496
+ "outputTypes": ["condition_occurrence"],
497
+ "parameters": {},
498
+ "values": [],
499
+ "children": [
500
+ {
501
+ "name": "icd9",
502
+ "base": "selection",
503
+ "humanName": "ICD-9 CM",
504
+ "vocabularyId": "ICD9CM",
505
+ "outputTypes": ["condition_occurrence"],
506
+ "parameters": {},
507
+ "values": ["412"],
508
+ "children": [],
509
+ "counts": {
510
+ "condition_occurrence": {
511
+ "rows": 48,
512
+ "n": 37
513
+ }
514
+ }
515
+ },
516
+ {
517
+ "name": "time_window",
518
+ "base": "temporal",
519
+ "humanName": "Time Window",
520
+ "outputTypes": ["person"],
521
+ "parameters": {
522
+ "start": "50y",
523
+ "end": "50y"
524
+ },
525
+ "values": [],
526
+ "children": [
527
+ {
528
+ "name": "gender",
529
+ "base": "selection",
530
+ "humanName": "Gender",
531
+ "outputTypes": ["person"],
532
+ "parameters": {},
533
+ "values": ["Male"],
534
+ "children": [],
535
+ "counts": {
536
+ "person": {
537
+ "rows": 124,
538
+ "n": 124
539
+ }
540
+ }
541
+ }
542
+ ],
543
+ "counts": {
544
+ "person": {
545
+ "rows": 124,
546
+ "n": 124
547
+ }
548
+ }
549
+ }
550
+ ],
551
+ "counts": {
552
+ "condition_occurrence": {
553
+ "rows": 28,
554
+ "n": 20
555
+ }
556
+ }
557
+ }
558
+ ]
559
+ }
560
+ }
561
+ ]
562
+ }
@@ -0,0 +1,106 @@
1
+ {
2
+ "spec_id": "any-overlap-operator",
3
+ "examples": [
4
+ {
5
+ "title": "All MIs that overlap with the month of 2010-06",
6
+ "statement": [
7
+ "any_overlap",
8
+ {
9
+ "left": ["icd9", "412"],
10
+ "right": [
11
+ "date_range",
12
+ {
13
+ "start": "2010-06-01",
14
+ "end": "2010-06-30"
15
+ }
16
+ ]
17
+ }
18
+ ],
19
+ "help": true,
20
+ "columns": [
21
+ "person_id",
22
+ "criterion_id",
23
+ "criterion_table",
24
+ "criterion_domain",
25
+ "start_date",
26
+ "end_date",
27
+ "source_value"
28
+ ],
29
+ "rows": [
30
+ [
31
+ 110,
32
+ 62592,
33
+ "observations",
34
+ "condition_occurrence",
35
+ "2010-06-27",
36
+ "2010-06-27",
37
+ "412"
38
+ ],
39
+ [
40
+ 217,
41
+ 56467,
42
+ "observations",
43
+ "condition_occurrence",
44
+ "2010-06-22",
45
+ "2010-06-23",
46
+ "412"
47
+ ]
48
+ ],
49
+ "tree": {
50
+ "format": "conceptql-diagram/v1",
51
+ "statements": [
52
+ {
53
+ "name": "any_overlap",
54
+ "base": "filter",
55
+ "humanName": "Any Overlap",
56
+ "outputTypes": ["condition_occurrence"],
57
+ "parameters": {},
58
+ "values": [],
59
+ "children": [
60
+ {
61
+ "name": "icd9",
62
+ "base": "selection",
63
+ "humanName": "ICD-9 CM",
64
+ "vocabularyId": "ICD9CM",
65
+ "outputTypes": ["condition_occurrence"],
66
+ "parameters": {},
67
+ "values": ["412"],
68
+ "children": [],
69
+ "counts": {
70
+ "condition_occurrence": {
71
+ "rows": 48,
72
+ "n": 37
73
+ }
74
+ }
75
+ },
76
+ {
77
+ "name": "date_range",
78
+ "base": "selection",
79
+ "humanName": "Date Range",
80
+ "outputTypes": ["person"],
81
+ "parameters": {
82
+ "start": "2010-06-01",
83
+ "end": "2010-06-30"
84
+ },
85
+ "values": [],
86
+ "children": [],
87
+ "counts": {
88
+ "person": {
89
+ "rows": 249,
90
+ "n": 249
91
+ }
92
+ }
93
+ }
94
+ ],
95
+ "counts": {
96
+ "condition_occurrence": {
97
+ "rows": 2,
98
+ "n": 2
99
+ }
100
+ }
101
+ }
102
+ ]
103
+ }
104
+ }
105
+ ]
106
+ }