oddb2xml 2.9.0 → 2.9.2
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/lib/oddb2xml/builder.rb +7 -5
- data/lib/oddb2xml/downloader.rb +1 -1
- data/lib/oddb2xml/version.rb +1 -1
- data/oddb2xml.xsd +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4c257aeee3a421a5f662e3064d28518b0ae1dbbb464391d0e477f8d179fa144
|
4
|
+
data.tar.gz: 0f631f5711fb6474760daeff757c3653d0f7b11ed305755a66315f3cb17c727f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 492c7d4fcec6f18a0405d480082c909e2f8015eb8d7b1eff1f3a3ba6b5effa9e266ecf3cabdb001c62552179e70a728981d89a336a281b64dbae80ea9788b7c2
|
7
|
+
data.tar.gz: 8048d375b00a130b45eb0d453df4d54062eeeb17e371d99ebb3b22d6f2d927766db767540b5371297bb27f5e8d55dae1e072998f78449d69f52e3c1f54af882a
|
data/Gemfile.lock
CHANGED
data/lib/oddb2xml/builder.rb
CHANGED
@@ -1031,10 +1031,12 @@ module Oddb2xml
|
|
1031
1031
|
xml.SYN1F obj[:seq][:name_fr] unless obj[:seq][:name_fr].empty?
|
1032
1032
|
end
|
1033
1033
|
if obj[:seq]
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1034
|
+
if obj[:seq][:deductible] == "Y" || obj[:seq][:deductible20] == "Y"
|
1035
|
+
xml.SLOPLUS 1; # 40%
|
1036
|
+
elsif obj[:seq][:deductible] == "N" || obj[:seq][:deductible20] == "N"
|
1037
|
+
xml.SLOPLUS 2; # 10%
|
1038
|
+
else
|
1039
|
+
xml.SLOPLUS "" # k.A.
|
1038
1040
|
end
|
1039
1041
|
end
|
1040
1042
|
# xml.NOPCS
|
@@ -1656,7 +1658,7 @@ module Oddb2xml
|
|
1656
1658
|
# TODO: Delete deductible20 after 2024/03/01
|
1657
1659
|
# https://github.com/zdavatz/oddb2xml/issues/81
|
1658
1660
|
case item[:deductible20]
|
1659
|
-
when "Y" then xml.DEDUCTIBLE 40; #
|
1661
|
+
when "Y" then xml.DEDUCTIBLE 40; # 40%
|
1660
1662
|
when "N" then xml.DEDUCTIBLE 10; # 10%
|
1661
1663
|
end
|
1662
1664
|
end
|
data/lib/oddb2xml/downloader.rb
CHANGED
@@ -216,7 +216,7 @@ module Oddb2xml
|
|
216
216
|
include DownloadMethod
|
217
217
|
def init
|
218
218
|
super
|
219
|
-
@url ||= "http://www.
|
219
|
+
@url ||= "http://www.spezialitaetenliste.ch/File.axd?file=XMLPublications.zip"
|
220
220
|
end
|
221
221
|
|
222
222
|
def download
|
data/lib/oddb2xml/version.rb
CHANGED
data/oddb2xml.xsd
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
Under http://dev.ywesee.com/Main/Oddb2xml you find more information on how the data is generated.
|
12
12
|
|
13
13
|
In this XSD file we refer to the following sources:
|
14
|
-
# swissINDEX
|
14
|
+
# swissINDEX
|
15
15
|
## Pharma: https://index.ws.e-mediat.net/Swissindex/Pharma/ws_Pharma_V101.asmx?WSDL"
|
16
16
|
## NonPharma https://index.ws.e-mediat.net/Swissindex/NonPharma/ws_NonPharma_V101.asmx?WSDL"
|
17
17
|
# Preparations.xml
|
@@ -42,7 +42,7 @@
|
|
42
42
|
PHAR Pharmacode: Taken from swissINDEX or ZurRose characters 3..9
|
43
43
|
PEXF Price Ex-Factory (exkl. VAT): Taken from the ZurRose.dat characters 60..65
|
44
44
|
PPUB Public Price (inkl. VAT): Taken from the ZurRose.dat characters 66..71
|
45
|
-
SLOPLUS Selbsbehalt/deductilbe, where 1 =>
|
45
|
+
SLOPLUS Selbsbehalt/deductilbe, where 1 => 40%, 2 => 10%, '' => not known
|
46
46
|
REF_DATA 1 in oddb_article if coming from a refdata source (migel, bag, swissmedic), else 0
|
47
47
|
|
48
48
|
FIRST import all data from swissINDEX
|
@@ -88,7 +88,7 @@
|
|
88
88
|
* Composition (column 'P') -> Field CompositionSwissmedic in oddb_product.xml
|
89
89
|
* Packungsgrösse (column 'L') -> Field PackGrSwissmedic in oddb_article.xml
|
90
90
|
* Packungseinheit(column 'L') -> Field EinheitSwissmedic in oddb_article.xml
|
91
|
-
|
91
|
+
|
92
92
|
In oddb_product.xml PRODNO must be exactly 7 digits long. For all drugs appearing in the Packungen.xlsx the
|
93
93
|
PRODNO is defined as IKSNR (column A Zulassungsnummer) + SEQ (column b Dosisstärkenummer) and the DSCRD is
|
94
94
|
taken vom refdata.
|
@@ -96,7 +96,7 @@
|
|
96
96
|
|
97
97
|
</xs:documentation>
|
98
98
|
</xs:annotation>
|
99
|
-
|
99
|
+
|
100
100
|
<xs:element name="ARTICLE">
|
101
101
|
<xs:complexType>
|
102
102
|
<xs:sequence>
|
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.9.
|
4
|
+
version: 2.9.2
|
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: 2024-
|
11
|
+
date: 2024-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|