medivo 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. data/app/assets/javascripts/medivo/date.js +1078 -0
  2. data/app/assets/javascripts/medivo/helpers.coffee +31 -0
  3. data/app/assets/javascripts/medivo/lab_appointment/application.js +6 -0
  4. data/app/assets/javascripts/medivo/lab_appointment/handlers.coffee +31 -0
  5. data/app/assets/javascripts/medivo/lab_appointment/models.coffee +16 -0
  6. data/app/assets/javascripts/medivo/lab_appointment/sample/show_appointments.coffee +13 -0
  7. data/app/assets/javascripts/medivo/lab_appointment/views.coffee +9 -0
  8. data/app/assets/javascripts/medivo/lab_list/application.js +2 -1
  9. data/app/assets/javascripts/medivo/lab_list/{init.coffee → handlers.coffee} +7 -6
  10. data/app/assets/javascripts/medivo/lab_list/models.coffee +12 -54
  11. data/app/assets/javascripts/medivo/lab_list/sample/show_labs.coffee +8 -1
  12. data/app/assets/javascripts/medivo/lab_list/views.coffee +21 -30
  13. data/app/assets/javascripts/medivo/models.coffee +29 -0
  14. data/app/assets/javascripts/medivo/views.coffee +16 -0
  15. data/app/controllers/medivo/labs_controller.rb +10 -0
  16. data/app/models/medivo/appointment.rb +21 -0
  17. data/app/models/medivo/appointment_resource.rb +14 -0
  18. data/app/models/medivo/insurance_order.rb +1 -6
  19. data/app/models/medivo/lab.rb +11 -9
  20. data/app/models/medivo/lab_resource.rb +14 -0
  21. data/app/models/medivo/order.rb +2 -2
  22. data/app/models/medivo/primary_insurance.rb +6 -4
  23. data/app/models/medivo/resource_config.rb +16 -0
  24. data/config/routes.rb +1 -0
  25. data/lib/generators/medivo/appointments/appointments_generator.rb +15 -0
  26. data/lib/generators/medivo/labs/labs_generator.rb +33 -0
  27. data/lib/generators/medivo/templates/appointment_resource.yml +11 -0
  28. data/lib/generators/medivo/templates/lab_resource.yml +21 -0
  29. data/lib/generators/medivo/templates/labs_controller.rb +6 -0
  30. data/lib/generators/medivo/templates/search.html.haml +45 -0
  31. data/lib/medivo.rb +2 -1
  32. data/lib/medivo/fdf_generator.rb +36 -0
  33. data/lib/medivo/version.rb +1 -1
  34. data/spec/dummy/app/assets/javascripts/application.js +2 -0
  35. data/spec/dummy/app/controllers/labs_controller.rb +3 -5
  36. data/spec/dummy/app/views/labs/search.html.haml +31 -1
  37. data/spec/dummy/config/medivo/appointment_resource.yml +12 -0
  38. data/spec/dummy/config/medivo/lab_resource.yml +21 -0
  39. data/spec/dummy/config/routes.rb +1 -1
  40. data/spec/dummy/log/development.log +7782 -0
  41. data/spec/dummy/log/test.log +243 -0
  42. data/spec/dummy/tmp/cache/assets/C46/F00/sprockets%2F2281d588b540056c5a7306c32a3761b9 +0 -0
  43. data/spec/dummy/tmp/cache/assets/C69/500/sprockets%2F140b56780716711c2b6eb1028f042ca6 +0 -0
  44. data/spec/dummy/tmp/cache/assets/C6C/8D0/sprockets%2F2f423a28516973330a94ad121151f3bf +0 -0
  45. data/spec/dummy/tmp/cache/assets/C70/AC0/sprockets%2F25232afc7932c662d9d6f032030a2428 +0 -0
  46. data/spec/dummy/tmp/cache/assets/C81/D00/sprockets%2F64f056bd752d271308a86a6f865b1911 +0 -0
  47. data/spec/dummy/tmp/cache/assets/CB4/BD0/sprockets%2F3378f27c0d4f5e6d708665b22707a31f +0 -0
  48. data/spec/dummy/tmp/cache/assets/CC3/EF0/sprockets%2F453b504c1f8f374578636f699eaa455d +0 -0
  49. data/spec/dummy/tmp/cache/assets/CD8/DA0/sprockets%2F622aa5281d15503829a5f7a0bf56fc29 +0 -0
  50. data/spec/dummy/tmp/cache/assets/CDD/820/sprockets%2Fb28231960c7ac62eff9048e702a29c70 +0 -0
  51. data/spec/dummy/tmp/cache/assets/CEC/EF0/sprockets%2F4b24a74018f693c06088bd52f8cc9f86 +0 -0
  52. data/spec/dummy/tmp/cache/assets/CEE/250/sprockets%2F96688f33f2f8aa261bf6701c1d6d7575 +0 -0
  53. data/spec/dummy/tmp/cache/assets/D07/6B0/sprockets%2F69a2df619ff14da071309dac4196400e +0 -0
  54. data/spec/dummy/tmp/cache/assets/D1B/820/sprockets%2F92a83e15913997b3d9ac7ed437b1e44c +0 -0
  55. data/spec/dummy/tmp/cache/assets/D20/F10/sprockets%2Fb2e907e4faa85fe755f4439e3b229088 +0 -0
  56. data/spec/dummy/tmp/cache/assets/D29/000/sprockets%2F61a10ddf57f1129c02a1049bfed6e007 +0 -0
  57. data/spec/dummy/tmp/cache/assets/D2C/F80/sprockets%2F399f6d5eb273936af7ff8f35a77c5037 +0 -0
  58. data/spec/dummy/tmp/cache/assets/D30/920/sprockets%2Fcc4603fc6441ca421a7d02886a81ab9d +0 -0
  59. data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  60. data/spec/dummy/tmp/cache/assets/D36/870/sprockets%2Fce9e887568de873b133ae43d7c977f68 +0 -0
  61. data/spec/dummy/tmp/cache/assets/D3A/210/sprockets%2F4f9664dabb00038f85b417cc38bf83a1 +0 -0
  62. data/spec/dummy/tmp/cache/assets/D41/250/sprockets%2F7b3c4426715dcd1feedc4a95e5444256 +0 -0
  63. data/spec/dummy/tmp/cache/assets/D45/320/sprockets%2Fc50ff379a1bdf1dd4d22249058749cf6 +0 -0
  64. data/spec/dummy/tmp/cache/assets/D4C/7A0/sprockets%2Fbc635c7b186d1ef5178f4ed3722d868b +0 -0
  65. data/spec/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4 +0 -0
  66. data/spec/dummy/tmp/cache/assets/D55/ED0/sprockets%2F0f673e42e816c6fe5b66a5c96f896f1a +0 -0
  67. data/spec/dummy/tmp/cache/assets/D5D/3E0/sprockets%2F63fea6cc142b5f02da93bf81e70b2116 +0 -0
  68. data/spec/dummy/tmp/cache/assets/D60/030/sprockets%2Ffc9485f617fc5e9b8918755d2e08ecc6 +0 -0
  69. data/spec/dummy/tmp/cache/assets/D64/C50/sprockets%2F22ee6fb2ab1ea9694ac7f0f41a406094 +0 -0
  70. data/spec/dummy/tmp/cache/assets/D65/6D0/sprockets%2F3ce07ca1958d7ab3e80c4b3e0d24088c +0 -0
  71. data/spec/dummy/tmp/cache/assets/D68/AD0/sprockets%2F19727663b4ec901b812dbdabee2526ec +0 -0
  72. data/spec/dummy/tmp/cache/assets/D69/130/sprockets%2Fbaa4ec50a34ce938c986612c2a47a64e +0 -0
  73. data/spec/dummy/tmp/cache/assets/D6E/700/sprockets%2Ff39fb8d8a25e4f3fd01a3e506ae31935 +0 -0
  74. data/spec/dummy/tmp/cache/assets/D74/9A0/sprockets%2F0ca4e6e833c72156fc7e7d5f007d9ce3 +0 -0
  75. data/spec/dummy/tmp/cache/assets/D76/720/sprockets%2F88d8aa1d2fb41ce79b8ec4150ea74748 +0 -0
  76. data/spec/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 +0 -0
  77. data/spec/dummy/tmp/cache/assets/D88/2C0/sprockets%2F452ab3ebb1912cf1c2ba617eec52a718 +0 -0
  78. data/spec/dummy/tmp/cache/assets/D9C/F50/sprockets%2F224e78bb9e1c414a2d518a3aaffd6f77 +0 -0
  79. data/spec/dummy/tmp/cache/assets/D9F/260/sprockets%2Fa3e040f83c30e4bbc1c79ffae57909e6 +0 -0
  80. data/spec/dummy/tmp/cache/assets/DA1/640/sprockets%2F91874cbba5e63cd19d6a7bd3c8362dc4 +0 -0
  81. data/spec/dummy/tmp/cache/assets/DC1/230/sprockets%2F3a36cd467bdce1914a2b7af4ed4114cf +0 -0
  82. data/spec/dummy/tmp/cache/assets/DCE/E80/sprockets%2Fc71ec62157b9cc7aabfc030955cef87b +0 -0
  83. data/spec/dummy/tmp/cache/assets/DD1/FD0/sprockets%2Fa531f33dc9c5852d39d64a9eda44dacf +0 -0
  84. data/spec/dummy/tmp/cache/assets/DD4/2B0/sprockets%2Fef214a63f29afe7f3cbffc65af943108 +0 -0
  85. data/spec/dummy/tmp/cache/assets/DFC/420/sprockets%2F502e2c683d1aaad6ac88966ffc4d2ade +0 -0
  86. data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  87. data/spec/dummy/tmp/cache/assets/E32/FC0/sprockets%2Fe55fb2eef11567fe04fdaf7e73af5ba4 +0 -0
  88. data/spec/dummy/tmp/pids/server.pid +1 -1
  89. data/spec/models/orders_spec.rb +1 -23
  90. data/spec/models/primary_insurance_spec.rb +31 -0
  91. data/spec/requests/labs_spec.rb +0 -1
  92. data/spec/spec_helper.rb +7 -1
  93. data/spec/support/blueprints.rb +9 -1
  94. data/spec/support/helper.rb +9 -0
  95. metadata +94 -26
  96. data/app/assets/javascripts/medivo/lab_appointments/application.js +0 -0
  97. data/app/assets/javascripts/medivo/lab_appointments/models.coffee +0 -0
  98. data/app/assets/javascripts/medivo/lab_appointments/sample/show_appointments.coffee +0 -0
  99. data/app/assets/javascripts/medivo/lab_appointments/views.coffee +0 -0
  100. data/app/models/medivo/resource.rb +0 -24
  101. data/lib/generators/medivo/install/install_generator.rb +0 -41
  102. data/lib/generators/medivo/install/templates/medivo_resource.yml +0 -9
  103. data/spec/dummy/config/medivo_resource.yml +0 -12
@@ -1,3 +1,11 @@
1
+ ValidPrimaryInsuranceSample = Medivo::PrimaryInsurance.new(
2
+ :relationship=>1,
3
+ :company_name=>"Dude Insurance",
4
+ :policy_number=>"1234",
5
+ :group_number =>"555"
6
+ )
7
+
8
+
1
9
 
2
10
  BeverlyHillsLab1 = Medivo::Lab.new(
3
11
  "id"=>1752,
@@ -52,4 +60,4 @@ Order1 = Medivo::Order.new(
52
60
  :account_number => "423",
53
61
  :gender => "Male",
54
62
  :dob => "19801201"
55
- )
63
+ )
@@ -0,0 +1,9 @@
1
+ def pdf_to_text(pdf_stream)
2
+ file = Tempfile.new('pdf', :encoding => 'ascii-8bit')
3
+ file.write pdf_stream
4
+ file.close
5
+ pdf = PDF::Toolkit.open(file)
6
+ pdf.to_text.read
7
+ ensure
8
+ file.unlink
9
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: medivo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,12 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-28 00:00:00.000000000 +01:00
12
+ date: 2011-10-30 01:00:00.000000000 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
17
- requirement: &2153135520 !ruby/object:Gem::Requirement
17
+ requirement: &2164722180 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 3.1.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2153135520
25
+ version_requirements: *2164722180
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: jquery-rails
28
- requirement: &2153135100 !ruby/object:Gem::Requirement
28
+ requirement: &2164721760 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *2153135100
36
+ version_requirements: *2164721760
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: coffee-script
39
- requirement: &2153134640 !ruby/object:Gem::Requirement
39
+ requirement: &2164721280 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '0'
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *2153134640
47
+ version_requirements: *2164721280
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: haml-rails
50
- requirement: &2153134220 !ruby/object:Gem::Requirement
50
+ requirement: &2164720860 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: '0'
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *2153134220
58
+ version_requirements: *2164720860
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: mysql2
61
- requirement: &2153133720 !ruby/object:Gem::Requirement
61
+ requirement: &2164720320 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ~>
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: 0.3.7
67
67
  type: :runtime
68
68
  prerelease: false
69
- version_requirements: *2153133720
69
+ version_requirements: *2164720320
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: geocoder
72
- requirement: &2153133300 !ruby/object:Gem::Requirement
72
+ requirement: &2164719880 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ! '>='
@@ -77,7 +77,18 @@ dependencies:
77
77
  version: '0'
78
78
  type: :runtime
79
79
  prerelease: false
80
- version_requirements: *2153133300
80
+ version_requirements: *2164719880
81
+ - !ruby/object:Gem::Dependency
82
+ name: rest-client
83
+ requirement: &2164719400 !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ! '>='
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ type: :runtime
90
+ prerelease: false
91
+ version_requirements: *2164719400
81
92
  description: Use the medivo platform to make a lab order or find a lab location
82
93
  email:
83
94
  - dsudol@medivo.com
@@ -98,29 +109,42 @@ files:
98
109
  - app/assets/images/medivo/markerI.png
99
110
  - app/assets/images/medivo/markerJ.png
100
111
  - app/assets/images/medivo/markerK.png
112
+ - app/assets/javascripts/medivo/date.js
101
113
  - app/assets/javascripts/medivo/handlebars.js
102
- - app/assets/javascripts/medivo/lab_appointments/application.js
103
- - app/assets/javascripts/medivo/lab_appointments/models.coffee
104
- - app/assets/javascripts/medivo/lab_appointments/sample/show_appointments.coffee
105
- - app/assets/javascripts/medivo/lab_appointments/views.coffee
114
+ - app/assets/javascripts/medivo/helpers.coffee
115
+ - app/assets/javascripts/medivo/lab_appointment/application.js
116
+ - app/assets/javascripts/medivo/lab_appointment/handlers.coffee
117
+ - app/assets/javascripts/medivo/lab_appointment/models.coffee
118
+ - app/assets/javascripts/medivo/lab_appointment/sample/show_appointments.coffee
119
+ - app/assets/javascripts/medivo/lab_appointment/views.coffee
106
120
  - app/assets/javascripts/medivo/lab_list/application.js
107
- - app/assets/javascripts/medivo/lab_list/init.coffee
121
+ - app/assets/javascripts/medivo/lab_list/handlers.coffee
108
122
  - app/assets/javascripts/medivo/lab_list/models.coffee
109
123
  - app/assets/javascripts/medivo/lab_list/sample/show_labs.coffee
110
124
  - app/assets/javascripts/medivo/lab_list/views.coffee
125
+ - app/assets/javascripts/medivo/models.coffee
126
+ - app/assets/javascripts/medivo/views.coffee
111
127
  - app/assets/stylesheets/medivo/application.css
112
128
  - app/controllers/medivo/application_controller.rb
113
129
  - app/controllers/medivo/labs_controller.rb
130
+ - app/models/medivo/appointment.rb
131
+ - app/models/medivo/appointment_resource.rb
114
132
  - app/models/medivo/insurance_order.rb
115
133
  - app/models/medivo/lab.rb
134
+ - app/models/medivo/lab_resource.rb
116
135
  - app/models/medivo/order.rb
117
136
  - app/models/medivo/primary_insurance.rb
118
- - app/models/medivo/resource.rb
137
+ - app/models/medivo/resource_config.rb
119
138
  - app/views/layouts/medivo/application.html.erb
120
139
  - config/routes.rb
121
- - lib/generators/medivo/install/install_generator.rb
122
- - lib/generators/medivo/install/templates/medivo_resource.yml
140
+ - lib/generators/medivo/appointments/appointments_generator.rb
141
+ - lib/generators/medivo/labs/labs_generator.rb
142
+ - lib/generators/medivo/templates/appointment_resource.yml
143
+ - lib/generators/medivo/templates/lab_resource.yml
144
+ - lib/generators/medivo/templates/labs_controller.rb
145
+ - lib/generators/medivo/templates/search.html.haml
123
146
  - lib/medivo/engine.rb
147
+ - lib/medivo/fdf_generator.rb
124
148
  - lib/medivo/validators.rb
125
149
  - lib/medivo/version.rb
126
150
  - lib/medivo.rb
@@ -149,7 +173,8 @@ files:
149
173
  - spec/dummy/config/initializers/session_store.rb
150
174
  - spec/dummy/config/initializers/wrap_parameters.rb
151
175
  - spec/dummy/config/locales/en.yml
152
- - spec/dummy/config/medivo_resource.yml
176
+ - spec/dummy/config/medivo/appointment_resource.yml
177
+ - spec/dummy/config/medivo/lab_resource.yml
153
178
  - spec/dummy/config/routes.rb
154
179
  - spec/dummy/config.ru
155
180
  - spec/dummy/log/development.log
@@ -163,52 +188,73 @@ files:
163
188
  - spec/dummy/tmp/cache/assets/C36/810/sprockets%2F5159467797298fb14cdd1716691362d5
164
189
  - spec/dummy/tmp/cache/assets/C46/F00/sprockets%2F2281d588b540056c5a7306c32a3761b9
165
190
  - spec/dummy/tmp/cache/assets/C69/500/sprockets%2F140b56780716711c2b6eb1028f042ca6
191
+ - spec/dummy/tmp/cache/assets/C6C/8D0/sprockets%2F2f423a28516973330a94ad121151f3bf
166
192
  - spec/dummy/tmp/cache/assets/C6E/760/sprockets%2F657954e57920845a5893956e7d32dd2d
193
+ - spec/dummy/tmp/cache/assets/C70/AC0/sprockets%2F25232afc7932c662d9d6f032030a2428
167
194
  - spec/dummy/tmp/cache/assets/C81/D00/sprockets%2F64f056bd752d271308a86a6f865b1911
168
195
  - spec/dummy/tmp/cache/assets/CAB/970/sprockets%2F6aa4308273851c94a14158394d4dcdc4
196
+ - spec/dummy/tmp/cache/assets/CB4/BD0/sprockets%2F3378f27c0d4f5e6d708665b22707a31f
169
197
  - spec/dummy/tmp/cache/assets/CC3/EF0/sprockets%2F453b504c1f8f374578636f699eaa455d
198
+ - spec/dummy/tmp/cache/assets/CD8/DA0/sprockets%2F622aa5281d15503829a5f7a0bf56fc29
199
+ - spec/dummy/tmp/cache/assets/CDD/820/sprockets%2Fb28231960c7ac62eff9048e702a29c70
170
200
  - spec/dummy/tmp/cache/assets/CE4/E70/sprockets%2F091ec16b8699113092ce35de93ca1d87
171
201
  - spec/dummy/tmp/cache/assets/CEC/EF0/sprockets%2F4b24a74018f693c06088bd52f8cc9f86
172
202
  - spec/dummy/tmp/cache/assets/CEE/250/sprockets%2F96688f33f2f8aa261bf6701c1d6d7575
173
203
  - spec/dummy/tmp/cache/assets/CFF/7F0/sprockets%2F4007fd53da973506c55bc273a05c5c0d
174
204
  - spec/dummy/tmp/cache/assets/CFF/8D0/sprockets%2Fc1053414055bf81a6d316dc14f12f9fd
205
+ - spec/dummy/tmp/cache/assets/D07/6B0/sprockets%2F69a2df619ff14da071309dac4196400e
175
206
  - spec/dummy/tmp/cache/assets/D19/310/sprockets%2F110931639fc185699ea1aaaf87dd488b
176
207
  - spec/dummy/tmp/cache/assets/D1B/820/sprockets%2F92a83e15913997b3d9ac7ed437b1e44c
177
208
  - spec/dummy/tmp/cache/assets/D20/F10/sprockets%2Fb2e907e4faa85fe755f4439e3b229088
178
209
  - spec/dummy/tmp/cache/assets/D29/000/sprockets%2F61a10ddf57f1129c02a1049bfed6e007
210
+ - spec/dummy/tmp/cache/assets/D2C/F80/sprockets%2F399f6d5eb273936af7ff8f35a77c5037
179
211
  - spec/dummy/tmp/cache/assets/D30/920/sprockets%2Fcc4603fc6441ca421a7d02886a81ab9d
180
212
  - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
181
213
  - spec/dummy/tmp/cache/assets/D36/870/sprockets%2Fce9e887568de873b133ae43d7c977f68
214
+ - spec/dummy/tmp/cache/assets/D3A/210/sprockets%2F4f9664dabb00038f85b417cc38bf83a1
215
+ - spec/dummy/tmp/cache/assets/D41/250/sprockets%2F7b3c4426715dcd1feedc4a95e5444256
182
216
  - spec/dummy/tmp/cache/assets/D45/320/sprockets%2Fc50ff379a1bdf1dd4d22249058749cf6
183
217
  - spec/dummy/tmp/cache/assets/D4C/7A0/sprockets%2Fbc635c7b186d1ef5178f4ed3722d868b
184
218
  - spec/dummy/tmp/cache/assets/D53/910/sprockets%2F9c83ce0cd69a6919e4b54e59d27e4d70
185
219
  - spec/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4
186
220
  - spec/dummy/tmp/cache/assets/D55/ED0/sprockets%2F0f673e42e816c6fe5b66a5c96f896f1a
187
221
  - spec/dummy/tmp/cache/assets/D5D/3E0/sprockets%2F63fea6cc142b5f02da93bf81e70b2116
222
+ - spec/dummy/tmp/cache/assets/D60/030/sprockets%2Ffc9485f617fc5e9b8918755d2e08ecc6
188
223
  - spec/dummy/tmp/cache/assets/D62/380/sprockets%2F712d93afe40570cc939133bddca13bc7
224
+ - spec/dummy/tmp/cache/assets/D64/C50/sprockets%2F22ee6fb2ab1ea9694ac7f0f41a406094
189
225
  - spec/dummy/tmp/cache/assets/D65/6D0/sprockets%2F3ce07ca1958d7ab3e80c4b3e0d24088c
190
226
  - spec/dummy/tmp/cache/assets/D68/AD0/sprockets%2F19727663b4ec901b812dbdabee2526ec
227
+ - spec/dummy/tmp/cache/assets/D69/130/sprockets%2Fbaa4ec50a34ce938c986612c2a47a64e
228
+ - spec/dummy/tmp/cache/assets/D6E/700/sprockets%2Ff39fb8d8a25e4f3fd01a3e506ae31935
191
229
  - spec/dummy/tmp/cache/assets/D74/9A0/sprockets%2F0ca4e6e833c72156fc7e7d5f007d9ce3
192
230
  - spec/dummy/tmp/cache/assets/D76/720/sprockets%2F88d8aa1d2fb41ce79b8ec4150ea74748
193
231
  - spec/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384
232
+ - spec/dummy/tmp/cache/assets/D88/2C0/sprockets%2F452ab3ebb1912cf1c2ba617eec52a718
194
233
  - spec/dummy/tmp/cache/assets/D9C/F50/sprockets%2F224e78bb9e1c414a2d518a3aaffd6f77
195
234
  - spec/dummy/tmp/cache/assets/D9D/4E0/sprockets%2Fe9dab92986b1516fca08474613ccadcb
235
+ - spec/dummy/tmp/cache/assets/D9F/260/sprockets%2Fa3e040f83c30e4bbc1c79ffae57909e6
236
+ - spec/dummy/tmp/cache/assets/DA1/640/sprockets%2F91874cbba5e63cd19d6a7bd3c8362dc4
196
237
  - spec/dummy/tmp/cache/assets/DA2/040/sprockets%2F6ab79dcced8cc9933b734e7b21c3a183
197
238
  - spec/dummy/tmp/cache/assets/DC1/230/sprockets%2F3a36cd467bdce1914a2b7af4ed4114cf
239
+ - spec/dummy/tmp/cache/assets/DCE/E80/sprockets%2Fc71ec62157b9cc7aabfc030955cef87b
198
240
  - spec/dummy/tmp/cache/assets/DD1/FD0/sprockets%2Fa531f33dc9c5852d39d64a9eda44dacf
199
241
  - spec/dummy/tmp/cache/assets/DD2/A50/sprockets%2Fecb5dd9066b50eb678cd8c9dbb21d229
200
242
  - spec/dummy/tmp/cache/assets/DD4/2B0/sprockets%2Fef214a63f29afe7f3cbffc65af943108
201
243
  - spec/dummy/tmp/cache/assets/DD5/3F0/sprockets%2Ff52fccdabfe2d4c9fc992057362772ac
244
+ - spec/dummy/tmp/cache/assets/DFC/420/sprockets%2F502e2c683d1aaad6ac88966ffc4d2ade
202
245
  - spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
246
+ - spec/dummy/tmp/cache/assets/E32/FC0/sprockets%2Fe55fb2eef11567fe04fdaf7e73af5ba4
203
247
  - spec/dummy/tmp/cache/assets/E59/D50/sprockets%2Fbe1cc4d9b0efb617e58baa16dd1dee58
204
248
  - spec/dummy/tmp/pids/server.pid
205
249
  - spec/fixtures/lc_positive_results.xml
206
250
  - spec/fixtures/valid_uhc_order.xml
207
251
  - spec/models/labs_spec.rb
208
252
  - spec/models/orders_spec.rb
253
+ - spec/models/primary_insurance_spec.rb
209
254
  - spec/requests/labs_spec.rb
210
255
  - spec/spec_helper.rb
211
256
  - spec/support/blueprints.rb
257
+ - spec/support/helper.rb
212
258
  has_rdoc: true
213
259
  homepage: http://www.medivo.com
214
260
  licenses: []
@@ -224,7 +270,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
224
270
  version: '0'
225
271
  segments:
226
272
  - 0
227
- hash: -860239742356801024
273
+ hash: -2584842976044243360
228
274
  required_rubygems_version: !ruby/object:Gem::Requirement
229
275
  none: false
230
276
  requirements:
@@ -233,7 +279,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
279
  version: '0'
234
280
  segments:
235
281
  - 0
236
- hash: -860239742356801024
282
+ hash: -2584842976044243360
237
283
  requirements: []
238
284
  rubyforge_project:
239
285
  rubygems_version: 1.6.2
@@ -261,7 +307,8 @@ test_files:
261
307
  - spec/dummy/config/initializers/session_store.rb
262
308
  - spec/dummy/config/initializers/wrap_parameters.rb
263
309
  - spec/dummy/config/locales/en.yml
264
- - spec/dummy/config/medivo_resource.yml
310
+ - spec/dummy/config/medivo/appointment_resource.yml
311
+ - spec/dummy/config/medivo/lab_resource.yml
265
312
  - spec/dummy/config/routes.rb
266
313
  - spec/dummy/config.ru
267
314
  - spec/dummy/log/development.log
@@ -275,49 +322,70 @@ test_files:
275
322
  - spec/dummy/tmp/cache/assets/C36/810/sprockets%2F5159467797298fb14cdd1716691362d5
276
323
  - spec/dummy/tmp/cache/assets/C46/F00/sprockets%2F2281d588b540056c5a7306c32a3761b9
277
324
  - spec/dummy/tmp/cache/assets/C69/500/sprockets%2F140b56780716711c2b6eb1028f042ca6
325
+ - spec/dummy/tmp/cache/assets/C6C/8D0/sprockets%2F2f423a28516973330a94ad121151f3bf
278
326
  - spec/dummy/tmp/cache/assets/C6E/760/sprockets%2F657954e57920845a5893956e7d32dd2d
327
+ - spec/dummy/tmp/cache/assets/C70/AC0/sprockets%2F25232afc7932c662d9d6f032030a2428
279
328
  - spec/dummy/tmp/cache/assets/C81/D00/sprockets%2F64f056bd752d271308a86a6f865b1911
280
329
  - spec/dummy/tmp/cache/assets/CAB/970/sprockets%2F6aa4308273851c94a14158394d4dcdc4
330
+ - spec/dummy/tmp/cache/assets/CB4/BD0/sprockets%2F3378f27c0d4f5e6d708665b22707a31f
281
331
  - spec/dummy/tmp/cache/assets/CC3/EF0/sprockets%2F453b504c1f8f374578636f699eaa455d
332
+ - spec/dummy/tmp/cache/assets/CD8/DA0/sprockets%2F622aa5281d15503829a5f7a0bf56fc29
333
+ - spec/dummy/tmp/cache/assets/CDD/820/sprockets%2Fb28231960c7ac62eff9048e702a29c70
282
334
  - spec/dummy/tmp/cache/assets/CE4/E70/sprockets%2F091ec16b8699113092ce35de93ca1d87
283
335
  - spec/dummy/tmp/cache/assets/CEC/EF0/sprockets%2F4b24a74018f693c06088bd52f8cc9f86
284
336
  - spec/dummy/tmp/cache/assets/CEE/250/sprockets%2F96688f33f2f8aa261bf6701c1d6d7575
285
337
  - spec/dummy/tmp/cache/assets/CFF/7F0/sprockets%2F4007fd53da973506c55bc273a05c5c0d
286
338
  - spec/dummy/tmp/cache/assets/CFF/8D0/sprockets%2Fc1053414055bf81a6d316dc14f12f9fd
339
+ - spec/dummy/tmp/cache/assets/D07/6B0/sprockets%2F69a2df619ff14da071309dac4196400e
287
340
  - spec/dummy/tmp/cache/assets/D19/310/sprockets%2F110931639fc185699ea1aaaf87dd488b
288
341
  - spec/dummy/tmp/cache/assets/D1B/820/sprockets%2F92a83e15913997b3d9ac7ed437b1e44c
289
342
  - spec/dummy/tmp/cache/assets/D20/F10/sprockets%2Fb2e907e4faa85fe755f4439e3b229088
290
343
  - spec/dummy/tmp/cache/assets/D29/000/sprockets%2F61a10ddf57f1129c02a1049bfed6e007
344
+ - spec/dummy/tmp/cache/assets/D2C/F80/sprockets%2F399f6d5eb273936af7ff8f35a77c5037
291
345
  - spec/dummy/tmp/cache/assets/D30/920/sprockets%2Fcc4603fc6441ca421a7d02886a81ab9d
292
346
  - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
293
347
  - spec/dummy/tmp/cache/assets/D36/870/sprockets%2Fce9e887568de873b133ae43d7c977f68
348
+ - spec/dummy/tmp/cache/assets/D3A/210/sprockets%2F4f9664dabb00038f85b417cc38bf83a1
349
+ - spec/dummy/tmp/cache/assets/D41/250/sprockets%2F7b3c4426715dcd1feedc4a95e5444256
294
350
  - spec/dummy/tmp/cache/assets/D45/320/sprockets%2Fc50ff379a1bdf1dd4d22249058749cf6
295
351
  - spec/dummy/tmp/cache/assets/D4C/7A0/sprockets%2Fbc635c7b186d1ef5178f4ed3722d868b
296
352
  - spec/dummy/tmp/cache/assets/D53/910/sprockets%2F9c83ce0cd69a6919e4b54e59d27e4d70
297
353
  - spec/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4
298
354
  - spec/dummy/tmp/cache/assets/D55/ED0/sprockets%2F0f673e42e816c6fe5b66a5c96f896f1a
299
355
  - spec/dummy/tmp/cache/assets/D5D/3E0/sprockets%2F63fea6cc142b5f02da93bf81e70b2116
356
+ - spec/dummy/tmp/cache/assets/D60/030/sprockets%2Ffc9485f617fc5e9b8918755d2e08ecc6
300
357
  - spec/dummy/tmp/cache/assets/D62/380/sprockets%2F712d93afe40570cc939133bddca13bc7
358
+ - spec/dummy/tmp/cache/assets/D64/C50/sprockets%2F22ee6fb2ab1ea9694ac7f0f41a406094
301
359
  - spec/dummy/tmp/cache/assets/D65/6D0/sprockets%2F3ce07ca1958d7ab3e80c4b3e0d24088c
302
360
  - spec/dummy/tmp/cache/assets/D68/AD0/sprockets%2F19727663b4ec901b812dbdabee2526ec
361
+ - spec/dummy/tmp/cache/assets/D69/130/sprockets%2Fbaa4ec50a34ce938c986612c2a47a64e
362
+ - spec/dummy/tmp/cache/assets/D6E/700/sprockets%2Ff39fb8d8a25e4f3fd01a3e506ae31935
303
363
  - spec/dummy/tmp/cache/assets/D74/9A0/sprockets%2F0ca4e6e833c72156fc7e7d5f007d9ce3
304
364
  - spec/dummy/tmp/cache/assets/D76/720/sprockets%2F88d8aa1d2fb41ce79b8ec4150ea74748
305
365
  - spec/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384
366
+ - spec/dummy/tmp/cache/assets/D88/2C0/sprockets%2F452ab3ebb1912cf1c2ba617eec52a718
306
367
  - spec/dummy/tmp/cache/assets/D9C/F50/sprockets%2F224e78bb9e1c414a2d518a3aaffd6f77
307
368
  - spec/dummy/tmp/cache/assets/D9D/4E0/sprockets%2Fe9dab92986b1516fca08474613ccadcb
369
+ - spec/dummy/tmp/cache/assets/D9F/260/sprockets%2Fa3e040f83c30e4bbc1c79ffae57909e6
370
+ - spec/dummy/tmp/cache/assets/DA1/640/sprockets%2F91874cbba5e63cd19d6a7bd3c8362dc4
308
371
  - spec/dummy/tmp/cache/assets/DA2/040/sprockets%2F6ab79dcced8cc9933b734e7b21c3a183
309
372
  - spec/dummy/tmp/cache/assets/DC1/230/sprockets%2F3a36cd467bdce1914a2b7af4ed4114cf
373
+ - spec/dummy/tmp/cache/assets/DCE/E80/sprockets%2Fc71ec62157b9cc7aabfc030955cef87b
310
374
  - spec/dummy/tmp/cache/assets/DD1/FD0/sprockets%2Fa531f33dc9c5852d39d64a9eda44dacf
311
375
  - spec/dummy/tmp/cache/assets/DD2/A50/sprockets%2Fecb5dd9066b50eb678cd8c9dbb21d229
312
376
  - spec/dummy/tmp/cache/assets/DD4/2B0/sprockets%2Fef214a63f29afe7f3cbffc65af943108
313
377
  - spec/dummy/tmp/cache/assets/DD5/3F0/sprockets%2Ff52fccdabfe2d4c9fc992057362772ac
378
+ - spec/dummy/tmp/cache/assets/DFC/420/sprockets%2F502e2c683d1aaad6ac88966ffc4d2ade
314
379
  - spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
380
+ - spec/dummy/tmp/cache/assets/E32/FC0/sprockets%2Fe55fb2eef11567fe04fdaf7e73af5ba4
315
381
  - spec/dummy/tmp/cache/assets/E59/D50/sprockets%2Fbe1cc4d9b0efb617e58baa16dd1dee58
316
382
  - spec/dummy/tmp/pids/server.pid
317
383
  - spec/fixtures/lc_positive_results.xml
318
384
  - spec/fixtures/valid_uhc_order.xml
319
385
  - spec/models/labs_spec.rb
320
386
  - spec/models/orders_spec.rb
387
+ - spec/models/primary_insurance_spec.rb
321
388
  - spec/requests/labs_spec.rb
322
389
  - spec/spec_helper.rb
323
390
  - spec/support/blueprints.rb
391
+ - spec/support/helper.rb
@@ -1,24 +0,0 @@
1
- require 'yaml'
2
- require 'ostruct'
3
- require 'active_resource'
4
-
5
- module Medivo
6
- class Locator
7
- def self.find
8
- return @location if @location
9
- config_file = File.join(Rails.root.join('config', 'medivo_resource.yml'))
10
- config = YAML.load_file(config_file)
11
- @location = OpenStruct.new config[Rails.env]
12
- end
13
- end
14
-
15
- class Resource < ActiveResource::Base
16
- location = Locator.find
17
- self.include_root_in_json = false
18
- self.site = location.href
19
- self.user = location.user
20
- self.password = location.password
21
- self.format = :xml
22
- end
23
- end
24
-
@@ -1,41 +0,0 @@
1
- module Medivo
2
- module Generators #:nodoc:
3
- class InstallGenerator < Rails::Generators::Base #:nodoc:
4
-
5
- def active_resource_database_file
6
- Dir::mkdir('config/medivo')
7
- copy_file "active_resource_database.yml", "config/medivo/active_resource_database.yml"
8
- end
9
-
10
- def test_helper
11
- if rspec?
12
- inject_into_file("spec/spec_helper.rb", :after => "Rspec.configure do |config|\n") do
13
- " # Reset the Machinist cache before each spec.\n" +
14
- " config.before(:each) { Machinist.reset_before_test }\n\n"
15
- end
16
- else
17
- inject_into_file("test/test_helper.rb", :after => "require 'rails/test_help'\n") do
18
- "require File.expand_path(File.dirname(__FILE__) + '/blueprints')\n"
19
- end
20
- inject_into_class("test/test_helper.rb", ActiveSupport::TestCase) do
21
- " # Reset the Machinist cache before each test.\n" +
22
- " setup { Machinist.reset_before_test }\n\n"
23
- end
24
- end
25
- end
26
-
27
- def cucumber_support
28
- if options[:cucumber]
29
- template "machinist.rb.erb", "features/support/machinist.rb"
30
- end
31
- end
32
-
33
- private
34
-
35
- def rspec?
36
- options[:test_framework].to_sym == :rspec
37
- end
38
-
39
- end
40
- end
41
- end
@@ -1,9 +0,0 @@
1
- test:
2
- href: http://test.medivo.com
3
- user: test
4
- password: test
5
-
6
- development:
7
- href: https://api16-staging.medivo.com
8
- user: vertex
9
- password: orderdude1