oddb2xml 2.6.2 → 2.6.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/History.txt +6 -0
- data/README.md +1 -1
- data/lib/oddb2xml/util.rb +1 -1
- data/lib/oddb2xml/version.rb +1 -1
- data/spec/downloader_spec.rb +1 -1
- data/spec/fixtures/vcr_cassettes/oddb2xml.json +3 -3
- data/spec/spec_helper.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8de23f42038eb80cc0f1b7468b9e5fa6e40274a1
|
|
4
|
+
data.tar.gz: '0383eb0e96e8fa789dbf89e3f74129ce9fa95624'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 97430a7ecb08aaa1095277cc59c5372fa55be940f73f6aa82eee0346a0a06067090ff067d03d4b4d3c1eb006f708d1efcb7dc9808af0ee84e32c2011b1b273c0
|
|
7
|
+
data.tar.gz: 3aa0b0ab8425522ee4f0f712895b18fc9c72ac3a859ee4a771cec5d268c49bb2fbf9455dbd3c1879d470c9eca03c28cba24e3a5f5f8dd2cbf460ae31c19bcf37
|
data/History.txt
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
=== 2.6.3 / 01.07.2019
|
|
2
|
+
* Use https://github.com/zdavatz/cpp2sqlite/blob/master/input/atc_codes_multi_lingual.txt instead of http://download.epha.ch/data/atc/atc.csv
|
|
3
|
+
|
|
4
|
+
=== 2.6.2 / 01.07.2019
|
|
5
|
+
* Use https://raw.githubusercontent.com/zdavatz/oddb2xml_files/master/interactions_de_utf8.csv instead of https://download.epha.ch/cleaned/matrix.csv
|
|
6
|
+
|
|
1
7
|
=== 2.6.1 / 27.02.2019
|
|
2
8
|
* Update rubyXL to 3.4.0 with fix to avoid problem reported via https://github.com/weshatheleopard/rubyXL/issues/325
|
|
3
9
|
* When generating artikelstamm XML generate products (aka sequences) with name like "3TC Filmtabl 150 mg" instead of only "3TC"
|
data/README.md
CHANGED
|
@@ -273,7 +273,7 @@ product.xml has relation to substance as `<SUBNO>`.
|
|
|
273
273
|
We use the following files:
|
|
274
274
|
|
|
275
275
|
* https://www.swissmedic.ch/arzneimittel/00156/00221/00222/00230/index.html?lang=de (Präparateliste und zugelassene Packungen)
|
|
276
|
-
* https://
|
|
276
|
+
* https://raw.githubusercontent.com/zdavatz/oddb2xml_files/master/interactions_de_utf8.csv
|
|
277
277
|
* http://refdatabase.refdata.ch/Service/Article.asmx
|
|
278
278
|
* http://bag.e-mediat.net/SL2007.Web.External/File.axd?file=XMLPublications.zip
|
|
279
279
|
* https://www.medregbm.admin.ch/Publikation/CreateExcelListBetriebs
|
data/lib/oddb2xml/util.rb
CHANGED
|
@@ -23,7 +23,7 @@ module Oddb2xml
|
|
|
23
23
|
Downloads = "#{Dir.pwd}/downloads"
|
|
24
24
|
end
|
|
25
25
|
@options = {}
|
|
26
|
-
@atc_csv_origin = '
|
|
26
|
+
@atc_csv_origin = 'https://github.com/zdavatz/cpp2sqlite/blob/master/input/atc_codes_multi_lingual.txt'
|
|
27
27
|
@atc_csv_content = {}
|
|
28
28
|
|
|
29
29
|
def Oddb2xml.html_decode(string)
|
data/lib/oddb2xml/version.rb
CHANGED
data/spec/downloader_spec.rb
CHANGED
|
@@ -76,7 +76,7 @@ def common_before
|
|
|
76
76
|
FileUtils.makedirs(Oddb2xml::WorkDir)
|
|
77
77
|
Dir.chdir(Oddb2xml::WorkDir)
|
|
78
78
|
WebMock.enable!
|
|
79
|
-
{ 'https://
|
|
79
|
+
{ 'https://raw.githubusercontent.com/zdavatz/oddb2xml_files/master/interactions_de_utf8.csv' => 'epha_interactions.csv',
|
|
80
80
|
}.each do |url, file|
|
|
81
81
|
inhalt = File.read(File.join(Oddb2xml::SpecData, file))
|
|
82
82
|
stub_request(:get,url).to_return(body: inhalt)
|
|
@@ -1025,7 +1025,7 @@
|
|
|
1025
1025
|
]
|
|
1026
1026
|
},
|
|
1027
1027
|
"method": "get",
|
|
1028
|
-
"uri": "
|
|
1028
|
+
"uri": "https://github.com/zdavatz/cpp2sqlite/blob/master/input/atc_codes_multi_lingual.txt"
|
|
1029
1029
|
},
|
|
1030
1030
|
"response": {
|
|
1031
1031
|
"body": {
|
|
@@ -1141,7 +1141,7 @@
|
|
|
1141
1141
|
]
|
|
1142
1142
|
},
|
|
1143
1143
|
"method": "get",
|
|
1144
|
-
"uri": "https://
|
|
1144
|
+
"uri": "https://raw.githubusercontent.com/zdavatz/oddb2xml_files/master/interactions_de_utf8.csv"
|
|
1145
1145
|
},
|
|
1146
1146
|
"response": {
|
|
1147
1147
|
"body": {
|
|
@@ -1230,7 +1230,7 @@
|
|
|
1230
1230
|
]
|
|
1231
1231
|
},
|
|
1232
1232
|
"method": "get",
|
|
1233
|
-
"uri": "https://
|
|
1233
|
+
"uri": "https://raw.githubusercontent.com/zdavatz/oddb2xml_files/master/interactions_de_utf8.csv"
|
|
1234
1234
|
},
|
|
1235
1235
|
"response": {
|
|
1236
1236
|
"body": {
|
data/spec/spec_helper.rb
CHANGED
|
@@ -249,12 +249,12 @@ def mock_downloads
|
|
|
249
249
|
cmd = "zip --quiet --junk-paths #{zip_file} #{files.join(' ')}"
|
|
250
250
|
system(cmd)
|
|
251
251
|
end
|
|
252
|
-
{ 'https://
|
|
252
|
+
{ 'https://raw.githubusercontent.com/zdavatz/oddb2xml_files/master/interactions_de_utf8.csv' => 'epha_interactions.csv',
|
|
253
253
|
'https://www.swissmedic.ch/swissmedic/de/home/services/listen_neu.html' => 'listen_neu.html',
|
|
254
254
|
'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
255
|
'https://www.swissmedic.ch/dam/swissmedic/de/dokumente/internetlisten/zugelassene_packungen_ham.xlsx.download.xlsx/Zugelassene_Packungen%20HAM_31012019.xlsx' => 'swissmedic_package.xlsx',
|
|
256
256
|
'http://pillbox.oddb.org/TRANSFER.ZIP' => 'transfer.zip',
|
|
257
|
-
'https://
|
|
257
|
+
'https://github.com/zdavatz/cpp2sqlite/blob/master/input/atc_codes_multi_lingual.txt' => 'atc.csv',
|
|
258
258
|
'https://raw.githubusercontent.com/zdavatz/oddb2xml_files/master/LPPV.txt' => 'oddb2xml_files_lppv.txt',
|
|
259
259
|
'http://bag.e-mediat.net/SL2007.Web.External/File.axd?file=XMLPublications.zip' => 'XMLPublications.zip',
|
|
260
260
|
'http://bag.e-mediat.net/Sl2007.web.external/varia_De.htm' => 'varia_De.htm',
|