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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be613b5666463eb06459f7f21d24a4c0942178ebd96610d134e890d138a3d582
4
- data.tar.gz: ca8cb89b1de25a375aaffe013f7e46c4fafe0a9b87beefa9eca6e6575b2a0bb9
3
+ metadata.gz: d4c257aeee3a421a5f662e3064d28518b0ae1dbbb464391d0e477f8d179fa144
4
+ data.tar.gz: 0f631f5711fb6474760daeff757c3653d0f7b11ed305755a66315f3cb17c727f
5
5
  SHA512:
6
- metadata.gz: d3b03befd32d4c382b6135a6ab61a5f69e87a0840b4836bcb664e71fcc9e892276db9fc6fd5fff27377076a792ee5c72692ab83c1d61e7aa0b5796c26fbc7c15
7
- data.tar.gz: 60acf84e26c7251dc7d3d1b822d41d06933672cdf4292f66ff3e183365f369a6a5cb81d8d14a95636aaf3234224b12b2a2e1133f5c68b7d399a0d8384cd2a03e
6
+ metadata.gz: 492c7d4fcec6f18a0405d480082c909e2f8015eb8d7b1eff1f3a3ba6b5effa9e266ecf3cabdb001c62552179e70a728981d89a336a281b64dbae80ea9788b7c2
7
+ data.tar.gz: 8048d375b00a130b45eb0d453df4d54062eeeb17e371d99ebb3b22d6f2d927766db767540b5371297bb27f5e8d55dae1e072998f78449d69f52e3c1f54af882a
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.2)
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
@@ -216,7 +216,7 @@ module Oddb2xml
216
216
  include DownloadMethod
217
217
  def init
218
218
  super
219
- @url ||= "http://www.xn--spezialittenliste-yqb.ch/File.axd?file=XMLPublications.zip"
219
+ @url ||= "http://www.spezialitaetenliste.ch/File.axd?file=XMLPublications.zip"
220
220
  end
221
221
 
222
222
  def download
@@ -1,3 +1,3 @@
1
1
  module Oddb2xml
2
- VERSION = "2.9.0"
2
+ VERSION = "2.9.2"
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.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-02-15 00:00:00.000000000 Z
11
+ date: 2024-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip