oddb2xml 3.0.1 → 3.0.3
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.
- checksums.yaml +4 -4
- data/CLAUDE.md +1 -1
- data/Gemfile.lock +1 -1
- data/History.txt +13 -0
- data/README.md +4 -5
- data/lib/oddb2xml/cli.rb +8 -3
- data/lib/oddb2xml/downloader.rb +2 -7
- data/lib/oddb2xml/extractor.rb +3 -1
- data/lib/oddb2xml/fhir_support.rb +86 -26
- data/lib/oddb2xml/options.rb +2 -2
- data/lib/oddb2xml/util.rb +14 -6
- data/lib/oddb2xml/version.rb +1 -1
- data/oddb2xml.gemspec +1 -1
- data/spec/builder_spec.rb +1 -1
- data/spec/data/Refdata.Articles.xml +853 -0
- data/spec/downloader_spec.rb +4 -4
- data/spec/extractor_spec.rb +3 -3
- data/spec/fixtures/vcr_cassettes/oddb2xml.json +2092 -1980
- data/spec/options_spec.rb +2 -0
- data/spec/spec_helper.rb +5 -3
- metadata +5 -3
data/spec/options_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
|
@@ -242,7 +242,8 @@ end
|
|
|
242
242
|
def mock_downloads
|
|
243
243
|
WebMock.enable!
|
|
244
244
|
{"transfer.zip" => ["transfer.dat"],
|
|
245
|
-
"XMLPublications.zip" => ["Preparations.xml", "ItCodes.xml", "GL_Diff_SB.xml"]
|
|
245
|
+
"XMLPublications.zip" => ["Preparations.xml", "ItCodes.xml", "GL_Diff_SB.xml"],
|
|
246
|
+
"Refdata.Articles.zip" => ["Refdata.Articles.xml"]}.each do |zip, entries|
|
|
246
247
|
zip_file = File.join(Oddb2xml::SpecData, zip)
|
|
247
248
|
files = entries.collect { |entry| File.join(Oddb2xml::SpecData, entry) }
|
|
248
249
|
FileUtils.rm(zip_file, verbose: false) if File.exist?(zip_file)
|
|
@@ -254,10 +255,11 @@ def mock_downloads
|
|
|
254
255
|
"https://www.swissmedic.ch/dam/swissmedic/de/dokumente/internetlisten/status_ophan%20Drug.xlsx.download.xlsx/Liste_OrphanDrug_Internet_2019_01_31.xlsx" => "swissmedic_orphan.xlsx",
|
|
255
256
|
"https://www.swissmedic.ch/dam/swissmedic/de/dokumente/internetlisten/zugelassene_packungen_ham.xlsx.download.xlsx/Zugelassene_Packungen%20HAM_31012019.xlsx" => "swissmedic_package.xlsx",
|
|
256
257
|
"http://pillbox.oddb.org/TRANSFER.ZIP" => "transfer.zip",
|
|
257
|
-
"https://
|
|
258
|
+
"https://raw.githubusercontent.com/zdavatz/cpp2sqlite/master/input/atc_codes_multi_lingual.txt" => "atc.csv",
|
|
258
259
|
"https://raw.githubusercontent.com/zdavatz/oddb2xml_files/master/LPPV.txt" => "oddb2xml_files_lppv.txt",
|
|
259
260
|
"http://www.xn--spezialittenliste-yqb.ch/File.axd?file=XMLPublications.zip" => "XMLPublications.zip",
|
|
260
|
-
|
|
261
|
+
"https://www.spezialitaetenliste.ch/File.axd?file=XMLPublications.zip" => "XMLPublications.zip",
|
|
262
|
+
"https://files.refdata.ch/simis-public-prod/Articles/1.0/Refdata.Articles.zip" => "Refdata.Articles.zip",
|
|
261
263
|
"http://www.spezialitaetenliste.ch/varia_De.htm" => "varia_De.htm"}.each do |url, file|
|
|
262
264
|
inhalt = File.read(File.join(Oddb2xml::SpecData, file))
|
|
263
265
|
m = flexmock("open-uri")
|
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: 3.0.
|
|
4
|
+
version: 3.0.3
|
|
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: 2026-
|
|
11
|
+
date: 2026-04-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubyzip
|
|
@@ -493,6 +493,7 @@ files:
|
|
|
493
493
|
- spec/data/PR121002.txt
|
|
494
494
|
- spec/data/Preparations.xml
|
|
495
495
|
- spec/data/Publications.xls
|
|
496
|
+
- spec/data/Refdata.Articles.xml
|
|
496
497
|
- spec/data/artikelstamm_N_010917.xml
|
|
497
498
|
- spec/data/artikelstamm_N_011217.xml
|
|
498
499
|
- spec/data/artikelstamm_P_010917.xml
|
|
@@ -550,7 +551,7 @@ files:
|
|
|
550
551
|
- tools/win_fetch_cacerts.rb
|
|
551
552
|
homepage: https://github.com/zdavatz/oddb2xml
|
|
552
553
|
licenses:
|
|
553
|
-
- GPL-3.0
|
|
554
|
+
- GPL-3.0-only
|
|
554
555
|
metadata: {}
|
|
555
556
|
post_install_message:
|
|
556
557
|
rdoc_options: []
|
|
@@ -588,6 +589,7 @@ test_files:
|
|
|
588
589
|
- spec/data/PR121002.txt
|
|
589
590
|
- spec/data/Preparations.xml
|
|
590
591
|
- spec/data/Publications.xls
|
|
592
|
+
- spec/data/Refdata.Articles.xml
|
|
591
593
|
- spec/data/artikelstamm_N_010917.xml
|
|
592
594
|
- spec/data/artikelstamm_N_011217.xml
|
|
593
595
|
- spec/data/artikelstamm_P_010917.xml
|