oddb2xml 2.9.0 → 2.9.1

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
  SHA256:
3
- metadata.gz: be613b5666463eb06459f7f21d24a4c0942178ebd96610d134e890d138a3d582
4
- data.tar.gz: ca8cb89b1de25a375aaffe013f7e46c4fafe0a9b87beefa9eca6e6575b2a0bb9
3
+ metadata.gz: ef2f6995fe6bb0c2a270a41f12322b1796a3d544a579175bb4906072560fcbf6
4
+ data.tar.gz: '052907769a7933ee5e968f0d023b43f698b218df4e5f9907d56081b04cc8d7cf'
5
5
  SHA512:
6
- metadata.gz: d3b03befd32d4c382b6135a6ab61a5f69e87a0840b4836bcb664e71fcc9e892276db9fc6fd5fff27377076a792ee5c72692ab83c1d61e7aa0b5796c26fbc7c15
7
- data.tar.gz: 60acf84e26c7251dc7d3d1b822d41d06933672cdf4292f66ff3e183365f369a6a5cb81d8d14a95636aaf3234224b12b2a2e1133f5c68b7d399a0d8384cd2a03e
6
+ metadata.gz: 18faa95d729dd10b602a305a56bede4fe0f9b2943c1531f0fb4fdc951a50d712ba45fba69d381bd070f7fda45913fa79befa7f00cd03cb553bf815a8fead7677
7
+ data.tar.gz: db215dfc9458e45bdb6be130a156b30e12a8f500906014243a01153e5dcbe4b0503102682d4be0164a7b45d68902b8300b33189d9c6776b9dff79673f6621ce4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- oddb2xml (2.9.0)
4
+ oddb2xml (2.9.1)
5
5
  htmlentities
6
6
  httpi
7
7
  mechanize
@@ -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
- case obj[:seq][:deductible]
1035
- when "Y" then xml.SLOPLUS 1; # 20%
1036
- when "N" then xml.SLOPLUS 2; # 10%
1037
- else xml.SLOPLUS "" # k.A.
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; # 20%
1661
+ when "Y" then xml.DEDUCTIBLE 40; # 40%
1660
1662
  when "N" then xml.DEDUCTIBLE 10; # 10%
1661
1663
  end
1662
1664
  end
@@ -1,3 +1,3 @@
1
1
  module Oddb2xml
2
- VERSION = "2.9.0"
2
+ VERSION = "2.9.1"
3
3
  end
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 => 20%, 2 => 10%, '' => not known
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.0
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-15 00:00:00.000000000 Z
11
+ date: 2024-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip