hqmf2js 1.3.0 → 1.4.0

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