oddb2xml 2.2.2 → 2.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 19cb17a6ab16e748a03ab65af4bba16aede568fb
4
- data.tar.gz: 2f8b5df5bcd40691b9bd4f7dfe2814fc241e5700
3
+ metadata.gz: 2f79776b0dd647caf554bfa769ac79eae8e4bc2a
4
+ data.tar.gz: 99e9276e5bfc5bedeab45ea9a34275a522ed70d3
5
5
  SHA512:
6
- metadata.gz: aa81cf96680ecc7abf8c5cb6979afb47413d3d47663bbfdf1f629a8624bd990def9dcfec0302c5254c49d959293faca2deb18759fabcb68c592e195e0b54b949
7
- data.tar.gz: 44b68d9f40dffae84a6289f9c40679c6eacde7cdf70a60016c0b18cb5856097ebcddb74eda98d089f052f2f16fd4ee8df760b05caeaec3d0be698dde5b18ee0e
6
+ metadata.gz: bb3e9406eb70f52357c4c16552aea8b298dce0999f6bc727473a4e6ef24ba386f1f1c8ce3bca55bdbd55ebab797c1ef82f27bc9d25455959a03ee718905bdf41
7
+ data.tar.gz: a357cb531b34e3f574ae2737c3804e5660e7fa442b7341fdbe34329426fa76a5b65ba33aaac2cdb6687d0a7de0f31d6f2fde5767720c056c18bbd1858bab1ca4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- oddb2xml (2.2.2)
4
+ oddb2xml (2.2.3)
5
5
  archive-tar-minitar
6
6
  httpi (>= 2.4.1)
7
7
  mechanize
data/History.txt CHANGED
@@ -1,4 +1,8 @@
1
- === 2.2.1 / 04.07.2015
1
+ === 2.2.3 / 16.07.2015
2
+
3
+ * Document data sources and some rule in README.md
4
+
5
+ === 2.2.2 / 04.07.2015
2
6
 
3
7
  * Adapt to new version of swissmedic Packungen.xlsx
4
8
 
data/README.md CHANGED
@@ -247,6 +247,43 @@ product.xml has relation to substance as `<SUBNO>`.
247
247
  </SUBSTANCE>
248
248
  ```
249
249
 
250
+ ## Data sources
251
+
252
+ We use the following files:
253
+
254
+ * https://www.swissmedic.ch/arzneimittel/00156/00221/00222/00230/index.html?lang=de (Präparateliste und zugelassene Packungen)
255
+ * https://download.epha.ch/cleaned/matrix.csv (Interactions from epha)
256
+ * http://refdatabase.refdata.ch/Service/Article.asmx
257
+ * http://bag.e-mediat.net/SL2007.Web.External/File.axd?file=XMLPublications.zip
258
+ * https://www.medregbm.admin.ch/Publikation/CreateExcelListBetriebs
259
+ * https://www.medregbm.admin.ch/Publikation/CreateExcelListMedizinalPersons
260
+ * http://zurrose.com/fileadmin/main/lib/download.php?file=/fileadmin/user_upload/downloads/ProduktUpdate/IGM11_mit_MwSt/Vollstamm/transfer.dat
261
+ * https://index.ws.e-mediat.net/Swissindex/NonPharma/ws_NonPharma_V101.asmx
262
+ * https://index.ws.e-mediat.net/Swissindex/NonPharma/ws_Pharma_V101.asmx
263
+ * http://download.swissmedicinfo.ch/ (AipsDownload)
264
+ * https://raw.githubusercontent.com/zdavatz/oddb2xml_files/master/LPPV.txt
265
+ * https://raw.githubusercontent.com/zdavatz/oddb2xml_files/master/BM_Update.txt
266
+ * https://raw.githubusercontent.com/epha/robot/master/data/manual/swissmedic/atc.csv
267
+
268
+ ## Rules for matching GTIN (aka EAN13), product number and IKSNR
269
+
270
+ For drugs which appear in Packungen.xlsx file published by Swissmedic the following rule is used to create the GTIN
271
+ * First 4 digits identify SwissMedic and are fixed to 7680
272
+ * next 5 digits corresponding to IKSNR (authorization) number
273
+ * next 3 digits corresponding to Packungscode
274
+ * last digit is checksum
275
+
276
+ The product number is calculated as
277
+ * 5 digits corresponding to IKSNR (authorization) number
278
+ * 2 digits corresponding to Dosisstärke (aka sequence number)
279
+
280
+ In oddb_article.xml you find
281
+ * GTIN is found as "BC" inside "ARTBAR"
282
+ * The product number as field PRODNO
283
+
284
+ Example given. For the IKSNR 48305 sequence number 1 named "Felden, Gel" with Packungscode "024" we get GTIN 7680483050247 and a product number 483051.
285
+
286
+
250
287
  ## SSLv3 cert for Windows Users
251
288
 
252
289
  Some websites need SSLv3 connection.
@@ -1,3 +1,3 @@
1
1
  module Oddb2xml
2
- VERSION = "2.2.2"
2
+ VERSION = "2.2.3"
3
3
  end
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.2.2
4
+ version: 2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yasuhiro Asaka, Zeno R.R. Davatz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-04 00:00:00.000000000 Z
11
+ date: 2015-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip