oddb2xml 2.9.0 → 2.9.1
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/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: ef2f6995fe6bb0c2a270a41f12322b1796a3d544a579175bb4906072560fcbf6
|
4
|
+
data.tar.gz: '052907769a7933ee5e968f0d023b43f698b218df4e5f9907d56081b04cc8d7cf'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18faa95d729dd10b602a305a56bede4fe0f9b2943c1531f0fb4fdc951a50d712ba45fba69d381bd070f7fda45913fa79befa7f00cd03cb553bf815a8fead7677
|
7
|
+
data.tar.gz: db215dfc9458e45bdb6be130a156b30e12a8f500906014243a01153e5dcbe4b0503102682d4be0164a7b45d68902b8300b33189d9c6776b9dff79673f6621ce4
|
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/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.1
|
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-02-
|
11
|
+
date: 2024-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|