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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 06c2d44fbe8f0bf48806bf8d38b6a7d15c84b948
4
- data.tar.gz: f10d3c2ffc00d2c005756851e24c64b3bd61aeac
3
+ metadata.gz: 8de23f42038eb80cc0f1b7468b9e5fa6e40274a1
4
+ data.tar.gz: '0383eb0e96e8fa789dbf89e3f74129ce9fa95624'
5
5
  SHA512:
6
- metadata.gz: 9c38d2c021f76e7e159395f81aa31d8ea33d50df2b157edee9eed96d8e66f2e13c887cf17b7707a7c899bffee5c8ec090993786acbbeedf4893cc65ee19ef42a
7
- data.tar.gz: 0dfd82ddc901609d2531bc61e1641d7ac600f3fe5699e22af97be8a924bb4cdae8d9bfe9cb1ba5813ee3e528569e5176f2531b40c0b8dd21d84ceb9c7dc86e8d
6
+ metadata.gz: 97430a7ecb08aaa1095277cc59c5372fa55be940f73f6aa82eee0346a0a06067090ff067d03d4b4d3c1eb006f708d1efcb7dc9808af0ee84e32c2011b1b273c0
7
+ data.tar.gz: 3aa0b0ab8425522ee4f0f712895b18fc9c72ac3a859ee4a771cec5d268c49bb2fbf9455dbd3c1879d470c9eca03c28cba24e3a5f5f8dd2cbf460ae31c19bcf37
@@ -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://download.epha.ch/cleaned/matrix.csv (Interactions from epha)
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
@@ -23,7 +23,7 @@ module Oddb2xml
23
23
  Downloads = "#{Dir.pwd}/downloads"
24
24
  end
25
25
  @options = {}
26
- @atc_csv_origin = 'http://download.epha.ch/data/atc/atc.csv'
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)
@@ -1,3 +1,3 @@
1
1
  module Oddb2xml
2
- VERSION = "2.6.2"
2
+ VERSION = "2.6.3"
3
3
  end
@@ -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://download.epha.ch/cleaned/matrix.csv' => 'epha_interactions.csv',
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": "http://download.epha.ch/data/atc/atc.csv"
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://download.epha.ch/cleaned/matrix.csv"
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://download.epha.ch/cleaned/matrix.csv"
1233
+ "uri": "https://raw.githubusercontent.com/zdavatz/oddb2xml_files/master/interactions_de_utf8.csv"
1234
1234
  },
1235
1235
  "response": {
1236
1236
  "body": {
@@ -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://download.epha.ch/cleaned/matrix.csv' => 'epha_interactions.csv',
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://raw.githubusercontent.com/epha/robot/master/data/manual/swissmedic/atc.csv' => 'atc.csv',
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',
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oddb2xml
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.2
4
+ version: 2.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yasuhiro Asaka, Zeno R.R. Davatz, Niklaus Giger