hqmf2js 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. data/.gitignore +10 -0
  2. data/.travis.yml +17 -0
  3. data/Gemfile +41 -0
  4. data/Gemfile.lock +202 -0
  5. data/README.md +7 -0
  6. data/Rakefile +22 -0
  7. data/VERSION +1 -0
  8. data/app/assets/javascripts/hqmf_util.js.coffee +776 -0
  9. data/app/assets/javascripts/logging_utils.js.coffee +150 -0
  10. data/app/assets/javascripts/patient_api_extension.js.coffee +36 -0
  11. data/app/assets/javascripts/specifics.js.coffee +462 -0
  12. data/bin/hqmf2js.rb +25 -0
  13. data/config/warble.rb +144 -0
  14. data/hqmf2js.gemspec +20 -0
  15. data/lib/config/codes.xml +1935 -0
  16. data/lib/generator/characteristic.js.erb +19 -0
  17. data/lib/generator/codes_to_json.rb +81 -0
  18. data/lib/generator/converter.rb +60 -0
  19. data/lib/generator/data_criteria.js.erb +47 -0
  20. data/lib/generator/derived_data.js.erb +5 -0
  21. data/lib/generator/js.rb +263 -0
  22. data/lib/generator/measure_period.js.erb +18 -0
  23. data/lib/generator/patient_data.js.erb +22 -0
  24. data/lib/generator/population_criteria.js.erb +4 -0
  25. data/lib/generator/precondition.js.erb +14 -0
  26. data/lib/hqmf2js.rb +20 -0
  27. data/lib/hquery/engine.rb +4 -0
  28. data/lib/tasks/codes.rake +12 -0
  29. data/lib/tasks/coffee.rake +15 -0
  30. data/lib/tasks/convert.rake +47 -0
  31. data/lib/tasks/cover_me.rake +8 -0
  32. data/test/fixtures/NQF59New.xml +1047 -0
  33. data/test/fixtures/codes/codes.xls +0 -0
  34. data/test/fixtures/codes/codes.xml +1941 -0
  35. data/test/fixtures/i2b2.xml +305 -0
  36. data/test/fixtures/invalid/missing_id.xml +18 -0
  37. data/test/fixtures/invalid/unknown_criteria_type.xml +16 -0
  38. data/test/fixtures/invalid/unknown_demographic_entry.xml +16 -0
  39. data/test/fixtures/invalid/unknown_population_type.xml +9 -0
  40. data/test/fixtures/invalid/unknown_value_type.xml +18 -0
  41. data/test/fixtures/js/59New.js +366 -0
  42. data/test/fixtures/js/test1.js +356 -0
  43. data/test/fixtures/js/test2.js +366 -0
  44. data/test/fixtures/json/0043.json +6 -0
  45. data/test/fixtures/json/0043_hqmf1.json +1 -0
  46. data/test/fixtures/json/0043_hqmf2.json +172 -0
  47. data/test/fixtures/json/59New.json +1352 -0
  48. data/test/fixtures/patient_api.js +2823 -0
  49. data/test/fixtures/patients/francis_drake.json +1180 -0
  50. data/test/fixtures/patients/larry_vanderman.json +645 -0
  51. data/test/test_helper.rb +58 -0
  52. data/test/unit/codes_to_json_test.rb +38 -0
  53. data/test/unit/effective_date_test.rb +48 -0
  54. data/test/unit/hqmf_from_json_javascript_test.rb +108 -0
  55. data/test/unit/hqmf_javascript_test.rb +175 -0
  56. data/test/unit/library_function_test.rb +553 -0
  57. data/test/unit/specifics_test.rb +757 -0
  58. metadata +183 -0
@@ -0,0 +1,1180 @@
1
+ {
2
+ "allergies": [
3
+ {
4
+ "_type": "Allergy",
5
+ "codes": {},
6
+ "reaction": null,
7
+ "severity": null,
8
+ "start_time": null,
9
+ "time": null,
10
+ "value": {}
11
+ }
12
+ ],
13
+ "birthdate": -845150400,
14
+ "conditions": [
15
+ {
16
+ "_type": "Condition",
17
+ "causeOfDeath": false,
18
+ "codes": {
19
+ "ICD-10-CM": [
20
+ "I48.0"
21
+ ],
22
+ "ICD-9-CM": [
23
+ "427.31"
24
+ ],
25
+ "SNOMED-CT": [
26
+ "49436004"
27
+ ]
28
+ },
29
+ "description": "Atrial Fibrillation",
30
+ "start_time": 1280721600,
31
+ "status": "active",
32
+ "time": null,
33
+ "type": "Condition",
34
+ "value": {}
35
+ },
36
+ {
37
+ "_type": "Condition",
38
+ "causeOfDeath": false,
39
+ "codes": {
40
+ "ICD-10-CM": [
41
+ "R31"
42
+ ],
43
+ "ICD-9-CM": [
44
+ "599.7"
45
+ ],
46
+ "SNOMED-CT": [
47
+ "53298000"
48
+ ]
49
+ },
50
+ "description": "Hematuria",
51
+ "start_time": 1278734400,
52
+ "status": "active",
53
+ "time": null,
54
+ "type": "Condition",
55
+ "value": {}
56
+ },
57
+ {
58
+ "_type": "Condition",
59
+ "causeOfDeath": false,
60
+ "codes": {
61
+ "ICD-10-CM": [
62
+ "D50.9"
63
+ ],
64
+ "ICD-9-CM": [
65
+ "280.9"
66
+ ],
67
+ "SNOMED-CT": [
68
+ "87522002"
69
+ ]
70
+ },
71
+ "description": "Anemias and Bleeding Disorders",
72
+ "start_time": 1278734400,
73
+ "status": "active",
74
+ "time": null,
75
+ "type": "Condition",
76
+ "value": {}
77
+ },
78
+ {
79
+ "_type": "Condition",
80
+ "causeOfDeath": false,
81
+ "codes": {
82
+ "ICD-10-CM": [
83
+ "I50.9"
84
+ ],
85
+ "ICD-9-CM": [
86
+ "428.9"
87
+ ],
88
+ "SNOMED-CT": [
89
+ "84114007"
90
+ ]
91
+ },
92
+ "description": "Heart Failure",
93
+ "start_time": 1276401600,
94
+ "status": "active",
95
+ "time": null,
96
+ "type": "Condition",
97
+ "value": {}
98
+ },
99
+ {
100
+ "_type": "Condition",
101
+ "causeOfDeath": false,
102
+ "codes": {
103
+ "ICD-10-CM": [
104
+ "I10"
105
+ ],
106
+ "ICD-9-CM": [
107
+ "401.9"
108
+ ],
109
+ "SNOMED-CT": [
110
+ "59621000"
111
+ ]
112
+ },
113
+ "description": "Hypertension",
114
+ "start_time": 1276401600,
115
+ "status": "active",
116
+ "time": null,
117
+ "type": "Condition",
118
+ "value": {}
119
+ }
120
+ ],
121
+ "effective_time": 1332857933,
122
+ "encounters": [
123
+ {
124
+ "_type": "Encounter",
125
+ "admitType": null,
126
+ "codes": {
127
+ "CPT": [
128
+ "99213"
129
+ ],
130
+ "ICD-9-CM": [
131
+ "V70.0"
132
+ ]
133
+ },
134
+ "description": "Encounter Outpatient",
135
+ "time": 1289883600,
136
+ "value": {}
137
+ },
138
+ {
139
+ "_type": "Encounter",
140
+ "admitType": null,
141
+ "codes": {
142
+ "CPT": [
143
+ "99213"
144
+ ],
145
+ "ICD-9-CM": [
146
+ "V70.0"
147
+ ]
148
+ },
149
+ "description": "Encounter Outpatient",
150
+ "time": 1280721600,
151
+ "value": {}
152
+ },
153
+ {
154
+ "_type": "Encounter",
155
+ "admitType": null,
156
+ "codes": {
157
+ "CPT": [
158
+ "99213"
159
+ ],
160
+ "ICD-9-CM": [
161
+ "V70.0"
162
+ ]
163
+ },
164
+ "description": "Encounter Outpatient",
165
+ "time": 1278734400,
166
+ "value": {}
167
+ },
168
+ {
169
+ "_type": "Encounter",
170
+ "admitType": null,
171
+ "codes": {
172
+ "CPT": [
173
+ "99213"
174
+ ],
175
+ "ICD-9-CM": [
176
+ "V70.0"
177
+ ]
178
+ },
179
+ "description": "Encounter Outpatient",
180
+ "time": 1275710400,
181
+ "value": {}
182
+ }
183
+ ],
184
+ "ethnicity": {
185
+ "code": "",
186
+ "code_set": "CDC-RE"
187
+ },
188
+ "first": "Francis",
189
+ "gender": "M",
190
+ "immunizations": [
191
+ {
192
+ "_type": "Immunization",
193
+ "codes": {
194
+ "RxNorm": [
195
+ "857942"
196
+ ]
197
+ },
198
+ "description": "Influenza Vaccine",
199
+ "refusalInd": false,
200
+ "time": 1289883600,
201
+ "value": {}
202
+ },
203
+ {
204
+ "_type": "Immunization",
205
+ "codes": {
206
+ "CPT": [
207
+ "90669"
208
+ ],
209
+ "CVX": [
210
+ "100"
211
+ ]
212
+ },
213
+ "description": "Pneumococcal Vaccine all ages",
214
+ "refusalInd": false,
215
+ "time": 1289883600,
216
+ "value": {}
217
+ }
218
+ ],
219
+ "languages": [
220
+ "en-US"
221
+ ],
222
+ "last": "Drake",
223
+ "measures": {
224
+ "0001": {
225
+ "encounter_office_outpatient_consult_encounter": [
226
+ 1289883600,
227
+ 1280721600,
228
+ 1278734400,
229
+ 1275710400
230
+ ]
231
+ },
232
+ "0002": {
233
+ "encounter_ambulatory_including_pediatrics_encounter": [
234
+ 1289883600,
235
+ 1280721600,
236
+ 1278734400,
237
+ 1275710400
238
+ ]
239
+ },
240
+ "0004": {
241
+ "encounter_inpt_ed_non_acute_inpatient_bh_outpatient_encounter": [
242
+ 1289883600,
243
+ 1280721600,
244
+ 1278734400,
245
+ 1275710400
246
+ ],
247
+ "encounter_outpatient_bh_encounter": [
248
+ 1289883600,
249
+ 1280721600,
250
+ 1278734400,
251
+ 1275710400
252
+ ]
253
+ },
254
+ "0012": {
255
+ "delivery_live_births_diagnosis_diagnosis_active": [
256
+ 1276401600
257
+ ]
258
+ },
259
+ "0013": {
260
+ "diastolic_blood_pressure_physical_exam_finding": [
261
+ 1289883600,
262
+ 1280721600,
263
+ 1275710400
264
+ ],
265
+ "encounter_outpatient_encounter": [
266
+ 1289883600,
267
+ 1280721600,
268
+ 1278734400,
269
+ 1275710400
270
+ ],
271
+ "hypertension_diagnosis_active": [
272
+ 1276401600
273
+ ],
274
+ "systolic_blood_pressure_physical_exam_finding": [
275
+ 1289883600,
276
+ 1280721600,
277
+ 1275710400
278
+ ]
279
+ },
280
+ "0014": {
281
+ "delivery_live_births_diagnosis_diagnosis_active": [
282
+ 1276401600
283
+ ]
284
+ },
285
+ "0018": {
286
+ "diastolic_blood_pressure_physical_exam_finding": [
287
+ {
288
+ "date": 1289883600,
289
+ "value": 80
290
+ },
291
+ {
292
+ "date": 1280721600,
293
+ "value": 88
294
+ },
295
+ {
296
+ "date": 1275710400,
297
+ "value": 90
298
+ }
299
+ ],
300
+ "encounter_outpatient_encounter": [
301
+ 1289883600,
302
+ 1280721600,
303
+ 1278734400,
304
+ 1275710400
305
+ ],
306
+ "hypertension_diagnosis_active": [
307
+ 1276401600
308
+ ],
309
+ "systolic_blood_pressure_physical_exam_finding": [
310
+ {
311
+ "date": 1289883600,
312
+ "value": 136
313
+ },
314
+ {
315
+ "date": 1280721600,
316
+ "value": 138
317
+ },
318
+ {
319
+ "date": 1275710400,
320
+ "value": 140
321
+ }
322
+ ]
323
+ },
324
+ "0024": {
325
+ "bmi_percentile_physical_exam_finding": [
326
+ 1278734400,
327
+ 1275710400
328
+ ],
329
+ "encounter_outpatient_w_pcp_obgyn_encounter": [
330
+ 1289883600,
331
+ 1280721600,
332
+ 1278734400,
333
+ 1275710400
334
+ ]
335
+ },
336
+ "0027": {
337
+ "encounter_outpatient_encounter": [
338
+ 1289883600,
339
+ 1280721600,
340
+ 1278734400,
341
+ 1275710400
342
+ ]
343
+ },
344
+ "0028": {
345
+ "encounter_office_visit_encounter": [
346
+ 1289883600,
347
+ 1280721600,
348
+ 1278734400,
349
+ 1275710400
350
+ ]
351
+ },
352
+ "0031": {
353
+ "encounter_outpatient_encounter": [
354
+ 1289883600,
355
+ 1280721600,
356
+ 1278734400,
357
+ 1275710400
358
+ ]
359
+ },
360
+ "0032": {
361
+ "encounter_outpatient_encounter": [
362
+ 1289883600,
363
+ 1280721600,
364
+ 1278734400,
365
+ 1275710400
366
+ ]
367
+ },
368
+ "0033": {
369
+ "encounter_outpatient_encounter": [
370
+ 1289883600,
371
+ 1280721600,
372
+ 1278734400,
373
+ 1275710400
374
+ ]
375
+ },
376
+ "0034": {
377
+ "encounter_outpatient_encounter": [
378
+ 1289883600,
379
+ 1280721600,
380
+ 1278734400,
381
+ 1275710400
382
+ ]
383
+ },
384
+ "0036": {
385
+ "encounter_outpatient_encounter": [
386
+ 1289883600,
387
+ 1280721600,
388
+ 1278734400,
389
+ 1275710400
390
+ ]
391
+ },
392
+ "0038": {
393
+ "encounter_outpatient_w_pcp_obgyn_encounter": [
394
+ 1289883600,
395
+ 1280721600,
396
+ 1278734400,
397
+ 1275710400
398
+ ],
399
+ "influenza_vaccine_medication_administered": [
400
+ 1289883600
401
+ ]
402
+ },
403
+ "0041": {
404
+ "encounter_influenza_encounter": [
405
+ 1289883600,
406
+ 1280721600,
407
+ 1278734400,
408
+ 1275710400
409
+ ],
410
+ "encounter_outpatient_encounter": [
411
+ 1289883600,
412
+ 1280721600,
413
+ 1278734400,
414
+ 1275710400
415
+ ],
416
+ "influenza_vaccine_medication_administered": [
417
+ 1289883600
418
+ ]
419
+ },
420
+ "0043": {
421
+ "encounter_outpatient_encounter": [
422
+ 1289883600,
423
+ 1280721600,
424
+ 1278734400,
425
+ 1275710400
426
+ ],
427
+ "pneumococcal_vaccine_all_ages_medication_administered": [
428
+ 1289883600
429
+ ]
430
+ },
431
+ "0047": {
432
+ "encounter_office_outpatient_consult_encounter": [
433
+ 1289883600,
434
+ 1280721600,
435
+ 1278734400,
436
+ 1275710400
437
+ ]
438
+ },
439
+ "0052": {
440
+ "encounter_ambulatory_including_orthopedics_and_chiropractics_encounter": [
441
+ 1289883600,
442
+ 1280721600,
443
+ 1278734400,
444
+ 1275710400
445
+ ]
446
+ },
447
+ "0055": {
448
+ "encounter_non_acute_inpatient_outpatient_or_ophthalmology_encounter": [
449
+ 1289883600,
450
+ 1280721600,
451
+ 1278734400,
452
+ 1275710400
453
+ ]
454
+ },
455
+ "0056": {
456
+ "encounter_non_acute_inpatient_outpatient_or_ophthalmology_encounter": [
457
+ 1289883600,
458
+ 1280721600,
459
+ 1278734400,
460
+ 1275710400
461
+ ]
462
+ },
463
+ "0059": {
464
+ "encounter_non_acute_inpatient_outpatient_or_ophthalmology_encounter": [
465
+ 1289883600,
466
+ 1280721600,
467
+ 1278734400,
468
+ 1275710400
469
+ ]
470
+ },
471
+ "0061": {
472
+ "diastolic_blood_pressure_physical_exam_finding": [
473
+ {
474
+ "date": 1289883600,
475
+ "value": 80
476
+ },
477
+ {
478
+ "date": 1280721600,
479
+ "value": 88
480
+ },
481
+ {
482
+ "date": 1275710400,
483
+ "value": 90
484
+ }
485
+ ],
486
+ "encounter_non_acute_inpatient_outpatient_or_ophthalmology_encounter": [
487
+ 1289883600,
488
+ 1280721600,
489
+ 1278734400,
490
+ 1275710400
491
+ ],
492
+ "systolic_blood_pressure_physical_exam_finding": [
493
+ {
494
+ "date": 1289883600,
495
+ "value": 136
496
+ },
497
+ {
498
+ "date": 1280721600,
499
+ "value": 138
500
+ },
501
+ {
502
+ "date": 1275710400,
503
+ "value": 140
504
+ }
505
+ ]
506
+ },
507
+ "0062": {
508
+ "ace_inhibitors_arbs_medication_dispensed": [
509
+ 1276401600
510
+ ],
511
+ "ace_inhibitors_arbs_medication_order": [
512
+ 1276401600
513
+ ],
514
+ "encounter_non_acute_inpatient_outpatient_or_ophthalmology_encounter": [
515
+ 1289883600,
516
+ 1280721600,
517
+ 1278734400,
518
+ 1275710400
519
+ ]
520
+ },
521
+ "0064": {
522
+ "encounter_non_acute_inpatient_outpatient_or_ophthalmology_encounter": [
523
+ 1289883600,
524
+ 1280721600,
525
+ 1278734400,
526
+ 1275710400
527
+ ],
528
+ "ldl_test_laboratory_test_result": [
529
+ {
530
+ "date": 1275451200,
531
+ "value": 48
532
+ },
533
+ {
534
+ "date": 1275451200,
535
+ "value": 87
536
+ }
537
+ ]
538
+ },
539
+ "0067": {
540
+ "encounter_outpatient_encounter": [
541
+ 1289883600,
542
+ 1280721600,
543
+ 1278734400,
544
+ 1275710400
545
+ ]
546
+ },
547
+ "0068": {
548
+ "encounter_acute_inpt_and_outpt_encounter": [
549
+ 1289883600,
550
+ 1280721600,
551
+ 1278734400,
552
+ 1275710400
553
+ ],
554
+ "encounter_outpatient_encounter": [
555
+ 1289883600,
556
+ 1280721600,
557
+ 1278734400,
558
+ 1275710400
559
+ ]
560
+ },
561
+ "0070": {
562
+ "beta_blocker_therapy_medication_active": [
563
+ 1276401600
564
+ ],
565
+ "beta_blocker_therapy_medication_order": [
566
+ 1276401600
567
+ ],
568
+ "encounter_outpatient_encounter": [
569
+ 1289883600,
570
+ 1280721600,
571
+ 1278734400,
572
+ 1275710400
573
+ ],
574
+ "heart_rate_physical_exam_finding": [
575
+ {
576
+ "date": 1289883600,
577
+ "value": 72
578
+ },
579
+ {
580
+ "date": 1280721600,
581
+ "value": 76
582
+ },
583
+ {
584
+ "date": 1275710400,
585
+ "value": 80
586
+ }
587
+ ]
588
+ },
589
+ "0073": {
590
+ "diastolic_blood_pressure_physical_exam_finding": [
591
+ {
592
+ "date": 1289883600,
593
+ "value": 136
594
+ },
595
+ {
596
+ "date": 1280721600,
597
+ "value": 138
598
+ },
599
+ {
600
+ "date": 1275710400,
601
+ "value": 140
602
+ }
603
+ ],
604
+ "encounter_acute_inpt_and_outpt_encounter": [
605
+ 1289883600,
606
+ 1280721600,
607
+ 1278734400,
608
+ 1275710400
609
+ ],
610
+ "encounter_outpatient_encounter": [
611
+ 1289883600,
612
+ 1280721600,
613
+ 1278734400,
614
+ 1275710400
615
+ ],
616
+ "systolic_blood_pressure_physical_exam_finding": [
617
+ {
618
+ "date": 1289883600,
619
+ "value": 136
620
+ },
621
+ {
622
+ "date": 1280721600,
623
+ "value": 138
624
+ },
625
+ {
626
+ "date": 1275710400,
627
+ "value": 140
628
+ }
629
+ ]
630
+ },
631
+ "0074": {
632
+ "encounter_outpatient_encounter": [
633
+ 1289883600,
634
+ 1280721600,
635
+ 1278734400,
636
+ 1275710400
637
+ ],
638
+ "ldl_laboratory_test_laboratory_test_result": [
639
+ {
640
+ "date": 1275451200,
641
+ "value": 87
642
+ }
643
+ ]
644
+ },
645
+ "0075": {
646
+ "encounter_acute_inpt_and_outpt_encounter": [
647
+ 1289883600,
648
+ 1280721600,
649
+ 1278734400,
650
+ 1275710400
651
+ ],
652
+ "encounter_outpatient_encounter": [
653
+ 1289883600,
654
+ 1280721600,
655
+ 1278734400,
656
+ 1275710400
657
+ ],
658
+ "high_density_lipoprotein_hdl_laboratory_test_performed": [
659
+ {
660
+ "date": 1275451200,
661
+ "value": 48
662
+ },
663
+ {
664
+ "date": 1275451200,
665
+ "value": 142
666
+ }
667
+ ],
668
+ "ldl_test_laboratory_test_performed": [
669
+ {
670
+ "date": 1275451200,
671
+ "value": 48
672
+ },
673
+ {
674
+ "date": 1275451200,
675
+ "value": 87
676
+ }
677
+ ],
678
+ "total_cholesterol_laboratory_test_performed": [
679
+ {
680
+ "date": 1275451200,
681
+ "value": 142
682
+ }
683
+ ],
684
+ "triglycerides_laboratory_test_performed": [
685
+ {
686
+ "date": 1275451200,
687
+ "value": 86
688
+ }
689
+ ]
690
+ },
691
+ "0081": {
692
+ "ace_inhibitor_or_arb_medication_active": [
693
+ 1276401600
694
+ ],
695
+ "ace_inhibitor_or_arb_medication_order": [
696
+ 1276401600
697
+ ],
698
+ "encounter_outpatient_encounter": [
699
+ 1289883600,
700
+ 1280721600,
701
+ 1278734400,
702
+ 1275710400
703
+ ],
704
+ "heart_failure_diagnosis_active": [
705
+ 1276401600
706
+ ]
707
+ },
708
+ "0083": {
709
+ "beta_blocker_therapy_medication_active": [
710
+ 1276401600
711
+ ],
712
+ "beta_blocker_therapy_medication_order": [
713
+ 1276401600
714
+ ],
715
+ "encounter_outpatient_encounter": [
716
+ 1289883600,
717
+ 1280721600,
718
+ 1278734400,
719
+ 1275710400
720
+ ],
721
+ "heart_failure_diagnosis_active": [
722
+ 1276401600
723
+ ],
724
+ "heart_rate_physical_exam_finding": [
725
+ 1289883600,
726
+ 1280721600,
727
+ 1275710400
728
+ ]
729
+ },
730
+ "0084": {
731
+ "anemias_and_bleeding_disorders_diagnosis_active": [
732
+ 1278734400
733
+ ],
734
+ "atrial_fibrillation_diagnosis_active": [
735
+ 1280721600
736
+ ],
737
+ "encounter_outpatient_encounter": [
738
+ 1289883600,
739
+ 1280721600,
740
+ 1278734400,
741
+ 1275710400
742
+ ],
743
+ "heart_failure_diagnosis_active": [
744
+ 1276401600
745
+ ],
746
+ "hematuria_diagnosis_active": [
747
+ 1278734400
748
+ ]
749
+ },
750
+ "0086": {
751
+ "encounter_office_outpatient_consult_encounter": [
752
+ 1289883600,
753
+ 1280721600,
754
+ 1278734400,
755
+ 1275710400
756
+ ]
757
+ },
758
+ "0088": {
759
+ "encounter_office_outpatient_consult_encounter": [
760
+ 1289883600,
761
+ 1280721600,
762
+ 1278734400,
763
+ 1275710400
764
+ ]
765
+ },
766
+ "0089": {
767
+ "encounter_office_outpatient_consult_encounter": [
768
+ 1289883600,
769
+ 1280721600,
770
+ 1278734400,
771
+ 1275710400
772
+ ]
773
+ },
774
+ "0105": {
775
+ "patient_encounter_bh_bh_req_pos_encounter_point_non_acute_inpatient_inpatient_encounter": [
776
+ 1289883600,
777
+ 1280721600,
778
+ 1278734400,
779
+ 1275710400
780
+ ]
781
+ },
782
+ "0385": {
783
+ "encounter_office_visit_encounter": [
784
+ 1289883600,
785
+ 1280721600,
786
+ 1278734400,
787
+ 1275710400
788
+ ]
789
+ },
790
+ "0387": {
791
+ "encounter_office_visit_encounter": [
792
+ 1289883600,
793
+ 1280721600,
794
+ 1278734400,
795
+ 1275710400
796
+ ]
797
+ },
798
+ "0389": {},
799
+ "0421": {
800
+ "bmi_physical_exam_finding": [
801
+ {
802
+ "date": 1278734400,
803
+ "value": 25.10714285714285
804
+ },
805
+ {
806
+ "date": 1275710400,
807
+ "value": 25.39408163265306
808
+ }
809
+ ],
810
+ "encounter_outpatient_encounter": [
811
+ 1289883600,
812
+ 1280721600,
813
+ 1278734400,
814
+ 1275710400
815
+ ]
816
+ },
817
+ "0575": {
818
+ "encounter_non_acute_inpatient_outpatient_or_ophthalmology_encounter": [
819
+ 1289883600,
820
+ 1280721600,
821
+ 1278734400,
822
+ 1275710400
823
+ ]
824
+ }
825
+ },
826
+ "medical_record_number": "4f71cb938e27b4a09300007b",
827
+ "medications": [
828
+ {
829
+ "_type": "Medication",
830
+ "codes": {
831
+ "RxNorm": [
832
+ "314076"
833
+ ]
834
+ },
835
+ "deliveryMethod": null,
836
+ "description": "ACE inhibitor or ARB",
837
+ "dose": null,
838
+ "end_time": null,
839
+ "freeTextSig": "ACE inhibitor or ARB",
840
+ "indication": null,
841
+ "productForm": null,
842
+ "route": null,
843
+ "site": null,
844
+ "start_time": 1276401600,
845
+ "time": null,
846
+ "typeOfMedication": null,
847
+ "values": [],
848
+ "vehicle": null
849
+ },
850
+ {
851
+ "_type": "Medication",
852
+ "codes": {
853
+ "RxNorm": [
854
+ "866924"
855
+ ]
856
+ },
857
+ "deliveryMethod": null,
858
+ "description": "Beta Blocker Therapy",
859
+ "dose": null,
860
+ "end_time": null,
861
+ "freeTextSig": "Beta Blocker Therapy",
862
+ "indication": null,
863
+ "productForm": null,
864
+ "route": null,
865
+ "site": null,
866
+ "start_time": 1276401600,
867
+ "time": null,
868
+ "typeOfMedication": null,
869
+ "values": [],
870
+ "vehicle": null
871
+ }
872
+ ],
873
+ "procedures": [
874
+ {
875
+ "_type": "Procedure",
876
+ "codes": {
877
+ "SNOMED-CT": [
878
+ "70822001"
879
+ ]
880
+ },
881
+ "description": "Ejection Fraction",
882
+ "site": null,
883
+ "time": 1276401600,
884
+ "values": []
885
+ }
886
+ ],
887
+ "race": {
888
+ "code": "",
889
+ "code_set": "CDC-RE"
890
+ },
891
+ "results": [
892
+ {
893
+ "_type": "LabResult",
894
+ "codes": {
895
+ "CPT": [
896
+ "83701"
897
+ ],
898
+ "LOINC": [
899
+ "14646-4"
900
+ ],
901
+ "SNOMED-CT": [
902
+ "28036006"
903
+ ]
904
+ },
905
+ "description": "High Density Lipoprotein (HDL)",
906
+ "status": "completed",
907
+ "time": 1275451200,
908
+ "values": [
909
+ {
910
+ "scalar": "48.0",
911
+ "units": null
912
+ }
913
+ ]
914
+ },
915
+ {
916
+ "_type": "LabResult",
917
+ "codes": {
918
+ "CPT": [
919
+ "83721"
920
+ ],
921
+ "LOINC": [
922
+ "2089-1"
923
+ ],
924
+ "SNOMED-CT": [
925
+ "113079009"
926
+ ]
927
+ },
928
+ "description": "LDL",
929
+ "status": "completed",
930
+ "time": 1275451200,
931
+ "values": [
932
+ {
933
+ "scalar": "87.0",
934
+ "units": null
935
+ }
936
+ ]
937
+ },
938
+ {
939
+ "_type": "LabResult",
940
+ "codes": {
941
+ "CPT": [
942
+ "82465"
943
+ ],
944
+ "LOINC": [
945
+ "2093-3"
946
+ ],
947
+ "SNOMED-CT": [
948
+ "121868005"
949
+ ]
950
+ },
951
+ "description": "Total Cholesterol",
952
+ "status": "completed",
953
+ "time": 1275451200,
954
+ "values": [
955
+ {
956
+ "scalar": "142.0",
957
+ "units": null
958
+ }
959
+ ]
960
+ },
961
+ {
962
+ "_type": "LabResult",
963
+ "codes": {
964
+ "CPT": [
965
+ "84478"
966
+ ],
967
+ "LOINC": [
968
+ "12951-0"
969
+ ],
970
+ "SNOMED-CT": [
971
+ "14740000"
972
+ ]
973
+ },
974
+ "description": "Triglycerides",
975
+ "status": "completed",
976
+ "time": 1275451200,
977
+ "values": [
978
+ {
979
+ "scalar": "86.0",
980
+ "units": null
981
+ }
982
+ ]
983
+ }
984
+ ],
985
+ "vital_signs": [
986
+ {
987
+ "_type": "LabResult",
988
+ "codes": {
989
+ "SNOMED-CT": [
990
+ "271649006"
991
+ ]
992
+ },
993
+ "description": "Systolic Blood Pressure",
994
+ "status": "completed",
995
+ "time": 1289883600,
996
+ "values": [
997
+ {
998
+ "scalar": "136.0",
999
+ "units": "mm[Hg]"
1000
+ }
1001
+ ]
1002
+ },
1003
+ {
1004
+ "_type": "LabResult",
1005
+ "codes": {
1006
+ "SNOMED-CT": [
1007
+ "271650006"
1008
+ ]
1009
+ },
1010
+ "description": "Diastolic Blood Pressure",
1011
+ "status": "completed",
1012
+ "time": 1289883600,
1013
+ "values": [
1014
+ {
1015
+ "scalar": "80.0",
1016
+ "units": "mm[Hg]"
1017
+ }
1018
+ ]
1019
+ },
1020
+ {
1021
+ "_type": "LabResult",
1022
+ "codes": {
1023
+ "SNOMED-CT": [
1024
+ "364075005"
1025
+ ]
1026
+ },
1027
+ "description": "Heart Rate",
1028
+ "status": "completed",
1029
+ "time": 1289883600,
1030
+ "values": [
1031
+ {
1032
+ "scalar": "72.0",
1033
+ "units": null
1034
+ }
1035
+ ]
1036
+ },
1037
+ {
1038
+ "_type": "LabResult",
1039
+ "codes": {
1040
+ "SNOMED-CT": [
1041
+ "271649006"
1042
+ ]
1043
+ },
1044
+ "description": "Systolic Blood Pressure",
1045
+ "status": "completed",
1046
+ "time": 1280721600,
1047
+ "values": [
1048
+ {
1049
+ "scalar": "138.0",
1050
+ "units": "mm[Hg]"
1051
+ }
1052
+ ]
1053
+ },
1054
+ {
1055
+ "_type": "LabResult",
1056
+ "codes": {
1057
+ "SNOMED-CT": [
1058
+ "271650006"
1059
+ ]
1060
+ },
1061
+ "description": "Diastolic Blood Pressure",
1062
+ "status": "completed",
1063
+ "time": 1280721600,
1064
+ "values": [
1065
+ {
1066
+ "scalar": "88.0",
1067
+ "units": "mm[Hg]"
1068
+ }
1069
+ ]
1070
+ },
1071
+ {
1072
+ "_type": "LabResult",
1073
+ "codes": {
1074
+ "SNOMED-CT": [
1075
+ "364075005"
1076
+ ]
1077
+ },
1078
+ "description": "Heart Rate",
1079
+ "status": "completed",
1080
+ "time": 1280721600,
1081
+ "values": [
1082
+ {
1083
+ "scalar": "76.0",
1084
+ "units": null
1085
+ }
1086
+ ]
1087
+ },
1088
+ {
1089
+ "_type": "LabResult",
1090
+ "codes": {
1091
+ "SNOMED-CT": [
1092
+ "271649006"
1093
+ ]
1094
+ },
1095
+ "description": "Systolic Blood Pressure",
1096
+ "status": "completed",
1097
+ "time": 1275710400,
1098
+ "values": [
1099
+ {
1100
+ "scalar": "140.0",
1101
+ "units": "mm[Hg]"
1102
+ }
1103
+ ]
1104
+ },
1105
+ {
1106
+ "_type": "LabResult",
1107
+ "codes": {
1108
+ "SNOMED-CT": [
1109
+ "271650006"
1110
+ ]
1111
+ },
1112
+ "description": "Diastolic Blood Pressure",
1113
+ "status": "completed",
1114
+ "time": 1275710400,
1115
+ "values": [
1116
+ {
1117
+ "scalar": "90.0",
1118
+ "units": "mm[Hg]"
1119
+ }
1120
+ ]
1121
+ },
1122
+ {
1123
+ "_type": "LabResult",
1124
+ "codes": {
1125
+ "SNOMED-CT": [
1126
+ "364075005"
1127
+ ]
1128
+ },
1129
+ "description": "Heart Rate",
1130
+ "status": "completed",
1131
+ "time": 1275710400,
1132
+ "values": [
1133
+ {
1134
+ "scalar": "80.0",
1135
+ "units": null
1136
+ }
1137
+ ]
1138
+ },
1139
+ {
1140
+ "_type": "LabResult",
1141
+ "codes": {
1142
+ "LOINC": [
1143
+ "39156-5"
1144
+ ],
1145
+ "SNOMED-CT": [
1146
+ "60621009"
1147
+ ]
1148
+ },
1149
+ "description": "BMI",
1150
+ "status": "completed",
1151
+ "time": 1278734400,
1152
+ "values": [
1153
+ {
1154
+ "scalar": "25.107142857142854",
1155
+ "units": null
1156
+ }
1157
+ ]
1158
+ },
1159
+ {
1160
+ "_type": "LabResult",
1161
+ "codes": {
1162
+ "LOINC": [
1163
+ "39156-5"
1164
+ ],
1165
+ "SNOMED-CT": [
1166
+ "60621009"
1167
+ ]
1168
+ },
1169
+ "description": "BMI",
1170
+ "status": "completed",
1171
+ "time": 1275710400,
1172
+ "values": [
1173
+ {
1174
+ "scalar": "25.394081632653062",
1175
+ "units": null
1176
+ }
1177
+ ]
1178
+ }
1179
+ ]
1180
+ }