ion_orders_engine_mockingjay 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 09186104869a21657277807bfcccb3f0d85b4ac1
4
- data.tar.gz: b11ee2ade83e151b3159d832806f0ab0e0cd47de
3
+ metadata.gz: fdc3357ad9c24839ac978184a95f06d3900ec2a5
4
+ data.tar.gz: 6f7e0be6bc785fd6b6224a8b3f56f77b6df07c55
5
5
  SHA512:
6
- metadata.gz: cc2e73a77bf98a169ff2a3e74f8ebc324e44b8f2cd1b692698f430d0a20e5cedc80310945a427b0a0bf488fc618b01b806758420ec94eb2dc3de4e0d16fea261
7
- data.tar.gz: 202a3931a931c60cf12b27c54c038e04270e6ba36fa950b2a46b20a8a55ee7710933ec5de26deff931f3094a9b73f33d3acf3f874d8b232b60a7ee5dfe8eb542
6
+ metadata.gz: 4f8306db6d6e26c3c8d41925894151a2db9a68dc77141bdcc6ffac70b4f43eba6f3eaf18ed5b90e03d5f072d17984481771cd8a1e9ae4324fca9f4629694bcf5
7
+ data.tar.gz: 056d05a11d3ef6657c10f73133eb17141fe74350dfdb53d6b162ac33f821d4b68b5831f51118b8c3593c402b96ca1fd2146cee60919a094334e2f7621d8a4d34
@@ -78,6 +78,7 @@ module Api
78
78
  :version => 0,
79
79
  :orderingProvider => "Elec Man",
80
80
  :synonymId => 20000001,
81
+ :comment => "this is a test comment that is really really really really really really really really super duper long to make the text wrap in the cell",
81
82
  :dose => {
82
83
  :preferredDoseType => "STRENGTH",
83
84
  :strengthDose => {
@@ -204,22 +205,13 @@ module Api
204
205
  ]
205
206
  },
206
207
  {
207
- :sequence => 2147483646,
208
+ :sequence => 2147483647,
208
209
  :displayDescription => "Treatment Period",
209
210
  :fieldMeaning => "TREATMENTPERIOD",
210
211
  :detailValues => [
211
212
  :valueType => "TEXT",
212
213
  :value => "Day 5"
213
214
  ]
214
- },
215
- {
216
- :sequence => 2147483647,
217
- :displayDescription => "Order Comment",
218
- :fieldMeaning => "ORDER_COMMENT",
219
- :detailValues => [
220
- :valueType => "TEXT",
221
- :value => "this is a test comment that is really really really really really really really really super duper long to make the text wrap in the cell"
222
- ]
223
215
  }]}
224
216
 
225
217
  singleIngredientOrder2 = {:orderType => "SINGLEINGREDIENT",
@@ -345,7 +337,7 @@ module Api
345
337
  ]
346
338
  },
347
339
  {
348
- :sequence => 2147483646,
340
+ :sequence => 2147483647,
349
341
  :displayDescription => "Inspiratory Time",
350
342
  :fieldMeaning => "INSPIRATORYTIME",
351
343
  :detailValues => [
@@ -357,7 +349,7 @@ module Api
357
349
  ]
358
350
  },
359
351
  {
360
- :sequence => 2147483646,
352
+ :sequence => 2147483647,
361
353
  :displayDescription => "Treatment Period",
362
354
  :fieldMeaning => "TREATMENTPERIOD",
363
355
  :detailValues => [
@@ -373,6 +365,7 @@ module Api
373
365
  :version => 0,
374
366
  :orderingProvider => "Guts Man",
375
367
  :synonymId => 20000004,
368
+ :comment => "test order comment text",
376
369
  :drivingAgent => {
377
370
  :mnemonic => "mesna",
378
371
  :dose => {
@@ -661,7 +654,7 @@ module Api
661
654
  ]
662
655
  },
663
656
  {
664
- :sequence => 2147483646,
657
+ :sequence => 2147483647,
665
658
  :displayDescription => "Inspiratory Time",
666
659
  :fieldMeaning => "INSPIRATORYTIME",
667
660
  :detailValues => [
@@ -673,22 +666,13 @@ module Api
673
666
  ]
674
667
  },
675
668
  {
676
- :sequence => 2147483646,
669
+ :sequence => 2147483647,
677
670
  :displayDescription => "Treatment Period",
678
671
  :fieldMeaning => "TREATMENTPERIOD",
679
672
  :detailValues => [
680
673
  :valueType => "TEXT",
681
674
  :value => "Day 2"
682
675
  ]
683
- },
684
- {
685
- :sequence => 2147483647,
686
- :displayDescription => "Order Comment",
687
- :fieldMeaning => "ORDER_COMMENT",
688
- :detailValues => [
689
- :valueType => "TEXT",
690
- :value => "test order comment text"
691
- ]
692
676
  }]}
693
677
 
694
678
  intermittentOrder2 = {:orderType => "INTERMITTENT",
@@ -977,7 +961,7 @@ module Api
977
961
  ]
978
962
  },
979
963
  {
980
- :sequence => 2147483646,
964
+ :sequence => 2147483647,
981
965
  :displayDescription => "Treatment Period",
982
966
  :fieldMeaning => "TREATMENTPERIOD",
983
967
  :detailValues => [
@@ -997,6 +981,7 @@ module Api
997
981
  :version => 0,
998
982
  :orderingProvider => "Fire Man",
999
983
  :synonymId => 20000003,
984
+ :comment => "fancy order comment text for testing",
1000
985
  :dose => {
1001
986
  :preferredDoseType => "FREETEXT",
1002
987
  :freetextDose => "100 mg/kg"
@@ -1113,7 +1098,7 @@ module Api
1113
1098
  ]
1114
1099
  },
1115
1100
  {
1116
- :sequence => 2147483646,
1101
+ :sequence => 2147483647,
1117
1102
  :displayDescription => "Inspiratory Time",
1118
1103
  :fieldMeaning => "INSPIRATORYTIME",
1119
1104
  :detailValues => [
@@ -1125,22 +1110,13 @@ module Api
1125
1110
  ]
1126
1111
  },
1127
1112
  {
1128
- :sequence => 2147483646,
1113
+ :sequence => 2147483647,
1129
1114
  :displayDescription => "Treatment Period",
1130
1115
  :fieldMeaning => "TREATMENTPERIOD",
1131
1116
  :detailValues => [
1132
1117
  :valueType => "TEXT",
1133
1118
  :value => "Day 4"
1134
1119
  ]
1135
- },
1136
- {
1137
- :sequence => 2147483647,
1138
- :displayDescription => "Order Comment",
1139
- :fieldMeaning => "ORDER_COMMENT",
1140
- :detailValues => [
1141
- :valueType => "TEXT",
1142
- :value => "fancy order comment text for testing"
1143
- ]
1144
1120
  }]}
1145
1121
 
1146
1122
  singleIngredientOrder4 = {:orderType => "SINGLEINGREDIENT",
@@ -1150,6 +1126,7 @@ module Api
1150
1126
  :version => 1,
1151
1127
  :orderingProvider => "Air Man",
1152
1128
  :synonymId => 20000010,
1129
+ :comment => "updated order comment",
1153
1130
  :dose => {
1154
1131
  :preferredDoseType => "STRENGTH",
1155
1132
  :strengthDose => {
@@ -1251,7 +1228,7 @@ module Api
1251
1228
  ]
1252
1229
  },
1253
1230
  {
1254
- :sequence => 2147483646,
1231
+ :sequence => 2147483647,
1255
1232
  :displayDescription => "Inspiratory Time",
1256
1233
  :fieldMeaning => "INSPIRATORYTIME",
1257
1234
  :detailValues => [
@@ -1263,22 +1240,13 @@ module Api
1263
1240
  ]
1264
1241
  },
1265
1242
  {
1266
- :sequence => 2147483646,
1243
+ :sequence => 2147483647,
1267
1244
  :displayDescription => "Treatment Period",
1268
1245
  :fieldMeaning => "TREATMENTPERIOD",
1269
1246
  :detailValues => [
1270
1247
  :valueType => "TEXT",
1271
1248
  :value => "Day 6"
1272
1249
  ]
1273
- },
1274
- {
1275
- :sequence => 2147483647,
1276
- :displayDescription => "Order Comment",
1277
- :fieldMeaning => "ORDER_COMMENT",
1278
- :detailValues => [
1279
- :valueType => "TEXT",
1280
- :value => "updated order comment"
1281
- ]
1282
1250
  }]}
1283
1251
 
1284
1252
  intermittentOrder3 = {:orderType => "INTERMITTENT",
@@ -1288,6 +1256,7 @@ module Api
1288
1256
  :version => 0,
1289
1257
  :orderingProvider => "Bomb Man",
1290
1258
  :synonymId => 20000006,
1259
+ :comment => "K! S! U! WILDCATS!!!",
1291
1260
  :drivingAgent => {
1292
1261
  :mnemonic => "vicodin",
1293
1262
  :dose => {
@@ -1619,7 +1588,7 @@ module Api
1619
1588
  ]
1620
1589
  },
1621
1590
  {
1622
- :sequence => 2147483646,
1591
+ :sequence => 2147483647,
1623
1592
  :displayDescription => "Inspiratory Time",
1624
1593
  :fieldMeaning => "INSPIRATORYTIME",
1625
1594
  :detailValues => [
@@ -1631,22 +1600,13 @@ module Api
1631
1600
  ]
1632
1601
  },
1633
1602
  {
1634
- :sequence => 2147483646,
1603
+ :sequence => 2147483647,
1635
1604
  :displayDescription => "Treatment Period",
1636
1605
  :fieldMeaning => "TREATMENTPERIOD",
1637
1606
  :detailValues => [
1638
1607
  :valueType => "TEXT",
1639
1608
  :value => "Week 1"
1640
1609
  ]
1641
- },
1642
- {
1643
- :sequence => 2147483647,
1644
- :displayDescription => "Order Comment",
1645
- :fieldMeaning => "ORDER_COMMENT",
1646
- :detailValues => [
1647
- :valueType => "TEXT",
1648
- :value => "K! S! U! WILDCATS!!!"
1649
- ]
1650
1610
  }]}
1651
1611
 
1652
1612
  [singleIngredientOrder3, singleIngredientOrder4, intermittentOrder3]
@@ -1950,7 +1910,7 @@ module Api
1950
1910
  ]
1951
1911
  },
1952
1912
  {
1953
- :sequence => 2147483646,
1913
+ :sequence => 2147483647,
1954
1914
  :displayDescription => "Inspiratory Time",
1955
1915
  :fieldMeaning => "INSPIRATORYTIME",
1956
1916
  :detailValues => [
@@ -1962,7 +1922,7 @@ module Api
1962
1922
  ]
1963
1923
  },
1964
1924
  {
1965
- :sequence => 2147483646,
1925
+ :sequence => 2147483647,
1966
1926
  :displayDescription => "Treatment Period",
1967
1927
  :fieldMeaning => "TREATMENTPERIOD",
1968
1928
  :detailValues => [
@@ -1980,6 +1940,7 @@ module Api
1980
1940
  :version => 1,
1981
1941
  :orderingProvider => "Mega Man",
1982
1942
  :synonymId => 20000008,
1943
+ :comment => "MONSTER OF THE MIDWAY!!!",
1983
1944
  :tpn => false,
1984
1945
  :additives => [{
1985
1946
  :sequence => 0,
@@ -2058,7 +2019,7 @@ module Api
2058
2019
  }
2059
2020
  }],
2060
2021
  :details => [{
2061
- :sequence => 2147483646,
2022
+ :sequence => 2147483647,
2062
2023
  :displayDescription => "Inspiratory Time",
2063
2024
  :fieldMeaning => "INSPIRATORYTIME",
2064
2025
  :detailValues => [
@@ -2213,7 +2174,7 @@ module Api
2213
2174
  ]
2214
2175
  },
2215
2176
  {
2216
- :sequence => 2147483646,
2177
+ :sequence => 2147483647,
2217
2178
  :displayDescription => "Treatment Period",
2218
2179
  :fieldMeaning => "TREATMENTPERIOD",
2219
2180
  :detailValues => [
@@ -2248,15 +2209,6 @@ module Api
2248
2209
  }
2249
2210
  }
2250
2211
  ]
2251
- },
2252
- {
2253
- :sequence => 2147483647,
2254
- :displayDescription => "Order Comment",
2255
- :fieldMeaning => "ORDER_COMMENT",
2256
- :detailValues => [
2257
- :valueType => "TEXT",
2258
- :value => "MONSTER OF THE MIDWAY!!!"
2259
- ]
2260
2212
  }]}
2261
2213
 
2262
2214
  continuousOrder3 = {:orderType => "CONTINUOUS",
@@ -2266,6 +2218,7 @@ module Api
2266
2218
  :version => 0,
2267
2219
  :orderingProvider => "Roll",
2268
2220
  :synonymId => 20000009,
2221
+ :comment => "",
2269
2222
  :tpn => true,
2270
2223
  :additives => [{
2271
2224
  :sequence => 0,
@@ -2740,22 +2693,13 @@ module Api
2740
2693
  ]
2741
2694
  },
2742
2695
  {
2743
- :sequence => 2147483646,
2696
+ :sequence => 2147483647,
2744
2697
  :displayDescription => "Treatment Period",
2745
2698
  :fieldMeaning => "TREATMENTPERIOD",
2746
2699
  :detailValues => [
2747
2700
  :valueType => "TEXT",
2748
2701
  :value => "Month 2"
2749
2702
  ]
2750
- },
2751
- {
2752
- :sequence => 2147483647,
2753
- :displayDescription => "Order Comment",
2754
- :fieldMeaning => "ORDER_COMMENT",
2755
- :detailValues => [
2756
- :valueType => "TEXT",
2757
- :value => ""
2758
- ]
2759
2703
  }]}
2760
2704
 
2761
2705
  [continuousOrder1, continuousOrder2, continuousOrder3]
@@ -3178,7 +3122,7 @@ module Api
3178
3122
 
3179
3123
  def inspiratory_time_detail
3180
3124
  {
3181
- :sequence => 2147483646,
3125
+ :sequence => 2147483647,
3182
3126
  :displayDescription => "Inspiratory Time",
3183
3127
  :fieldMeaning => "INSPIRATORYTIME",
3184
3128
  :detailValues => [
@@ -3193,7 +3137,7 @@ module Api
3193
3137
 
3194
3138
  def treatment_period_detail
3195
3139
  {
3196
- :sequence => 2147483646,
3140
+ :sequence => 2147483647,
3197
3141
  :displayDescription => "Treatment Period",
3198
3142
  :fieldMeaning => "TREATMENTPERIOD",
3199
3143
  :detailValues => [
@@ -3202,18 +3146,6 @@ module Api
3202
3146
  ]
3203
3147
  }
3204
3148
  end
3205
-
3206
- def order_comment_detail
3207
- {
3208
- :sequence => 2147483647,
3209
- :displayDescription => "Order Comment",
3210
- :fieldMeaning => "ORDER_COMMENT",
3211
- :detailValues => [
3212
- :valueType => "TEXT",
3213
- :value => "order comment"
3214
- ]
3215
- }
3216
- end
3217
3149
  =end
3218
3150
  end
3219
3151
  end
@@ -29,6 +29,7 @@ module Api
29
29
  :version => 0,
30
30
  :orderingProvider => "Elec Man",
31
31
  :synonymId => 20000001,
32
+ :comment => "this is a test comment that is really really really really really really really really super duper long to make the text wrap in the cell",
32
33
  :dose => {
33
34
  :preferredDoseType => "STRENGTH",
34
35
  :strengthDose => {
@@ -155,22 +156,13 @@ module Api
155
156
  ]
156
157
  },
157
158
  {
158
- :sequence => 2147483646,
159
+ :sequence => 2147483647,
159
160
  :displayDescription => "Treatment Period",
160
161
  :fieldMeaning => "TREATMENTPERIOD",
161
162
  :detailValues => [
162
163
  :valueType => "TEXT",
163
164
  :value => "Day 5"
164
165
  ]
165
- },
166
- {
167
- :sequence => 2147483647,
168
- :displayDescription => "Order Comment",
169
- :fieldMeaning => "ORDER_COMMENT",
170
- :detailValues => [
171
- :valueType => "TEXT",
172
- :value => "this is a test comment that is really really really really really really really really super duper long to make the text wrap in the cell, how much longer can it go to make it wrap in the cell, is there a height limit before cutting it off"
173
- ]
174
166
  }]}
175
167
 
176
168
  singleIngredientOrder2 = {:orderType => "SINGLEINGREDIENT",
@@ -295,7 +287,7 @@ module Api
295
287
  ]
296
288
  },
297
289
  {
298
- :sequence => 2147483646,
290
+ :sequence => 2147483647,
299
291
  :displayDescription => "Inspiratory Time",
300
292
  :fieldMeaning => "INSPIRATORYTIME",
301
293
  :detailValues => [
@@ -307,7 +299,7 @@ module Api
307
299
  ]
308
300
  },
309
301
  {
310
- :sequence => 2147483646,
302
+ :sequence => 2147483647,
311
303
  :displayDescription => "Treatment Period",
312
304
  :fieldMeaning => "TREATMENTPERIOD",
313
305
  :detailValues => [
@@ -323,6 +315,7 @@ module Api
323
315
  :version => 0,
324
316
  :orderingProvider => "Guts Man",
325
317
  :synonymId => 20000004,
318
+ :comment => "test order comment text",
326
319
  :drivingAgent => {
327
320
  :mnemonic => "mesna",
328
321
  :dose => {
@@ -379,61 +372,72 @@ module Api
379
372
  }
380
373
  },
381
374
  :additives => [{
382
- :sequence => 0,
383
- :mnemonic => "morphine",
384
- :dose => {
385
- :preferredDoseType => "VOLUME",
386
- :volumeDose => {
387
- :numericValue => {
388
- :value => 50,
389
- :precision => 2
390
- },
391
- :unitOfMeasure => {
392
- :value => 30000012,
393
- :meaning => "ML",
394
- :display => "ml"
395
- }
396
- }
397
- },
398
- :occurrence => {
399
- :value => 30000005,
400
- :meaning => "ONCE",
401
- :display => "Once"
402
- }
403
- },{
404
- :sequence => 0,
405
- :mnemonic => "mesna",
406
- :dose => {
407
- :preferredDoseType => "VOLUME",
408
- :volumeDose => {
409
- :numericValue => {
410
- :value => 12,
411
- :precision => 2
412
- },
413
- :unitOfMeasure => {
414
- :value => 30000012,
415
- :meaning => "ML",
416
- :display => "ml"
417
- }
418
- }
419
- },
420
- :normalizedRate => {
421
- :numericValue => {
422
- :value => 25.0,
423
- :precision => 1
424
- },
425
- :unitOfMeasure => {
426
- :value => 30000004,
427
- :meaning => "ML/KG/HR",
428
- :display => "ml/kg/hr"
429
- }
430
- },
431
- :occurrence => {
432
- :value => 30000005,
433
- :meaning => "ONCE",
434
- :display => "Once"
435
- }
436
- }],
375
+ :sequence => 0,
376
+ :mnemonic => "morphine",
377
+ :dose => {
378
+ :preferredDoseType => "VOLUME",
379
+ :volumeDose => {
380
+ :numericValue => {
381
+ :value => 50,
382
+ :precision => 2
383
+ },
384
+ :unitOfMeasure => {
385
+ :value => 30000012,
386
+ :meaning => "ML",
387
+ :display => "ml"
388
+ }
389
+ }
390
+ },
391
+ :normalizedRate => {
392
+ :numericValue => {
393
+ :value => 25.0,
394
+ :precision => 1
395
+ },
396
+ :unitOfMeasure => {
397
+ :value => 30000004,
398
+ :meaning => "ML/KG/HR",
399
+ :display => "ml/kg/hr"
400
+ }
401
+ },
402
+ :occurrence => {
403
+ :value => 30000005,
404
+ :meaning => "ONCE",
405
+ :display => "Once"
406
+ }
407
+ },{
408
+ :sequence => 0,
409
+ :mnemonic => "mesna",
410
+ :dose => {
411
+ :preferredDoseType => "VOLUME",
412
+ :volumeDose => {
413
+ :numericValue => {
414
+ :value => 12,
415
+ :precision => 2
416
+ },
417
+ :unitOfMeasure => {
418
+ :value => 30000012,
419
+ :meaning => "ML",
420
+ :display => "ml"
421
+ }
422
+ }
423
+ },
424
+ :normalizedRate => {
425
+ :numericValue => {
426
+ :value => 25.0,
427
+ :precision => 1
428
+ },
429
+ :unitOfMeasure => {
430
+ :value => 30000004,
431
+ :meaning => "ML/KG/HR",
432
+ :display => "ml/kg/hr"
433
+ }
434
+ },
435
+ :occurrence => {
436
+ :value => 30000005,
437
+ :meaning => "ONCE",
438
+ :display => "Once"
439
+ }
440
+ }],
437
441
  :diluents => [{
438
442
  :sequence => 0,
439
443
  :mnemonic => "dextrose",
@@ -600,7 +604,7 @@ module Api
600
604
  ]
601
605
  },
602
606
  {
603
- :sequence => 2147483646,
607
+ :sequence => 2147483647,
604
608
  :displayDescription => "Inspiratory Time",
605
609
  :fieldMeaning => "INSPIRATORYTIME",
606
610
  :detailValues => [
@@ -612,22 +616,13 @@ module Api
612
616
  ]
613
617
  },
614
618
  {
615
- :sequence => 2147483646,
619
+ :sequence => 2147483647,
616
620
  :displayDescription => "Treatment Period",
617
621
  :fieldMeaning => "TREATMENTPERIOD",
618
622
  :detailValues => [
619
623
  :valueType => "TEXT",
620
624
  :value => "Day 2"
621
625
  ]
622
- },
623
- {
624
- :sequence => 2147483647,
625
- :displayDescription => "Order Comment",
626
- :fieldMeaning => "ORDER_COMMENT",
627
- :detailValues => [
628
- :valueType => "TEXT",
629
- :value => "test order comment text"
630
- ]
631
626
  }]}
632
627
 
633
628
  intermittentOrder2 = {:orderType => "INTERMITTENT",
@@ -916,7 +911,7 @@ module Api
916
911
  ]
917
912
  },
918
913
  {
919
- :sequence => 2147483646,
914
+ :sequence => 2147483647,
920
915
  :displayDescription => "Treatment Period",
921
916
  :fieldMeaning => "TREATMENTPERIOD",
922
917
  :detailValues => [
@@ -936,6 +931,7 @@ module Api
936
931
  :version => 0,
937
932
  :orderingProvider => "Fire Man",
938
933
  :synonymId => 20000003,
934
+ :comment => "fancy order comment text for testing",
939
935
  :dose => {
940
936
  :preferredDoseType => "FREETEXT",
941
937
  :freetextDose => "100 mg/kg"
@@ -1052,7 +1048,7 @@ module Api
1052
1048
  ]
1053
1049
  },
1054
1050
  {
1055
- :sequence => 2147483646,
1051
+ :sequence => 2147483647,
1056
1052
  :displayDescription => "Inspiratory Time",
1057
1053
  :fieldMeaning => "INSPIRATORYTIME",
1058
1054
  :detailValues => [
@@ -1064,22 +1060,13 @@ module Api
1064
1060
  ]
1065
1061
  },
1066
1062
  {
1067
- :sequence => 2147483646,
1063
+ :sequence => 2147483647,
1068
1064
  :displayDescription => "Treatment Period",
1069
1065
  :fieldMeaning => "TREATMENTPERIOD",
1070
1066
  :detailValues => [
1071
1067
  :valueType => "TEXT",
1072
1068
  :value => "Day 4"
1073
1069
  ]
1074
- },
1075
- {
1076
- :sequence => 2147483647,
1077
- :displayDescription => "Order Comment",
1078
- :fieldMeaning => "ORDER_COMMENT",
1079
- :detailValues => [
1080
- :valueType => "TEXT",
1081
- :value => "fancy order comment text for testing"
1082
- ]
1083
1070
  }]}
1084
1071
 
1085
1072
  singleIngredientOrder4 = {:orderType => "SINGLEINGREDIENT",
@@ -1089,6 +1076,7 @@ module Api
1089
1076
  :version => 0,
1090
1077
  :orderingProvider => "Air Man",
1091
1078
  :synonymId => 20000010,
1079
+ :comment => "",
1092
1080
  :dose => {
1093
1081
  :preferredDoseType => "STRENGTH",
1094
1082
  :strengthDose => {
@@ -1189,7 +1177,7 @@ module Api
1189
1177
  ]
1190
1178
  },
1191
1179
  {
1192
- :sequence => 2147483646,
1180
+ :sequence => 2147483647,
1193
1181
  :displayDescription => "Inspiratory Time",
1194
1182
  :fieldMeaning => "INSPIRATORYTIME",
1195
1183
  :detailValues => [
@@ -1201,21 +1189,13 @@ module Api
1201
1189
  ]
1202
1190
  },
1203
1191
  {
1204
- :sequence => 2147483646,
1192
+ :sequence => 2147483647,
1205
1193
  :displayDescription => "Treatment Period",
1206
1194
  :fieldMeaning => "TREATMENTPERIOD",
1207
1195
  :detailValues => [
1208
1196
  :valueType => "TEXT",
1209
1197
  :value => "Day 6"
1210
1198
  ]
1211
- },
1212
- {
1213
- :sequence => 2147483647,
1214
- :displayDescription => "Order Comment",
1215
- :fieldMeaning => "ORDER_COMMENT",
1216
- :detailValues => [
1217
- :valueType => "TEXT"
1218
- ]
1219
1199
  }]}
1220
1200
 
1221
1201
  intermittentOrder3 = {:orderType => "INTERMITTENT",
@@ -1225,6 +1205,7 @@ module Api
1225
1205
  :version => 0,
1226
1206
  :orderingProvider => "Bomb Man",
1227
1207
  :synonymId => 20000006,
1208
+ :comment => "K! S! U! WILDCATS!!!",
1228
1209
  :drivingAgent => {
1229
1210
  :mnemonic => "vicodin",
1230
1211
  :dose => {
@@ -1556,7 +1537,7 @@ module Api
1556
1537
  ]
1557
1538
  },
1558
1539
  {
1559
- :sequence => 2147483646,
1540
+ :sequence => 2147483647,
1560
1541
  :displayDescription => "Inspiratory Time",
1561
1542
  :fieldMeaning => "INSPIRATORYTIME",
1562
1543
  :detailValues => [
@@ -1568,22 +1549,13 @@ module Api
1568
1549
  ]
1569
1550
  },
1570
1551
  {
1571
- :sequence => 2147483646,
1552
+ :sequence => 2147483647,
1572
1553
  :displayDescription => "Treatment Period",
1573
1554
  :fieldMeaning => "TREATMENTPERIOD",
1574
1555
  :detailValues => [
1575
1556
  :valueType => "TEXT",
1576
1557
  :value => "Week 1"
1577
1558
  ]
1578
- },
1579
- {
1580
- :sequence => 2147483647,
1581
- :displayDescription => "Order Comment",
1582
- :fieldMeaning => "ORDER_COMMENT",
1583
- :detailValues => [
1584
- :valueType => "TEXT",
1585
- :value => "K! S! U! WILDCATS!!!"
1586
- ]
1587
1559
  }]}
1588
1560
 
1589
1561
  [singleIngredientOrder3, singleIngredientOrder4, intermittentOrder3]
@@ -1666,47 +1638,47 @@ module Api
1666
1638
  }
1667
1639
  }],
1668
1640
  :diluents => [{
1669
- :sequence => 0,
1670
- :mnemonic => "dextrose 25%",
1671
- :bagVolume => {
1672
- :numericValue => {
1673
- :value => 1000,
1674
- :precision => 2
1675
- },
1676
- :unitOfMeasure => {
1677
- :value => 30000006,
1678
- :meaning => "ML",
1679
- :display => "ml"
1680
- }
1681
- },
1682
- :rate => {
1683
- :numericValue => {
1684
- :value => 25.0,
1685
- :precision => 2
1686
- },
1687
- :unitOfMeasure => {
1688
- :value => 30000007,
1689
- :meaning => "ML/HR",
1690
- :display => "ml/hr"
1691
- }
1692
- },
1693
- :infuseOver => {
1694
- :numericValue => {
1695
- :value => 5,
1696
- :precision => 0
1697
- },
1698
- :unitOfMeasure => {
1699
- :value => 30000008,
1700
- :meaning => "HRS",
1701
- :display => "hr(s)"
1702
- }
1703
- },
1704
- :bagFrequency => {
1705
- :value => 30000009,
1706
- :meaning => "EOB",
1707
- :display => "EOB"
1708
- }
1709
- }],
1641
+ :sequence => 0,
1642
+ :mnemonic => "dextrose 25%",
1643
+ :bagVolume => {
1644
+ :numericValue => {
1645
+ :value => 1000,
1646
+ :precision => 2
1647
+ },
1648
+ :unitOfMeasure => {
1649
+ :value => 30000006,
1650
+ :meaning => "ML",
1651
+ :display => "ml"
1652
+ }
1653
+ },
1654
+ :rate => {
1655
+ :numericValue => {
1656
+ :value => 25.0,
1657
+ :precision => 2
1658
+ },
1659
+ :unitOfMeasure => {
1660
+ :value => 30000007,
1661
+ :meaning => "ML/HR",
1662
+ :display => "ml/hr"
1663
+ }
1664
+ },
1665
+ :infuseOver => {
1666
+ :numericValue => {
1667
+ :value => 5,
1668
+ :precision => 0
1669
+ },
1670
+ :unitOfMeasure => {
1671
+ :value => 30000008,
1672
+ :meaning => "HRS",
1673
+ :display => "hr(s)"
1674
+ }
1675
+ },
1676
+ :bagFrequency => {
1677
+ :value => 30000009,
1678
+ :meaning => "EOB",
1679
+ :display => "EOB"
1680
+ }
1681
+ }],
1710
1682
  :details => [{
1711
1683
  :sequence => 0,
1712
1684
  :displayDescription => "Route of Administration",
@@ -1887,7 +1859,7 @@ module Api
1887
1859
  ]
1888
1860
  },
1889
1861
  {
1890
- :sequence => 2147483646,
1862
+ :sequence => 2147483647,
1891
1863
  :displayDescription => "Inspiratory Time",
1892
1864
  :fieldMeaning => "INSPIRATORYTIME",
1893
1865
  :detailValues => [
@@ -1899,7 +1871,7 @@ module Api
1899
1871
  ]
1900
1872
  },
1901
1873
  {
1902
- :sequence => 2147483646,
1874
+ :sequence => 2147483647,
1903
1875
  :displayDescription => "Treatment Period",
1904
1876
  :fieldMeaning => "TREATMENTPERIOD",
1905
1877
  :detailValues => [
@@ -1917,6 +1889,7 @@ module Api
1917
1889
  :version => 0,
1918
1890
  :orderingProvider => "Mega Man",
1919
1891
  :synonymId => 20000008,
1892
+ :comment => "DA BEARS!!!",
1920
1893
  :tpn => false,
1921
1894
  :additives => [{
1922
1895
  :sequence => 0,
@@ -1995,7 +1968,7 @@ module Api
1995
1968
  }
1996
1969
  }],
1997
1970
  :details => [{
1998
- :sequence => 2147483646,
1971
+ :sequence => 2147483647,
1999
1972
  :displayDescription => "Inspiratory Time",
2000
1973
  :fieldMeaning => "INSPIRATORYTIME",
2001
1974
  :detailValues => [
@@ -2150,7 +2123,7 @@ module Api
2150
2123
  ]
2151
2124
  },
2152
2125
  {
2153
- :sequence => 2147483646,
2126
+ :sequence => 2147483647,
2154
2127
  :displayDescription => "Treatment Period",
2155
2128
  :fieldMeaning => "TREATMENTPERIOD",
2156
2129
  :detailValues => [
@@ -2185,15 +2158,6 @@ module Api
2185
2158
  }
2186
2159
  }
2187
2160
  ]
2188
- },
2189
- {
2190
- :sequence => 2147483647,
2191
- :displayDescription => "Order Comment",
2192
- :fieldMeaning => "ORDER_COMMENT",
2193
- :detailValues => [
2194
- :valueType => "TEXT",
2195
- :value => "DA BEARS!!!"
2196
- ]
2197
2161
  }]}
2198
2162
 
2199
2163
  continuousOrder3 = {:orderType => "CONTINUOUS",
@@ -2203,6 +2167,7 @@ module Api
2203
2167
  :version => 0,
2204
2168
  :orderingProvider => "Roll",
2205
2169
  :synonymId => 20000009,
2170
+ :comment => "",
2206
2171
  :tpn => true,
2207
2172
  :additives => [{
2208
2173
  :sequence => 0,
@@ -2677,22 +2642,13 @@ module Api
2677
2642
  ]
2678
2643
  },
2679
2644
  {
2680
- :sequence => 2147483646,
2645
+ :sequence => 2147483647,
2681
2646
  :displayDescription => "Treatment Period",
2682
2647
  :fieldMeaning => "TREATMENTPERIOD",
2683
2648
  :detailValues => [
2684
2649
  :valueType => "TEXT",
2685
2650
  :value => "Month 2"
2686
2651
  ]
2687
- },
2688
- {
2689
- :sequence => 2147483647,
2690
- :displayDescription => "Order Comment",
2691
- :fieldMeaning => "ORDER_COMMENT",
2692
- :detailValues => [
2693
- :valueType => "TEXT",
2694
- :value => ""
2695
- ]
2696
2652
  }]}
2697
2653
 
2698
2654
  [continuousOrder1, continuousOrder2, continuousOrder3]
@@ -3114,7 +3070,7 @@ module Api
3114
3070
 
3115
3071
  def inspiratory_time_detail
3116
3072
  {
3117
- :sequence => 2147483646,
3073
+ :sequence => 2147483647,
3118
3074
  :displayDescription => "Inspiratory Time",
3119
3075
  :fieldMeaning => "INSPIRATORYTIME",
3120
3076
  :detailValues => [
@@ -3129,7 +3085,7 @@ module Api
3129
3085
 
3130
3086
  def treatment_period_detail
3131
3087
  {
3132
- :sequence => 2147483646,
3088
+ :sequence => 2147483647,
3133
3089
  :displayDescription => "Treatment Period",
3134
3090
  :fieldMeaning => "TREATMENTPERIOD",
3135
3091
  :detailValues => [
@@ -3138,18 +3094,6 @@ module Api
3138
3094
  ]
3139
3095
  }
3140
3096
  end
3141
-
3142
- def order_comment_detail
3143
- {
3144
- :sequence => 2147483647,
3145
- :displayDescription => "Order Comment",
3146
- :fieldMeaning => "ORDER_COMMENT",
3147
- :detailValues => [
3148
- :valueType => "TEXT",
3149
- :value => "order comment"
3150
- ]
3151
- }
3152
- end
3153
3097
  =end
3154
3098
  end
3155
3099
  end
@@ -92,6 +92,10 @@ module Mockingjay
92
92
  Rails.logger.info "Initializer: reference.rb: Loading reference model classes from database."
93
93
  Reference::DataTypes.reload
94
94
  end
95
+
96
+ #routes are gotten twice and only needed once so halve the array
97
+ routes = self.instance.routes_reloader.instance_variable_get(:@route_sets)
98
+ self.instance.routes_reloader.instance_variable_set(:@route_sets, routes.first(routes.count / 2))
95
99
  end
96
100
 
97
101
  end
@@ -2,4 +2,4 @@
2
2
  require File.expand_path('../application', __FILE__)
3
3
 
4
4
  # Initialize the rails application
5
- Mockingjay::Application.initialize!
5
+ Mockingjay::Application.initialize!
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ion_orders_engine_mockingjay
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Schuster
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-24 00:00:00.000000000 Z
11
+ date: 2013-09-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: mockingjay for ion_orders_engine
14
14
  email:
@@ -168,12 +168,9 @@ files:
168
168
  - config/environments/development.rb
169
169
  - config/environments/production.rb
170
170
  - config/environments/test.rb
171
- - config/initializers/backtrace_silencers.rb
172
171
  - config/initializers/extensions/active_record.rb
173
172
  - config/initializers/extensions/hash.rb
174
173
  - config/initializers/extensions/string.rb
175
- - config/initializers/inflections.rb
176
- - config/initializers/mime_types.rb
177
174
  - config/initializers/reference.rb
178
175
  - config/initializers/secret_token.rb
179
176
  - config/initializers/session_store.rb
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
-
6
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
- # Rails.backtrace_cleaner.remove_silencers!
@@ -1,15 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format
4
- # (all these examples are active by default):
5
- # ActiveSupport::Inflector.inflections do |inflect|
6
- # inflect.plural /^(ox)$/i, '\1en'
7
- # inflect.singular /^(ox)en/i, '\1'
8
- # inflect.irregular 'person', 'people'
9
- # inflect.uncountable %w( fish sheep )
10
- # end
11
- #
12
- # These inflection rules are supported but not enabled by default:
13
- # ActiveSupport::Inflector.inflections do |inflect|
14
- # inflect.acronym 'RESTful'
15
- # end
@@ -1,5 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf
5
- # Mime::Type.register_alias "text/html", :iphone