oddb2xml 2.5.0 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -1
  3. data/Elexis_Artikelstamm_v003.xsd +387 -0
  4. data/Elexis_Artikelstamm_v5.xsd +513 -0
  5. data/Gemfile +2 -6
  6. data/History.txt +11 -0
  7. data/README.md +35 -27
  8. data/artikelstamm.md +68 -0
  9. data/bin/compare_v5 +41 -0
  10. data/bin/oddb2xml +3 -15
  11. data/data/article_overrides.yaml +51859 -0
  12. data/data/gtin2ignore.yaml +30510 -0
  13. data/data/product_overrides.yaml +4 -0
  14. data/lib/oddb2xml/builder.rb +543 -192
  15. data/lib/oddb2xml/cli.rb +82 -62
  16. data/lib/oddb2xml/compare.rb +189 -0
  17. data/lib/oddb2xml/compressor.rb +6 -3
  18. data/lib/oddb2xml/downloader.rb +79 -64
  19. data/lib/oddb2xml/extractor.rb +67 -40
  20. data/lib/oddb2xml/options.rb +76 -77
  21. data/lib/oddb2xml/parslet_compositions.rb +18 -1
  22. data/lib/oddb2xml/util.rb +25 -3
  23. data/lib/oddb2xml/version.rb +1 -1
  24. data/oddb2xml.gemspec +8 -5
  25. data/oddb2xml.xsd +1 -0
  26. data/spec/artikelstamm_spec.rb +383 -0
  27. data/spec/builder_spec.rb +147 -118
  28. data/spec/calc_spec.rb +3 -15
  29. data/spec/cli_spec.rb +24 -35
  30. data/spec/compare_spec.rb +24 -0
  31. data/spec/compressor_spec.rb +1 -3
  32. data/spec/data/Elexis_Artikelstamm_v5.xsd +513 -0
  33. data/spec/data/Preparations.xml +2200 -0
  34. data/spec/data/Publications.xls +0 -0
  35. data/spec/data/artikelstamm_N_010917.xml +39 -0
  36. data/spec/data/artikelstamm_N_011217.xml +17 -0
  37. data/spec/data/artikelstamm_P_010917.xml +86 -0
  38. data/spec/data/artikelstamm_P_011217.xml +63 -0
  39. data/spec/data/oddb2xml_files_lppv.txt +2 -0
  40. data/spec/data/refdata_NonPharma.xml +38 -0
  41. data/spec/data/refdata_Pharma.xml +220 -0
  42. data/spec/data/swissmedic_orphan.xlsx +0 -0
  43. data/spec/data/swissmedic_package.xlsx +0 -0
  44. data/spec/data/transfer.dat +59 -19
  45. data/spec/data/v5_first.xml +102 -0
  46. data/spec/data/v5_second.xml +184 -0
  47. data/spec/data_helper.rb +72 -0
  48. data/spec/downloader_spec.rb +19 -27
  49. data/spec/extractor_spec.rb +27 -33
  50. data/spec/fixtures/vcr_cassettes/artikelstamm.json +1 -0
  51. data/spec/options_spec.rb +73 -66
  52. data/spec/spec_helper.rb +73 -24
  53. data/test_options.rb +4 -2
  54. metadata +100 -21
  55. data/spec/data/XMLPublications.zip +0 -0
  56. data/spec/data/compressor/oddb_article.xml +0 -0
  57. data/spec/data/compressor/oddb_fi.xml +0 -0
  58. data/spec/data/compressor/oddb_fi_product.xml +0 -0
  59. data/spec/data/compressor/oddb_limitation.xml +0 -0
  60. data/spec/data/compressor/oddb_product.xml +0 -0
  61. data/spec/data/compressor/oddb_substance.xml +0 -0
@@ -8,11 +8,9 @@
8
8
  $:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
9
9
  $:.unshift File.dirname(__FILE__)
10
10
 
11
- require 'bundler/setup'
12
- Bundler.require
13
-
14
11
  require 'rspec'
15
12
  require 'webmock/rspec'
13
+ require 'flexmock/rspec'
16
14
  require 'pp'
17
15
 
18
16
  begin # load pry if is available
@@ -47,8 +45,8 @@ module Oddb2xml
47
45
  '7680532900196', # Insulin, gentechnik
48
46
  '7680555610041', # Diaphin 10 g i.v. drug
49
47
  ]
50
- FRIDGE_GTIN = '7680586180018' # fridge drug IKSNR 58618: ARTISS 2 ml, tiefgefrorene Lösung
51
- ORPHAN_GTIN = '7680621320010' # orphan drug IKSNR 62132: Adcetris, Pulver zur Herstellung einer Infusionslösung
48
+ FRIDGE_GTIN = '7680002770014' # fridge drug 7680002770014 Coeur-Vaisseaux Sérocytol, suppositoire
49
+ ORPHAN_GTIN = '7680587340015' # orphan drug IKSNR 62132: Adcetris, Pulver zur Herstellung einer Infusionslösung
52
50
  GTINS_DRUGS = [ '733905577161', # 1-DAY ACUVUE Moist Tag -2.00dpt BC 8.5
53
51
  FRIDGE_GTIN,
54
52
  ORPHAN_GTIN,
@@ -72,44 +70,47 @@ module Oddb2xml
72
70
  '7680555580054', # ZYVOXID
73
71
  '7680620690084', # LEVETIRACETAM DESITIN Mini Filmtab 250 mg needed for extractor_spec.rb
74
72
  ] + GTINS_CALC
75
- FERRO_GRADUMET_GTIN = 7680316440115
76
- FIRST_DAY_ACUVUE_GTIN = 733905577161
77
- HIRUDOID_GTIN = 7680161050583
78
- LANSOYL_GTIN = 7680324750190
73
+ FERRO_GRADUMET_GTIN = '7680316440115'
74
+ HIRUDOID_GTIN = '7680161050583'
75
+ LANSOYL_GTIN = '7680324750190'
79
76
  LANSOYL_PRICE_RESELLER_PUB = 18.95
80
77
  LANSOYL_PRICE_ZURROSE = 10.54
81
78
  LANSOYL_PRICE_ZURROSEPUB = 16.25
82
- LEVETIRACETAM_GTIN = 7680620690084
79
+ LEVETIRACETAM_GTIN = '7680620690084'
83
80
  LEVETIRACETAM_PRICE_PPUB = 27.8
84
81
  LEVETIRACETAM_PRICE_ZURROSE = 13.49
85
82
  LEVETIRACETAM_PRICE_RESELLER_PUB = 24.3
86
- SOFRADEX_GTIN = 7680316950157
83
+ SOFRADEX_GTIN = '7680316950157'
87
84
  SOFRADEX_PRICE_RESELLER_PUB = 12.9
88
85
  SOFRADEX_PRICE_ZURROSE = 7.18
89
86
  SOFRADEX_PRICE_ZURROSEPUB = 15.45
90
- THREE_TC_GTIN = 7680536620137
91
- ZYVOXID_GTIN = 7680555580054
87
+ THREE_TC_GTIN = '7680536620137'
88
+ ZYVOXID_GTIN = '7680555580054'
92
89
 
93
90
  GTINS_MEDREG = [
94
- 7601001380028, # Glarus
95
- 7601002017145, # Kantonsspital Glarus AG
96
- 7601001395145, # Kantonstierärztlicher Dienst
97
- 7601001396043, # St. Fridolin Pharma AG
98
- 7601000159199, # Davatz Ursula
99
- 7601000159199, # Davatz Ursula
100
- 7601000254344, # Pfister Daniel 8753 Mollis
101
- 7601000254207, # Züst Peter 8753 Mollis
102
- 7601000752314, # Züst Yvonne 8753 Mollis
91
+ '7601001380028', # Glarus
92
+ '7601002017145', # Kantonsspital Glarus AG
93
+ '7601001395145', # Kantonstierärztlicher Dienst
94
+ '7601001396043', # St. Fridolin Pharma AG
95
+ '7601000159199', # Davatz Ursula
96
+ '7601000159199', # Davatz Ursula
97
+ '7601000254344', # Pfister Daniel 8753 Mollis
98
+ '7601000254207', # Züst Peter 8753 Mollis
99
+ '7601000752314', # Züst Yvonne 8753 Mollis
103
100
  ]
104
101
 
105
102
  end
106
103
 
104
+ RSpec.configure do |config|
105
+ config.mock_with :flexmock
106
+ end
107
+
107
108
  VCR.configure do |config|
108
109
  config.cassette_library_dir = "spec/fixtures/vcr_cassettes"
109
110
  config.hook_into :webmock
110
111
  config.debug_logger = File.open(File.join(File.dirname(File.dirname(__FILE__)), 'vcr.log'), 'w+')
111
112
  config.debug_logger.sync = true
112
- config.default_cassette_options = { :record => ARGV.join(' ').index('downloader_spec') ? :new_episodes : :once ,
113
+ config.default_cassette_options = { :record =>:once, # ARGV.join(' ').index('downloader_spec') ? :new_episodes : :once ,
113
114
  :preserve_exact_body_bytes => true,
114
115
  :allow_playback_repeats => true,
115
116
  :serialize_with => :json,
@@ -133,6 +134,7 @@ require 'oddb2xml'
133
134
 
134
135
  module Kernel
135
136
  def buildr_capture(stream)
137
+ Pry.config.output = STDOUT
136
138
  begin
137
139
  stream = stream.to_s
138
140
  eval "$#{stream} = StringIO.new"
@@ -161,8 +163,9 @@ module ServerMockHelper
161
163
  dirs.each{ |dir| FileUtils.rm_rf(Dir.glob(File.join(dir, '*')), :verbose => false) }
162
164
  dirs.each{ |dir| FileUtils.makedirs(dir, :verbose => false) }
163
165
  cleanup_compressor
166
+ mock_downloads
164
167
  end
165
-
168
+
166
169
  def setup_server_mocks
167
170
  puts "Skip setup_server_mocks as we want to use vcr"
168
171
  end
@@ -218,3 +221,49 @@ RSpec.configure do |config|
218
221
  # Helper
219
222
  config.include(ServerMockHelper)
220
223
  end
224
+
225
+ def validate_via_xsd(xsd_file, xml_file)
226
+ xsd =open(xsd_file).read
227
+ xsd_rtikelstamm_xml = Nokogiri::XML::Schema(xsd)
228
+ doc = Nokogiri::XML(File.read(xml_file))
229
+ xsd_rtikelstamm_xml.validate(doc).each do
230
+ |error|
231
+ if error.message
232
+ puts "Failed validating #{xml_file} with #{File.size(xml_file)} bytes using XSD from #{xsd_file}"
233
+ puts "CMD: xmllint --noout --schema #{xsd_file} #{xml_file}"
234
+ end
235
+ msg = "expected #{error.message} to be nil\nfor #{xml_file}"
236
+ puts msg
237
+ expect(error.message).to be_nil, msg
238
+ end
239
+ end
240
+
241
+ def mock_downloads
242
+ WebMock.enable!
243
+ { 'transfer.zip' => ['transfer.dat'],
244
+ 'XMLPublications.zip' => ['Preparations.xml', 'ItCodes.xml', 'GL_Diff_SB.xml']
245
+ }.each do |zip, entries|
246
+ zip_file = File.join(Oddb2xml::SpecData,zip)
247
+ files = entries.collect{|entry| File.join(Oddb2xml::SpecData, entry)}
248
+ FileUtils.rm(zip_file, :verbose => false) if File.exist?(zip_file)
249
+ cmd = "zip --quiet --junk-paths #{zip_file} #{files.join(' ')}"
250
+ system(cmd)
251
+ end
252
+ { 'https://download.epha.ch/cleaned/matrix.csv' => 'epha_interactions.csv',
253
+ 'https://www.swissmedic.ch/dam/swissmedic/de/dokumente/listen/humanarzneimittel.orphan.xlsx.download.xlsx/humanarzneimittel.xlsx' => 'swissmedic_orphan.xlsx',
254
+ 'https://www.swissmedic.ch/dam/swissmedic/de/dokumente/listen/excel-version_zugelasseneverpackungen.xlsx.download.xlsx/excel-version_zugelasseneverpackungen.xlsx' => 'swissmedic_package.xlsx',
255
+ 'http://pillbox.oddb.org/TRANSFER.ZIP' => 'transfer.zip',
256
+ 'https://raw.githubusercontent.com/epha/robot/master/data/manual/swissmedic/atc.csv' => 'atc.csv',
257
+ 'https://raw.githubusercontent.com/zdavatz/oddb2xml_files/master/LPPV.txt' => 'oddb2xml_files_lppv.txt',
258
+ 'http://bag.e-mediat.net/SL2007.Web.External/File.axd?file=XMLPublications.zip' => 'XMLPublications.zip',
259
+ # 'http://refdatabase.refdata.ch/Service/Article.asmx?WSDL' => 'refdata_Pharma.xml',
260
+ }.each do |url, file|
261
+ inhalt = File.read(File.join(Oddb2xml::SpecData, file))
262
+ m = flexmock('open-uri')
263
+ m.should_receive(:open).with(url).and_return(inhalt)
264
+ stub_request(:any,url).to_return(body: inhalt)
265
+ stub_request(:get,url).to_return(body: inhalt)
266
+ stub_request(:open,url).to_return(body: inhalt)
267
+ end
268
+ VCR.eject_cassette; VCR.insert_cassette('oddb2xml')
269
+ end
@@ -8,6 +8,7 @@
8
8
 
9
9
  require 'fileutils'
10
10
  require 'socket'
11
+ require 'oddb2xml/version'
11
12
 
12
13
  def test_one_call(cmd)
13
14
  dest = File.join(Ausgabe, cmd.gsub(/[ -]/, '_'))
@@ -46,7 +47,7 @@ def prepare_for_gem_test
46
47
  }
47
48
  end
48
49
 
49
- Ausgabe = File.join(Dir.pwd, 'ausgabe', Time.now.strftime('%Y.%m.%d-%H:%M'))
50
+ Ausgabe = File.join(Dir.pwd, 'ausgabe', "#{Oddb2xml::VERSION}-#{Time.now.strftime('%Y.%m.%d')}")
50
51
  puts "FQDN hostname #{Socket.gethostbyname(Socket.gethostname).inspect}"
51
52
  FileUtils.makedirs(Ausgabe)
52
53
  prepare_for_gem_test
@@ -54,6 +55,7 @@ prepare_for_gem_test
54
55
  # unfortunately it returns a very common name
55
56
  unless 'localhost.localdomain'.eql?(Socket.gethostbyname(Socket.gethostname).first)
56
57
  test_one_call('oddb2xml -e')
58
+ test_one_call('oddb2xml --artikelstamm')
57
59
  test_one_call('oddb2xml -e -I80')
58
60
  test_one_call('oddb2xml -f dat --append -I 80')
59
61
  test_one_call('oddb2xml -f dat --append')
@@ -65,4 +67,4 @@ test_one_call('oddb2xml -o')
65
67
  test_one_call('oddb2xml -f xml')
66
68
  test_one_call('oddb2xml -f dat')
67
69
  test_one_call('oddb2xml -t md')
68
- test_one_call('oddb2xml -x address')
70
+ # test_one_call('oddb2xml -x address')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oddb2xml
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yasuhiro Asaka, Zeno R.R. Davatz, Niklaus Giger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-06 00:00:00.000000000 Z
11
+ date: 2018-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: archive-tar-minitar
28
+ name: minitar
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 1.8.2
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 1.8.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: savon
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -164,20 +164,62 @@ dependencies:
164
164
  - - ">="
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: rack
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "<"
172
+ - !ruby/object:Gem::Version
173
+ version: '2.0'
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "<"
179
+ - !ruby/object:Gem::Version
180
+ version: '2.0'
167
181
  - !ruby/object:Gem::Dependency
168
182
  name: httpi
169
183
  requirement: !ruby/object:Gem::Requirement
170
184
  requirements:
171
185
  - - ">="
172
186
  - !ruby/object:Gem::Version
173
- version: 2.4.1
187
+ version: '0'
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: trollop
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :runtime
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: xml-simple
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
174
216
  type: :runtime
175
217
  prerelease: false
176
218
  version_requirements: !ruby/object:Gem::Requirement
177
219
  requirements:
178
220
  - - ">="
179
221
  - !ruby/object:Gem::Version
180
- version: 2.4.1
222
+ version: '0'
181
223
  - !ruby/object:Gem::Dependency
182
224
  name: bundler
183
225
  requirement: !ruby/object:Gem::Requirement
@@ -276,9 +318,24 @@ dependencies:
276
318
  - - ">="
277
319
  - !ruby/object:Gem::Version
278
320
  version: '0'
321
+ - !ruby/object:Gem::Dependency
322
+ name: flexmock
323
+ requirement: !ruby/object:Gem::Requirement
324
+ requirements:
325
+ - - ">="
326
+ - !ruby/object:Gem::Version
327
+ version: '0'
328
+ type: :development
329
+ prerelease: false
330
+ version_requirements: !ruby/object:Gem::Requirement
331
+ requirements:
332
+ - - ">="
333
+ - !ruby/object:Gem::Version
334
+ version: '0'
279
335
  description: oddb2xml creates xml files using swissINDEX, BAG-XML and Swissmedic.
280
336
  email: yasaka@ywesee.com, zdavatz@ywesee.com, ngiger@ywesee.com
281
337
  executables:
338
+ - compare_v5
282
339
  - oddb2xml
283
340
  extensions: []
284
341
  extra_rdoc_files: []
@@ -286,6 +343,8 @@ files:
286
343
  - ".gitignore"
287
344
  - ".rspec"
288
345
  - ".travis.yml"
346
+ - Elexis_Artikelstamm_v003.xsd
347
+ - Elexis_Artikelstamm_v5.xsd
289
348
  - Gemfile
290
349
  - History.txt
291
350
  - LICENSE
@@ -293,14 +352,20 @@ files:
293
352
  - QA.md
294
353
  - README.md
295
354
  - Rakefile
355
+ - artikelstamm.md
356
+ - bin/compare_v5
296
357
  - bin/oddb2xml
358
+ - data/article_overrides.yaml
297
359
  - data/gal_forms.yaml
298
360
  - data/gal_groups.yaml
361
+ - data/gtin2ignore.yaml
362
+ - data/product_overrides.yaml
299
363
  - dokumentation_calc.textile
300
364
  - lib/oddb2xml.rb
301
365
  - lib/oddb2xml/builder.rb
302
366
  - lib/oddb2xml/calc.rb
303
367
  - lib/oddb2xml/cli.rb
368
+ - lib/oddb2xml/compare.rb
304
369
  - lib/oddb2xml/compositions_syntax.rb
305
370
  - lib/oddb2xml/compressor.rb
306
371
  - lib/oddb2xml/downloader.rb
@@ -313,30 +378,31 @@ files:
313
378
  - oddb2xml.gemspec
314
379
  - oddb2xml.xsd
315
380
  - oddb_calc.xsd
381
+ - spec/artikelstamm_spec.rb
316
382
  - spec/builder_spec.rb
317
383
  - spec/calc_spec.rb
318
384
  - spec/cli_spec.rb
385
+ - spec/compare_spec.rb
319
386
  - spec/composition_syntax_spec.rb
320
387
  - spec/compressor_spec.rb
321
388
  - spec/data/AipsDownload.zip
389
+ - spec/data/Elexis_Artikelstamm_v5.xsd
322
390
  - spec/data/GL_Diff_SB.xml
323
391
  - spec/data/ItCodes.xml
324
392
  - spec/data/PR121001.txt
325
393
  - spec/data/PR121002.txt
326
394
  - spec/data/Preparations.xml
327
- - spec/data/XMLPublications.zip
395
+ - spec/data/Publications.xls
396
+ - spec/data/artikelstamm_N_010917.xml
397
+ - spec/data/artikelstamm_N_011217.xml
398
+ - spec/data/artikelstamm_P_010917.xml
399
+ - spec/data/artikelstamm_P_011217.xml
328
400
  - spec/data/atc.csv
329
401
  - spec/data/column_c.txt
330
402
  - spec/data/compositions.txt
331
403
  - spec/data/compressor/oddb2xml_files_bm_update.txt
332
404
  - spec/data/compressor/oddb2xml_files_lppv.txt
333
405
  - spec/data/compressor/oddb2xml_files_nonpharma.xls
334
- - spec/data/compressor/oddb_article.xml
335
- - spec/data/compressor/oddb_fi.xml
336
- - spec/data/compressor/oddb_fi_product.xml
337
- - spec/data/compressor/oddb_limitation.xml
338
- - spec/data/compressor/oddb_product.xml
339
- - spec/data/compressor/oddb_substance.xml
340
406
  - spec/data/epha_interactions.csv
341
407
  - spec/data/medregbm_betrieb.txt
342
408
  - spec/data/medregbm_person.txt
@@ -344,6 +410,8 @@ files:
344
410
  - spec/data/oddb2xml_files_lppv.txt
345
411
  - spec/data/oddb2xml_files_nonpharma.xls
346
412
  - spec/data/problems.txt
413
+ - spec/data/refdata_NonPharma.xml
414
+ - spec/data/refdata_Pharma.xml
347
415
  - spec/data/swissmedic_fridges.html
348
416
  - spec/data/swissmedic_info.html
349
417
  - spec/data/swissmedic_info_2.html
@@ -352,12 +420,16 @@ files:
352
420
  - spec/data/swissmedic_package.xlsx
353
421
  - spec/data/swissmedic_packages.html
354
422
  - spec/data/transfer.dat
423
+ - spec/data/v5_first.xml
424
+ - spec/data/v5_second.xml
355
425
  - spec/data/vcr/transfer.dat
356
426
  - spec/data/vcr/transfer.zip
357
427
  - spec/data/wsdl_nonpharma.xml
358
428
  - spec/data/wsdl_pharma.xml
429
+ - spec/data_helper.rb
359
430
  - spec/downloader_spec.rb
360
431
  - spec/extractor_spec.rb
432
+ - spec/fixtures/vcr_cassettes/artikelstamm.json
361
433
  - spec/fixtures/vcr_cassettes/oddb2xml.json
362
434
  - spec/galenic_spec.rb
363
435
  - spec/options_spec.rb
@@ -392,30 +464,31 @@ signing_key:
392
464
  specification_version: 4
393
465
  summary: oddb2xml creates xml files.
394
466
  test_files:
467
+ - spec/artikelstamm_spec.rb
395
468
  - spec/builder_spec.rb
396
469
  - spec/calc_spec.rb
397
470
  - spec/cli_spec.rb
471
+ - spec/compare_spec.rb
398
472
  - spec/composition_syntax_spec.rb
399
473
  - spec/compressor_spec.rb
400
474
  - spec/data/AipsDownload.zip
475
+ - spec/data/Elexis_Artikelstamm_v5.xsd
401
476
  - spec/data/GL_Diff_SB.xml
402
477
  - spec/data/ItCodes.xml
403
478
  - spec/data/PR121001.txt
404
479
  - spec/data/PR121002.txt
405
480
  - spec/data/Preparations.xml
406
- - spec/data/XMLPublications.zip
481
+ - spec/data/Publications.xls
482
+ - spec/data/artikelstamm_N_010917.xml
483
+ - spec/data/artikelstamm_N_011217.xml
484
+ - spec/data/artikelstamm_P_010917.xml
485
+ - spec/data/artikelstamm_P_011217.xml
407
486
  - spec/data/atc.csv
408
487
  - spec/data/column_c.txt
409
488
  - spec/data/compositions.txt
410
489
  - spec/data/compressor/oddb2xml_files_bm_update.txt
411
490
  - spec/data/compressor/oddb2xml_files_lppv.txt
412
491
  - spec/data/compressor/oddb2xml_files_nonpharma.xls
413
- - spec/data/compressor/oddb_article.xml
414
- - spec/data/compressor/oddb_fi.xml
415
- - spec/data/compressor/oddb_fi_product.xml
416
- - spec/data/compressor/oddb_limitation.xml
417
- - spec/data/compressor/oddb_product.xml
418
- - spec/data/compressor/oddb_substance.xml
419
492
  - spec/data/epha_interactions.csv
420
493
  - spec/data/medregbm_betrieb.txt
421
494
  - spec/data/medregbm_person.txt
@@ -423,6 +496,8 @@ test_files:
423
496
  - spec/data/oddb2xml_files_lppv.txt
424
497
  - spec/data/oddb2xml_files_nonpharma.xls
425
498
  - spec/data/problems.txt
499
+ - spec/data/refdata_NonPharma.xml
500
+ - spec/data/refdata_Pharma.xml
426
501
  - spec/data/swissmedic_fridges.html
427
502
  - spec/data/swissmedic_info.html
428
503
  - spec/data/swissmedic_info_2.html
@@ -431,12 +506,16 @@ test_files:
431
506
  - spec/data/swissmedic_package.xlsx
432
507
  - spec/data/swissmedic_packages.html
433
508
  - spec/data/transfer.dat
509
+ - spec/data/v5_first.xml
510
+ - spec/data/v5_second.xml
434
511
  - spec/data/vcr/transfer.dat
435
512
  - spec/data/vcr/transfer.zip
436
513
  - spec/data/wsdl_nonpharma.xml
437
514
  - spec/data/wsdl_pharma.xml
515
+ - spec/data_helper.rb
438
516
  - spec/downloader_spec.rb
439
517
  - spec/extractor_spec.rb
518
+ - spec/fixtures/vcr_cassettes/artikelstamm.json
440
519
  - spec/fixtures/vcr_cassettes/oddb2xml.json
441
520
  - spec/galenic_spec.rb
442
521
  - spec/options_spec.rb