oddb2xml 3.0.8 → 3.0.9

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: a5391f07cc4388c80d6347856c433d40002143f8a368af6d45ceb3f0662861bf
4
- data.tar.gz: c02c407165679d39512f8d23de883f870c0a9d89d723c85f1bd3172b73f3bbd4
3
+ metadata.gz: 61b967bac848240cad4212eff14bd39587fc65cd1b7400b21a6a856df07dad99
4
+ data.tar.gz: a9e92c36306228a110b3c3cb28a8e6c66c59e6437273cc73b073a22572428b73
5
5
  SHA512:
6
- metadata.gz: 10f45b9f5aa5095073260bc034be15d643484fbb9e717b847e839ad04a508f121aa6c6ed6ab8efd0e64c7e3eebea7b839182dd5af70cbe9a30b38f7334f2ebd8
7
- data.tar.gz: 69c6642e96ff6abb51ded2519f770e69e09d49a8b8b52c7121f287f47e34fccc4679f8643246d85ce74f32702cb0d26e53992140d19d6c0c4fcaab272bc459e1
6
+ metadata.gz: a109be8090b25dd4b6e150e50768f520dc38725c6486f126c6b6af2bad1e946c027894f251a2faf8620dc9e4c9e671a5a77b1171d713a16bcd2fefbf06cbb9b0
7
+ data.tar.gz: '006490b389a9f9ddce0e7fa90a8e11840068bfbd7671b685ea3f3d2e1c57f3413eb6e6fe1788c50cf8fbc685dcd18842de8470161f523446d9845ae4d273f899'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- oddb2xml (3.0.8)
4
+ oddb2xml (3.0.9)
5
5
  csv
6
6
  htmlentities
7
7
  httpi
data/History.txt CHANGED
@@ -1,3 +1,6 @@
1
+ === 3.0.9 / 01.06.2026
2
+ * FHIR is now the default source for -e/--extended and -b/--firstbase. As of June 2026, running oddb2xml -e or oddb2xml -b downloads the FOPH/BAG FHIR NDJSON feed instead of the BAG-XML Spezialitätenliste. Plain runs are unchanged. Opt out with --no-fhir; explicit --fhir/--fhir-url still work.
3
+
1
4
  === 3.0.8 / 28.05.2026
2
5
  * FHIR: fix empty <DescriptionDe/Fr/It> on every <Limitation>. The live BAG FHIR feed does not carry limitation text inline; it stores a `limitationIndication` reference to a `ClinicalUseDefinition` whose `indication.diseaseSymptomProcedure.concept.text` holds the actual text (one per language). FR/IT come from the per-language NDJSON files and are merged via the CUD id. Result on the live feed: 9'108 / 9'108 limitations (100%) now carry text, up from 0% (issue #116).
3
6
 
data/README.md CHANGED
@@ -51,7 +51,7 @@ HIN (http://hin.ch) creates daily the actual file. They can be downloaded from `
51
51
  see `--help`.
52
52
 
53
53
  ```
54
- /opt/src/oddb2xml/bin/oddb2xml version 3.0.8
54
+ /opt/src/oddb2xml/bin/oddb2xml version 3.0.9
55
55
  Usage:
56
56
  oddb2xml [option]
57
57
  produced files are found under data
@@ -64,6 +64,8 @@ see `--help`.
64
64
  --fhir Use FHIR NDJSON format from FOPH/BAG instead of XML
65
65
  from Spezialitätenliste. Downloads per-language
66
66
  NDJSON files (de, fr, it) from epl.bag.admin.ch.
67
+ Default ON for -e/--extended and -b/--firstbase
68
+ since June 2026; disable with --no-fhir.
67
69
  --fhir-url=<s> Specific FHIR NDJSON URL to download (implies --fhir)
68
70
  -f, --format=<s> File format F, default is xml. {xml|dat}
69
71
  If F is given, -o option is ignored. (Default: xml)
@@ -97,7 +99,8 @@ $ oddb2xml -t md # => md_article.xml, md_product.xml, md_
97
99
  $ oddb2xml -a nonpharma -t md -c tar.gz # => md_xml_dd.mm.yyyy_hh.mm.tar.gz
98
100
  $ oddb2xml -f dat # => oddb.dat
99
101
  $ oddb2xml -f dat -a nonpharma # => oddb_with_migel.dat
100
- $ oddb2xml -e # => oddb_article.xml
102
+ $ oddb2xml -e # => oddb_article.xml (FHIR source by default since June 2026)
103
+ $ oddb2xml -e --no-fhir # => oddb_article.xml using the old BAG-XML Spezialitätenliste
101
104
  ```
102
105
 
103
106
  output.
@@ -22,7 +22,7 @@ module Oddb2xml
22
22
  opt :extended, "pharma, non-pharma plus prices and non-pharma from zurrose.
23
23
  Products without EAN-Code will also be listed.
24
24
  File oddb_calc.xml will also be generated"
25
- opt :fhir, "Use FHIR NDJSON format from FOPH/BAG instead of XML from Spezialitätenliste", default: false, short: :none
25
+ opt :fhir, "Use FHIR NDJSON format from FOPH/BAG instead of XML from Spezialitätenliste. Default ON for -e/--extended and -b/--firstbase since June 2026; disable with --no-fhir", default: false, short: :none
26
26
  opt :fhir_url, "Specific FHIR NDJSON URL to download (implies --fhir)", type: :string, default: nil, short: :none
27
27
  opt :format, "File format F, default is xml. {xml|dat}
28
28
  If F is given, -o option is ignored.", type: :string, default: "xml"
@@ -71,6 +71,11 @@ module Oddb2xml
71
71
  @opts[:extended] = true
72
72
  @opts[:price] = :zurrose
73
73
  end
74
+ # From June 2026, -e/--extended and -b/--firstbase default to the FHIR
75
+ # (FOPH/BAG NDJSON) source. Users can still opt out with --no-fhir.
76
+ if (@opts[:extended] || @opts[:firstbase]) && !@opts[:fhir_given]
77
+ @opts[:fhir] = true
78
+ end
74
79
  # FHIR URL implies FHIR mode
75
80
  if @opts[:fhir_url]
76
81
  @opts[:fhir] = true
@@ -1,3 +1,3 @@
1
1
  module Oddb2xml
2
- VERSION = "3.0.8"
2
+ VERSION = "3.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oddb2xml
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.8
4
+ version: 3.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yasuhiro Asaka, Zeno R.R. Davatz, Niklaus Giger