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 +4 -4
- data/Gemfile.lock +1 -1
- data/History.txt +5 -1
- data/README.md +37 -0
- data/lib/oddb2xml/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f79776b0dd647caf554bfa769ac79eae8e4bc2a
|
4
|
+
data.tar.gz: 99e9276e5bfc5bedeab45ea9a34275a522ed70d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb3e9406eb70f52357c4c16552aea8b298dce0999f6bc727473a4e6ef24ba386f1f1c8ce3bca55bdbd55ebab797c1ef82f27bc9d25455959a03ee718905bdf41
|
7
|
+
data.tar.gz: a357cb531b34e3f574ae2737c3804e5660e7fa442b7341fdbe34329426fa76a5b65ba33aaac2cdb6687d0a7de0f31d6f2fde5767720c056c18bbd1858bab1ca4
|
data/Gemfile.lock
CHANGED
data/History.txt
CHANGED
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.
|
data/lib/oddb2xml/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|