roqua-healthy 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +7 -0
  2. data/.document +3 -0
  3. data/.gitignore +8 -0
  4. data/.rspec +1 -0
  5. data/.rubocop.yml +31 -0
  6. data/.yardopts +1 -0
  7. data/ChangeLog.md +10 -0
  8. data/Gemfile +8 -0
  9. data/Guardfile +11 -0
  10. data/LICENSE.txt +20 -0
  11. data/README.md +31 -0
  12. data/Rakefile +33 -0
  13. data/bin/get +8 -0
  14. data/bin/get_old_mirth_processing_result +6 -0
  15. data/bin/get_xml_for_patient +6 -0
  16. data/bin/parse_local_xml +9 -0
  17. data/healthy.gemspec +42 -0
  18. data/lib/roqua/healthy/a19/address_parser.rb +46 -0
  19. data/lib/roqua/healthy/a19/cdis_name_parser.rb +23 -0
  20. data/lib/roqua/healthy/a19/correct_patient_check.rb +18 -0
  21. data/lib/roqua/healthy/a19/fetcher.rb +61 -0
  22. data/lib/roqua/healthy/a19/name_parser.rb +52 -0
  23. data/lib/roqua/healthy/a19/response_parser.rb +27 -0
  24. data/lib/roqua/healthy/a19/response_validator.rb +45 -0
  25. data/lib/roqua/healthy/a19/transformer.rb +102 -0
  26. data/lib/roqua/healthy/a19.rb +25 -0
  27. data/lib/roqua/healthy/errors.rb +16 -0
  28. data/lib/roqua/healthy/message_cleaner.rb +44 -0
  29. data/lib/roqua/healthy/version.rb +6 -0
  30. data/lib/roqua/healthy.rb +14 -0
  31. data/lib/roqua-healthy.rb +1 -0
  32. data/spec/fixtures/cdis_gerda_geit.xml +181 -0
  33. data/spec/fixtures/cdis_jan_fictief.xml +177 -0
  34. data/spec/fixtures/cdis_piet_fictief.xml +177 -0
  35. data/spec/fixtures/comez_patient.xml +259 -0
  36. data/spec/fixtures/medo_patient.xml +101 -0
  37. data/spec/fixtures/oru-requests/spsy1218j.hl7 +82 -0
  38. data/spec/fixtures/oru-requests/spsy1218o.hl7 +76 -0
  39. data/spec/fixtures/oru-requests/spsy1218o2.hl7 +77 -0
  40. data/spec/fixtures/oru-requests/spsy411o.hl7 +73 -0
  41. data/spec/fixtures/oru-requests/spsy411o2.hl7 +71 -0
  42. data/spec/fixtures/oru-requests/spsyl.hl7 +71 -0
  43. data/spec/fixtures/oru-responses/xmcare_nack.hl7 +5 -0
  44. data/spec/fixtures/user_patient.xml +251 -0
  45. data/spec/fixtures/user_patient_with_gsm_and_email.xml +281 -0
  46. data/spec/fixtures/user_patient_with_maiden_name.xml +251 -0
  47. data/spec/fixtures/xmcare_impersonating_cdis.xml +245 -0
  48. data/spec/fixtures/xmcare_patient.xml +252 -0
  49. data/spec/fixtures/xmcare_patient_email_in_field_number_four.xml +245 -0
  50. data/spec/fixtures/xmcare_patient_not_found.xml +93 -0
  51. data/spec/fixtures/xmcare_patient_with_maiden_name.xml +252 -0
  52. data/spec/fixtures/xmcare_patient_without_birthdate.xml +250 -0
  53. data/spec/fixtures/xmcare_timeout_waiting_for_ack.xml +4 -0
  54. data/spec/healthy_spec.rb +7 -0
  55. data/spec/integration/cdis_spec.rb +72 -0
  56. data/spec/integration/comez_spec.rb +26 -0
  57. data/spec/integration/medo_spec.rb +26 -0
  58. data/spec/integration/mirth_spec.rb +17 -0
  59. data/spec/integration/user_spec.rb +72 -0
  60. data/spec/integration/xmcare_spec.rb +127 -0
  61. data/spec/spec_helper.rb +29 -0
  62. data/spec/support/fixtures.rb +14 -0
  63. data/spec/unit/a19/address_parser_spec.rb +132 -0
  64. data/spec/unit/a19/correct_patient_check_spec.rb +22 -0
  65. data/spec/unit/a19/fetcher_spec.rb +54 -0
  66. data/spec/unit/a19_spec.rb +4 -0
  67. data/spec/unit/message_cleaner_spec.rb +47 -0
  68. metadata +361 -0
metadata ADDED
@@ -0,0 +1,361 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: roqua-healthy
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Marten Veldthuis
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-01-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: addressable
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.3'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.3'
41
+ - !ruby/object:Gem::Dependency
42
+ name: roqua-support
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.1.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.1.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '10.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '10.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 3.0.0.beta1
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 3.0.0.beta1
97
+ - !ruby/object:Gem::Dependency
98
+ name: yard
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.8'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.8'
111
+ - !ruby/object:Gem::Dependency
112
+ name: webmock
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '1.13'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '1.13'
125
+ - !ruby/object:Gem::Dependency
126
+ name: guard
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '2.1'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '2.1'
139
+ - !ruby/object:Gem::Dependency
140
+ name: guard-rspec
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 4.2.4
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 4.2.4
153
+ - !ruby/object:Gem::Dependency
154
+ name: listen
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '2.1'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '2.1'
167
+ - !ruby/object:Gem::Dependency
168
+ name: guard-rubocop
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: 1.0.1
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: 1.0.1
181
+ - !ruby/object:Gem::Dependency
182
+ name: rubocop
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '0.15'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '0.15'
195
+ - !ruby/object:Gem::Dependency
196
+ name: fuubar
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: kramdown
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - '='
214
+ - !ruby/object:Gem::Version
215
+ version: '1.2'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - '='
221
+ - !ruby/object:Gem::Version
222
+ version: '1.2'
223
+ description: Receives queries from RoQua, sends them to Mirth, and translates Mirth's
224
+ responses back into Rubyland.
225
+ email: marten@roqua.nl
226
+ executables:
227
+ - get
228
+ - get_old_mirth_processing_result
229
+ - get_xml_for_patient
230
+ - parse_local_xml
231
+ extensions: []
232
+ extra_rdoc_files: []
233
+ files:
234
+ - ".document"
235
+ - ".gitignore"
236
+ - ".rspec"
237
+ - ".rubocop.yml"
238
+ - ".yardopts"
239
+ - ChangeLog.md
240
+ - Gemfile
241
+ - Guardfile
242
+ - LICENSE.txt
243
+ - README.md
244
+ - Rakefile
245
+ - bin/get
246
+ - bin/get_old_mirth_processing_result
247
+ - bin/get_xml_for_patient
248
+ - bin/parse_local_xml
249
+ - healthy.gemspec
250
+ - lib/roqua-healthy.rb
251
+ - lib/roqua/healthy.rb
252
+ - lib/roqua/healthy/a19.rb
253
+ - lib/roqua/healthy/a19/address_parser.rb
254
+ - lib/roqua/healthy/a19/cdis_name_parser.rb
255
+ - lib/roqua/healthy/a19/correct_patient_check.rb
256
+ - lib/roqua/healthy/a19/fetcher.rb
257
+ - lib/roqua/healthy/a19/name_parser.rb
258
+ - lib/roqua/healthy/a19/response_parser.rb
259
+ - lib/roqua/healthy/a19/response_validator.rb
260
+ - lib/roqua/healthy/a19/transformer.rb
261
+ - lib/roqua/healthy/errors.rb
262
+ - lib/roqua/healthy/message_cleaner.rb
263
+ - lib/roqua/healthy/version.rb
264
+ - spec/fixtures/cdis_gerda_geit.xml
265
+ - spec/fixtures/cdis_jan_fictief.xml
266
+ - spec/fixtures/cdis_piet_fictief.xml
267
+ - spec/fixtures/comez_patient.xml
268
+ - spec/fixtures/medo_patient.xml
269
+ - spec/fixtures/oru-requests/spsy1218j.hl7
270
+ - spec/fixtures/oru-requests/spsy1218o.hl7
271
+ - spec/fixtures/oru-requests/spsy1218o2.hl7
272
+ - spec/fixtures/oru-requests/spsy411o.hl7
273
+ - spec/fixtures/oru-requests/spsy411o2.hl7
274
+ - spec/fixtures/oru-requests/spsyl.hl7
275
+ - spec/fixtures/oru-responses/xmcare_nack.hl7
276
+ - spec/fixtures/user_patient.xml
277
+ - spec/fixtures/user_patient_with_gsm_and_email.xml
278
+ - spec/fixtures/user_patient_with_maiden_name.xml
279
+ - spec/fixtures/xmcare_impersonating_cdis.xml
280
+ - spec/fixtures/xmcare_patient.xml
281
+ - spec/fixtures/xmcare_patient_email_in_field_number_four.xml
282
+ - spec/fixtures/xmcare_patient_not_found.xml
283
+ - spec/fixtures/xmcare_patient_with_maiden_name.xml
284
+ - spec/fixtures/xmcare_patient_without_birthdate.xml
285
+ - spec/fixtures/xmcare_timeout_waiting_for_ack.xml
286
+ - spec/healthy_spec.rb
287
+ - spec/integration/cdis_spec.rb
288
+ - spec/integration/comez_spec.rb
289
+ - spec/integration/medo_spec.rb
290
+ - spec/integration/mirth_spec.rb
291
+ - spec/integration/user_spec.rb
292
+ - spec/integration/xmcare_spec.rb
293
+ - spec/spec_helper.rb
294
+ - spec/support/fixtures.rb
295
+ - spec/unit/a19/address_parser_spec.rb
296
+ - spec/unit/a19/correct_patient_check_spec.rb
297
+ - spec/unit/a19/fetcher_spec.rb
298
+ - spec/unit/a19_spec.rb
299
+ - spec/unit/message_cleaner_spec.rb
300
+ homepage: https://github.com/roqua/healthy
301
+ licenses:
302
+ - MIT
303
+ metadata: {}
304
+ post_install_message:
305
+ rdoc_options: []
306
+ require_paths:
307
+ - lib
308
+ required_ruby_version: !ruby/object:Gem::Requirement
309
+ requirements:
310
+ - - ">="
311
+ - !ruby/object:Gem::Version
312
+ version: '0'
313
+ required_rubygems_version: !ruby/object:Gem::Requirement
314
+ requirements:
315
+ - - ">="
316
+ - !ruby/object:Gem::Version
317
+ version: '0'
318
+ requirements: []
319
+ rubyforge_project:
320
+ rubygems_version: 2.2.0
321
+ signing_key:
322
+ specification_version: 4
323
+ summary: Arranges communication between Mirth and RoQua
324
+ test_files:
325
+ - spec/fixtures/cdis_gerda_geit.xml
326
+ - spec/fixtures/cdis_jan_fictief.xml
327
+ - spec/fixtures/cdis_piet_fictief.xml
328
+ - spec/fixtures/comez_patient.xml
329
+ - spec/fixtures/medo_patient.xml
330
+ - spec/fixtures/oru-requests/spsy1218j.hl7
331
+ - spec/fixtures/oru-requests/spsy1218o.hl7
332
+ - spec/fixtures/oru-requests/spsy1218o2.hl7
333
+ - spec/fixtures/oru-requests/spsy411o.hl7
334
+ - spec/fixtures/oru-requests/spsy411o2.hl7
335
+ - spec/fixtures/oru-requests/spsyl.hl7
336
+ - spec/fixtures/oru-responses/xmcare_nack.hl7
337
+ - spec/fixtures/user_patient.xml
338
+ - spec/fixtures/user_patient_with_gsm_and_email.xml
339
+ - spec/fixtures/user_patient_with_maiden_name.xml
340
+ - spec/fixtures/xmcare_impersonating_cdis.xml
341
+ - spec/fixtures/xmcare_patient.xml
342
+ - spec/fixtures/xmcare_patient_email_in_field_number_four.xml
343
+ - spec/fixtures/xmcare_patient_not_found.xml
344
+ - spec/fixtures/xmcare_patient_with_maiden_name.xml
345
+ - spec/fixtures/xmcare_patient_without_birthdate.xml
346
+ - spec/fixtures/xmcare_timeout_waiting_for_ack.xml
347
+ - spec/healthy_spec.rb
348
+ - spec/integration/cdis_spec.rb
349
+ - spec/integration/comez_spec.rb
350
+ - spec/integration/medo_spec.rb
351
+ - spec/integration/mirth_spec.rb
352
+ - spec/integration/user_spec.rb
353
+ - spec/integration/xmcare_spec.rb
354
+ - spec/spec_helper.rb
355
+ - spec/support/fixtures.rb
356
+ - spec/unit/a19/address_parser_spec.rb
357
+ - spec/unit/a19/correct_patient_check_spec.rb
358
+ - spec/unit/a19/fetcher_spec.rb
359
+ - spec/unit/a19_spec.rb
360
+ - spec/unit/message_cleaner_spec.rb
361
+ has_rdoc: