hqmf2js 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.travis.yml +1 -1
- data/Gemfile +1 -25
- data/Gemfile.lock +170 -146
- data/app/assets/javascripts/crosswalk.js.coffee +17 -19
- data/app/assets/javascripts/custom_calculations.js.coffee +44 -17
- data/app/assets/javascripts/hqmf_util.js.coffee +559 -161
- data/app/assets/javascripts/logging_utils.js.coffee +6 -4
- data/app/assets/javascripts/patient_api_extension.js.coffee +41 -9
- data/app/assets/javascripts/specifics.js.coffee +163 -69
- data/hqmf2js.gemspec +7 -12
- data/lib/assets/javascripts/libraries/map_reduce_utils.js +151 -64
- data/lib/generator/characteristic.js.erb +23 -12
- data/lib/generator/codes_to_json.rb +1 -1
- data/lib/generator/data_criteria.js.erb +15 -3
- data/lib/generator/derived_data.js.erb +5 -0
- data/lib/generator/execution.rb +41 -11
- data/lib/generator/js.rb +74 -41
- data/lib/generator/patient_data.js.erb +1 -1
- data/lib/hqmf2js.rb +0 -1
- data/lib/hquery/engine.rb +3 -1
- data/lib/tasks/convert.rake +20 -12
- data/test/fixtures/NQF59New.json +1423 -0
- data/test/fixtures/fulfills.xml +917 -0
- data/test/fixtures/patients/larry_vanderman.json +573 -654
- data/test/{simplecov.rb → simplecov_init.rb} +0 -0
- data/test/test_helper.rb +2 -3
- data/test/unit/cmd_test.rb +145 -19
- data/test/unit/codes_to_json_test.rb +12 -12
- data/test/unit/custom_calculations_test.rb +2 -6
- data/test/unit/effective_date_test.rb +3 -4
- data/test/unit/erb_context_test.rb +12 -12
- data/test/unit/filter_by_reference_test.rb +39 -0
- data/test/unit/hqmf_from_json_javascript_test.rb +2 -1
- data/test/unit/hqmf_javascript_test.rb +12 -13
- data/test/unit/js_object_test.rb +2 -2
- data/test/unit/library_function_test.rb +210 -42
- data/test/unit/specifics_test.rb +402 -321
- metadata +57 -15
- data/config/warble.rb +0 -144
@@ -1,655 +1,574 @@
|
|
1
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
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
"
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
"
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
{
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
"
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
"
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
]
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
"
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
{
|
231
|
-
|
232
|
-
|
233
|
-
}
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
"
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
"
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
"
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
"
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
"
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
{
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
"
|
431
|
-
|
432
|
-
|
433
|
-
"
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
{
|
441
|
-
|
442
|
-
|
443
|
-
}
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
"
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
{
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
"
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
},
|
576
|
-
"description": "Systolic Blood Pressure",
|
577
|
-
"time": 1270094400,
|
578
|
-
"values": [
|
579
|
-
{
|
580
|
-
"scalar": 136,
|
581
|
-
"units": "mm[Hg]"
|
582
|
-
}
|
583
|
-
]
|
584
|
-
},
|
585
|
-
{
|
586
|
-
"codes": {
|
587
|
-
"SNOMED-CT": [
|
588
|
-
"271650006"
|
589
|
-
]
|
590
|
-
},
|
591
|
-
"description": "Diastolic Blood Pressure",
|
592
|
-
"time": 1270094400,
|
593
|
-
"values": [
|
594
|
-
{
|
595
|
-
"scalar": 84,
|
596
|
-
"units": "mm[Hg]"
|
597
|
-
}
|
598
|
-
]
|
599
|
-
},
|
600
|
-
{
|
601
|
-
"codes": {
|
602
|
-
"LOINC": [
|
603
|
-
"39156-5"
|
604
|
-
],
|
605
|
-
"SNOMED-CT": [
|
606
|
-
"60621009"
|
607
|
-
]
|
608
|
-
},
|
609
|
-
"description": "BMI",
|
610
|
-
"time": 1285992000,
|
611
|
-
"values": [
|
612
|
-
{
|
613
|
-
"scalar": 30.84591836734694,
|
614
|
-
"units": null
|
615
|
-
}
|
616
|
-
]
|
617
|
-
},
|
618
|
-
{
|
619
|
-
"codes": {
|
620
|
-
"LOINC": [
|
621
|
-
"39156-5"
|
622
|
-
],
|
623
|
-
"SNOMED-CT": [
|
624
|
-
"60621009"
|
625
|
-
]
|
626
|
-
},
|
627
|
-
"description": "BMI",
|
628
|
-
"time": 1283313600,
|
629
|
-
"values": [
|
630
|
-
{
|
631
|
-
"scalar": 30.27204081632653,
|
632
|
-
"units": null
|
633
|
-
}
|
634
|
-
]
|
635
|
-
},
|
636
|
-
{
|
637
|
-
"codes": {
|
638
|
-
"LOINC": [
|
639
|
-
"39156-5"
|
640
|
-
],
|
641
|
-
"SNOMED-CT": [
|
642
|
-
"60621009"
|
643
|
-
]
|
644
|
-
},
|
645
|
-
"description": "BMI",
|
646
|
-
"time": 1277265600,
|
647
|
-
"values": [
|
648
|
-
{
|
649
|
-
"scalar": 31.56326530612245,
|
650
|
-
"units": null
|
651
|
-
}
|
652
|
-
]
|
653
|
-
}
|
654
|
-
]
|
655
|
-
}
|
2
|
+
"addresses": null,
|
3
|
+
"allergies": [],
|
4
|
+
"birthdate": 160117200,
|
5
|
+
"care_goals": [{
|
6
|
+
"codes": {
|
7
|
+
"CPT": [
|
8
|
+
"97804"
|
9
|
+
],
|
10
|
+
"HCPCS": [
|
11
|
+
"S9470"
|
12
|
+
],
|
13
|
+
"ICD-9-CM": [
|
14
|
+
"V65.3"
|
15
|
+
],
|
16
|
+
"SNOMED-CT": [
|
17
|
+
"305849009"
|
18
|
+
]
|
19
|
+
},
|
20
|
+
"description": "follow-up plan_BMI management",
|
21
|
+
"time": 1283313600
|
22
|
+
}],
|
23
|
+
"conditions": [{
|
24
|
+
"codes": {
|
25
|
+
"ICD-10-CM": [
|
26
|
+
"E11.9"
|
27
|
+
],
|
28
|
+
"ICD-9-CM": [
|
29
|
+
"250"
|
30
|
+
],
|
31
|
+
"SNOMED-CT": [
|
32
|
+
"73211009"
|
33
|
+
]
|
34
|
+
},
|
35
|
+
"description": "diabetes",
|
36
|
+
"status": "active",
|
37
|
+
"time": 1270094400
|
38
|
+
}, {
|
39
|
+
"codes": {
|
40
|
+
"ICD-10-CM": [
|
41
|
+
"J45"
|
42
|
+
],
|
43
|
+
"ICD-9-CM": [
|
44
|
+
"493.92"
|
45
|
+
],
|
46
|
+
"SNOMED-CT": [
|
47
|
+
"195979001"
|
48
|
+
]
|
49
|
+
},
|
50
|
+
"description": "Asthma",
|
51
|
+
"status": "active",
|
52
|
+
"time": 1270094400
|
53
|
+
}, {
|
54
|
+
"codes": {
|
55
|
+
"ICD-10-CM": [
|
56
|
+
"I10"
|
57
|
+
],
|
58
|
+
"ICD-9-CM": [
|
59
|
+
"401.9"
|
60
|
+
],
|
61
|
+
"SNOMED-CT": [
|
62
|
+
"59621000"
|
63
|
+
]
|
64
|
+
},
|
65
|
+
"description": "Hypertension",
|
66
|
+
"status": "active",
|
67
|
+
"time": 1270094400
|
68
|
+
}, {
|
69
|
+
"codes": {
|
70
|
+
"SNOMED-CT": [
|
71
|
+
"370202007"
|
72
|
+
]
|
73
|
+
},
|
74
|
+
"description": "Asthma Daytime Symptoms Quantified",
|
75
|
+
"time": 1270094400
|
76
|
+
}, {
|
77
|
+
"codes": {
|
78
|
+
"SNOMED-CT": [
|
79
|
+
"370205009"
|
80
|
+
]
|
81
|
+
},
|
82
|
+
"description": "Asthma Nighttime Symptoms Quantified",
|
83
|
+
"time": 1270094400
|
84
|
+
}],
|
85
|
+
"encounters": [{
|
86
|
+
"codes": {
|
87
|
+
"CPT": [
|
88
|
+
"99213"
|
89
|
+
],
|
90
|
+
"ICD-9-CM": [
|
91
|
+
"V70.0"
|
92
|
+
]
|
93
|
+
},
|
94
|
+
"description": "Encounter Outpatient",
|
95
|
+
"facility": {
|
96
|
+
"name": "Outpatient Clinic",
|
97
|
+
"start_time": 1290166000,
|
98
|
+
"end_time": 1291166000,
|
99
|
+
"code": {
|
100
|
+
"code": "bar",
|
101
|
+
"code_system": "SNOMED-CT"
|
102
|
+
}
|
103
|
+
},
|
104
|
+
"end_time": 1291266000
|
105
|
+
}, {
|
106
|
+
"codes": {
|
107
|
+
"CPT": [
|
108
|
+
"99241"
|
109
|
+
]
|
110
|
+
},
|
111
|
+
"description": "Encounter Office & Outpatient Consult",
|
112
|
+
"time": 1283313600
|
113
|
+
}, {
|
114
|
+
"codes": {
|
115
|
+
"CPT": [
|
116
|
+
"99213"
|
117
|
+
],
|
118
|
+
"ICD-9-CM": [
|
119
|
+
"V70.0"
|
120
|
+
]
|
121
|
+
},
|
122
|
+
"description": "Encounter Outpatient",
|
123
|
+
"time": 1277265600
|
124
|
+
}, {
|
125
|
+
"codes": {
|
126
|
+
"CPT": [
|
127
|
+
"99241"
|
128
|
+
]
|
129
|
+
},
|
130
|
+
"description": "Encounter Office & Outpatient Consult",
|
131
|
+
"time": 1270094400
|
132
|
+
}],
|
133
|
+
"ethnicity": "Not Hispanic or Latino",
|
134
|
+
"first": "Larry",
|
135
|
+
"gender": "M",
|
136
|
+
"immunizations": [],
|
137
|
+
"languages": null,
|
138
|
+
"last": "Vanderman",
|
139
|
+
"medical_equipment": [],
|
140
|
+
"medications": [{
|
141
|
+
"codes": {
|
142
|
+
"RxNorm": [
|
143
|
+
"847207"
|
144
|
+
]
|
145
|
+
},
|
146
|
+
"dose": {
|
147
|
+
"unit": "mg",
|
148
|
+
"value": "1"
|
149
|
+
},
|
150
|
+
"description": "Insulin",
|
151
|
+
"time": 1278475200,
|
152
|
+
"administrationTiming": {
|
153
|
+
"period": {
|
154
|
+
"unit": "h",
|
155
|
+
"value": 8
|
156
|
+
}
|
157
|
+
},
|
158
|
+
"fulfillmentHistory": [{
|
159
|
+
"dispenseDate": 1278475200,
|
160
|
+
"quantityDispensed": {
|
161
|
+
"value": "15"
|
162
|
+
}
|
163
|
+
}]
|
164
|
+
}, {
|
165
|
+
"codes": {
|
166
|
+
"RxNorm": [
|
167
|
+
"617314"
|
168
|
+
]
|
169
|
+
},
|
170
|
+
"description": "Lipid Lowering Therapy",
|
171
|
+
"time": 1277265600
|
172
|
+
}, {
|
173
|
+
"codes": {
|
174
|
+
"RxNorm": [
|
175
|
+
"858828"
|
176
|
+
]
|
177
|
+
},
|
178
|
+
"description": "Antihypertensive combinations",
|
179
|
+
"time": 1277265600
|
180
|
+
}, {
|
181
|
+
"codes": {
|
182
|
+
"RxNorm": [
|
183
|
+
"318142"
|
184
|
+
]
|
185
|
+
},
|
186
|
+
"description": "Long acting inhaled beta 2 agonist",
|
187
|
+
"time": 1277265600
|
188
|
+
}, {
|
189
|
+
"codes": {
|
190
|
+
"RxNorm": [
|
191
|
+
"630208"
|
192
|
+
]
|
193
|
+
},
|
194
|
+
"description": "Short acting beta 2 agonist",
|
195
|
+
"time": 1277265600
|
196
|
+
}],
|
197
|
+
"procedures": [{
|
198
|
+
"codes": {
|
199
|
+
"SNOMED-CT": [
|
200
|
+
"401191002"
|
201
|
+
]
|
202
|
+
},
|
203
|
+
"description": "Foot Exam",
|
204
|
+
"time": 1291266000,
|
205
|
+
"incisionTime": 1112587200,
|
206
|
+
"values": [{
|
207
|
+
"scalar": "Normal",
|
208
|
+
"units": null
|
209
|
+
}]
|
210
|
+
}, {
|
211
|
+
"codes": {
|
212
|
+
"SNOMED-CT": [
|
213
|
+
"401191002"
|
214
|
+
]
|
215
|
+
},
|
216
|
+
"description": "Foot Exam",
|
217
|
+
"time": 1283313600,
|
218
|
+
"values": [{
|
219
|
+
"scalar": "Normal",
|
220
|
+
"units": null
|
221
|
+
}]
|
222
|
+
}, {
|
223
|
+
"codes": {
|
224
|
+
"SNOMED-CT": [
|
225
|
+
"401191002"
|
226
|
+
]
|
227
|
+
},
|
228
|
+
"description": "Foot Exam",
|
229
|
+
"time": 1277265600,
|
230
|
+
"values": [{
|
231
|
+
"scalar": "Normal",
|
232
|
+
"units": null
|
233
|
+
}]
|
234
|
+
}, {
|
235
|
+
"codes": {
|
236
|
+
"SNOMED-CT": [
|
237
|
+
"401191002"
|
238
|
+
]
|
239
|
+
},
|
240
|
+
"description": "Foot Exam",
|
241
|
+
"time": 1270094400,
|
242
|
+
"values": [{
|
243
|
+
"scalar": "Normal",
|
244
|
+
"units": null
|
245
|
+
}]
|
246
|
+
}, {
|
247
|
+
"codes": {
|
248
|
+
"CPT": [
|
249
|
+
"97802"
|
250
|
+
],
|
251
|
+
"HCPCS": [
|
252
|
+
"S9470"
|
253
|
+
],
|
254
|
+
"ICD-10-CM": [
|
255
|
+
"Z00.8"
|
256
|
+
],
|
257
|
+
"ICD-9-CM": [
|
258
|
+
"V65.3"
|
259
|
+
]
|
260
|
+
},
|
261
|
+
"description": "counseling for nutrition",
|
262
|
+
"time": 1277265600
|
263
|
+
}, {
|
264
|
+
"codes": {
|
265
|
+
"HCPCS": [
|
266
|
+
"S9451"
|
267
|
+
],
|
268
|
+
"ICD-10-CM": [
|
269
|
+
"Z71.3"
|
270
|
+
],
|
271
|
+
"ICD-9-CM": [
|
272
|
+
"V65.41"
|
273
|
+
]
|
274
|
+
},
|
275
|
+
"description": "counseling for physical activity",
|
276
|
+
"time": 1277265600
|
277
|
+
}, {
|
278
|
+
"codes": {
|
279
|
+
"CPT": [
|
280
|
+
"92012"
|
281
|
+
],
|
282
|
+
"HCPCS": [
|
283
|
+
"S0621"
|
284
|
+
],
|
285
|
+
"ICD-9-CM": [
|
286
|
+
"95.03"
|
287
|
+
],
|
288
|
+
"SNOMED-CT": [
|
289
|
+
"390735007"
|
290
|
+
]
|
291
|
+
},
|
292
|
+
"description": "eye exam",
|
293
|
+
"time": 1278388800
|
294
|
+
}],
|
295
|
+
"race": "Black or African American",
|
296
|
+
"results": [{
|
297
|
+
"codes": {
|
298
|
+
"CPT": [
|
299
|
+
"83036"
|
300
|
+
],
|
301
|
+
"LOINC": [
|
302
|
+
"4548-4"
|
303
|
+
],
|
304
|
+
"SNOMED-CT": [
|
305
|
+
"43396009"
|
306
|
+
]
|
307
|
+
},
|
308
|
+
"description": "HbA1c test",
|
309
|
+
"time": 1285992000,
|
310
|
+
"values": [{
|
311
|
+
"scalar": 9.5,
|
312
|
+
"units": null
|
313
|
+
}]
|
314
|
+
}, {
|
315
|
+
"codes": {
|
316
|
+
"CPT": [
|
317
|
+
"83036"
|
318
|
+
],
|
319
|
+
"LOINC": [
|
320
|
+
"4548-4"
|
321
|
+
],
|
322
|
+
"SNOMED-CT": [
|
323
|
+
"43396009"
|
324
|
+
]
|
325
|
+
},
|
326
|
+
"description": "HbA1c test",
|
327
|
+
"time": 1283313600,
|
328
|
+
"values": [{
|
329
|
+
"scalar": 9.2,
|
330
|
+
"units": null
|
331
|
+
}]
|
332
|
+
}, {
|
333
|
+
"codes": {
|
334
|
+
"CPT": [
|
335
|
+
"83036"
|
336
|
+
],
|
337
|
+
"LOINC": [
|
338
|
+
"4548-4"
|
339
|
+
],
|
340
|
+
"SNOMED-CT": [
|
341
|
+
"43396009"
|
342
|
+
]
|
343
|
+
},
|
344
|
+
"description": "HbA1c test",
|
345
|
+
"time": 1277265600,
|
346
|
+
"values": [{
|
347
|
+
"scalar": 8.9,
|
348
|
+
"units": null
|
349
|
+
}]
|
350
|
+
}, {
|
351
|
+
"codes": {
|
352
|
+
"CPT": [
|
353
|
+
"83721"
|
354
|
+
],
|
355
|
+
"LOINC": [
|
356
|
+
"2089-1"
|
357
|
+
],
|
358
|
+
"SNOMED-CT": [
|
359
|
+
"113079009"
|
360
|
+
]
|
361
|
+
},
|
362
|
+
"description": "LDL",
|
363
|
+
"time": 1277265600,
|
364
|
+
"values": [{
|
365
|
+
"scalar": 115,
|
366
|
+
"units": null
|
367
|
+
}]
|
368
|
+
}, {
|
369
|
+
"codes": {
|
370
|
+
"CPT": [
|
371
|
+
"83701"
|
372
|
+
],
|
373
|
+
"LOINC": [
|
374
|
+
"14646-4"
|
375
|
+
],
|
376
|
+
"SNOMED-CT": [
|
377
|
+
"28036006"
|
378
|
+
]
|
379
|
+
},
|
380
|
+
"description": "High Density Lipoprotein (HDL)",
|
381
|
+
"time": 1277265600,
|
382
|
+
"values": [{
|
383
|
+
"scalar": 51,
|
384
|
+
"units": null
|
385
|
+
}]
|
386
|
+
}, {
|
387
|
+
"codes": {
|
388
|
+
"CPT": [
|
389
|
+
"82465"
|
390
|
+
],
|
391
|
+
"LOINC": [
|
392
|
+
"2093-3"
|
393
|
+
],
|
394
|
+
"SNOMED-CT": [
|
395
|
+
"121868005"
|
396
|
+
]
|
397
|
+
},
|
398
|
+
"description": "Total Cholesterol",
|
399
|
+
"time": 1277265600,
|
400
|
+
"values": [{
|
401
|
+
"scalar": 186,
|
402
|
+
"units": null
|
403
|
+
}]
|
404
|
+
}, {
|
405
|
+
"codes": {
|
406
|
+
"CPT": [
|
407
|
+
"84478"
|
408
|
+
],
|
409
|
+
"LOINC": [
|
410
|
+
"12951-0"
|
411
|
+
],
|
412
|
+
"SNOMED-CT": [
|
413
|
+
"14740000"
|
414
|
+
]
|
415
|
+
},
|
416
|
+
"description": "Triglycerides",
|
417
|
+
"time": 1277265600,
|
418
|
+
"values": [{
|
419
|
+
"scalar": 143,
|
420
|
+
"units": null
|
421
|
+
}]
|
422
|
+
}],
|
423
|
+
"social_history": [{
|
424
|
+
"codes": {
|
425
|
+
"SNOMED-CT": [
|
426
|
+
"160618006"
|
427
|
+
]
|
428
|
+
},
|
429
|
+
"description": "Tobacco Non-User",
|
430
|
+
"time": 1270094400
|
431
|
+
}],
|
432
|
+
"vital_signs": [{
|
433
|
+
"codes": {
|
434
|
+
"SNOMED-CT": [
|
435
|
+
"271649006"
|
436
|
+
]
|
437
|
+
},
|
438
|
+
"description": "Systolic Blood Pressure",
|
439
|
+
"time": 1291266000,
|
440
|
+
"values": [{
|
441
|
+
"scalar": 142,
|
442
|
+
"units": "mm[Hg]"
|
443
|
+
}]
|
444
|
+
}, {
|
445
|
+
"codes": {
|
446
|
+
"SNOMED-CT": [
|
447
|
+
"271650006"
|
448
|
+
]
|
449
|
+
},
|
450
|
+
"description": "Diastolic Blood Pressure",
|
451
|
+
"time": 1291266000,
|
452
|
+
"values": [{
|
453
|
+
"scalar": 92,
|
454
|
+
"units": "mm[Hg]"
|
455
|
+
}]
|
456
|
+
}, {
|
457
|
+
"codes": {
|
458
|
+
"SNOMED-CT": [
|
459
|
+
"271649006"
|
460
|
+
]
|
461
|
+
},
|
462
|
+
"description": "Systolic Blood Pressure",
|
463
|
+
"time": 1283313600,
|
464
|
+
"values": [{
|
465
|
+
"scalar": 138,
|
466
|
+
"units": "mm[Hg]"
|
467
|
+
}]
|
468
|
+
}, {
|
469
|
+
"codes": {
|
470
|
+
"SNOMED-CT": [
|
471
|
+
"271650006"
|
472
|
+
]
|
473
|
+
},
|
474
|
+
"description": "Diastolic Blood Pressure",
|
475
|
+
"time": 1283313600,
|
476
|
+
"values": [{
|
477
|
+
"scalar": 88,
|
478
|
+
"units": "mm[Hg]"
|
479
|
+
}]
|
480
|
+
}, {
|
481
|
+
"codes": {
|
482
|
+
"SNOMED-CT": [
|
483
|
+
"271649006"
|
484
|
+
]
|
485
|
+
},
|
486
|
+
"description": "Systolic Blood Pressure",
|
487
|
+
"time": 1277265600,
|
488
|
+
"values": [{
|
489
|
+
"scalar": 138,
|
490
|
+
"units": "mm[Hg]"
|
491
|
+
}]
|
492
|
+
}, {
|
493
|
+
"codes": {
|
494
|
+
"SNOMED-CT": [
|
495
|
+
"271650006"
|
496
|
+
]
|
497
|
+
},
|
498
|
+
"description": "Diastolic Blood Pressure",
|
499
|
+
"time": 1277265600,
|
500
|
+
"values": [{
|
501
|
+
"scalar": 86,
|
502
|
+
"units": "mm[Hg]"
|
503
|
+
}]
|
504
|
+
}, {
|
505
|
+
"codes": {
|
506
|
+
"SNOMED-CT": [
|
507
|
+
"271649006"
|
508
|
+
]
|
509
|
+
},
|
510
|
+
"description": "Systolic Blood Pressure",
|
511
|
+
"time": 1270094400,
|
512
|
+
"values": [{
|
513
|
+
"scalar": 136,
|
514
|
+
"units": "mm[Hg]"
|
515
|
+
}]
|
516
|
+
}, {
|
517
|
+
"codes": {
|
518
|
+
"SNOMED-CT": [
|
519
|
+
"271650006"
|
520
|
+
]
|
521
|
+
},
|
522
|
+
"description": "Diastolic Blood Pressure",
|
523
|
+
"time": 1270094400,
|
524
|
+
"values": [{
|
525
|
+
"scalar": 84,
|
526
|
+
"units": "mm[Hg]"
|
527
|
+
}]
|
528
|
+
}, {
|
529
|
+
"codes": {
|
530
|
+
"LOINC": [
|
531
|
+
"39156-5"
|
532
|
+
],
|
533
|
+
"SNOMED-CT": [
|
534
|
+
"60621009"
|
535
|
+
]
|
536
|
+
},
|
537
|
+
"description": "BMI",
|
538
|
+
"time": 1285992000,
|
539
|
+
"values": [{
|
540
|
+
"scalar": 30.84591836734694,
|
541
|
+
"units": null
|
542
|
+
}]
|
543
|
+
}, {
|
544
|
+
"codes": {
|
545
|
+
"LOINC": [
|
546
|
+
"39156-5"
|
547
|
+
],
|
548
|
+
"SNOMED-CT": [
|
549
|
+
"60621009"
|
550
|
+
]
|
551
|
+
},
|
552
|
+
"description": "BMI",
|
553
|
+
"time": 1283313600,
|
554
|
+
"values": [{
|
555
|
+
"scalar": 30.27204081632653,
|
556
|
+
"units": null
|
557
|
+
}]
|
558
|
+
}, {
|
559
|
+
"codes": {
|
560
|
+
"LOINC": [
|
561
|
+
"39156-5"
|
562
|
+
],
|
563
|
+
"SNOMED-CT": [
|
564
|
+
"60621009"
|
565
|
+
]
|
566
|
+
},
|
567
|
+
"description": "BMI",
|
568
|
+
"time": 1277265600,
|
569
|
+
"values": [{
|
570
|
+
"scalar": 31.56326530612245,
|
571
|
+
"units": null
|
572
|
+
}]
|
573
|
+
}]
|
574
|
+
}
|