oddb2xml 2.6.9 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Elexis_Artikelstamm_v5.xsd +0 -3
- data/History.txt +4 -0
- data/lib/oddb2xml/builder.rb +3 -4
- data/lib/oddb2xml/cli.rb +1 -0
- data/lib/oddb2xml/version.rb +1 -1
- data/spec/artikelstamm_spec.rb +4 -5
- data/spec/data/varia_De.htm +2 -2
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f09c85343784bea903af64ee40b29749dfdfc2af55000673244129510276c88a
|
4
|
+
data.tar.gz: 7a8cbd05765da37ec1d582c13bb71758c05a0ddd73773aea5084fa211ebf98d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5be02fa2ec4dff0aa6f8c4a4dbfba9cc0f272831fd0b10b6a1af1a18fd3cff3956ad0884de9e81c19c31d60984cc5d234586372aa7a0d34acdab9015cf7252d8
|
7
|
+
data.tar.gz: ea9317a80ad372959d59f0a13614a9a5a8a1f5da3befa9202f5dadbcb23a41523580184c9a769fb512ba7256f5d36b97dffc214424d4d70df499cb35b6c9371e
|
data/Elexis_Artikelstamm_v5.xsd
CHANGED
data/History.txt
CHANGED
data/lib/oddb2xml/builder.rb
CHANGED
@@ -1628,10 +1628,9 @@ module Oddb2xml
|
|
1628
1628
|
end
|
1629
1629
|
@csv_file << [ ean13, description, '', '', pexf, ppub, '', '', '', '', '', '' ]
|
1630
1630
|
if chap70
|
1631
|
-
xml.comment "Chapter70 hack"
|
1631
|
+
xml.comment "Chapter70 hack #{ean13.to_s.rjust(13, '0')} #{description.encode(:xml => :text).gsub('--','-')}"
|
1632
1632
|
xml.SL_ENTRY 'true'
|
1633
1633
|
xml.PRODNO obj[:pharmacode]
|
1634
|
-
xml.Chapter70_HACK 'true'
|
1635
1634
|
end
|
1636
1635
|
end
|
1637
1636
|
end
|
@@ -1733,7 +1732,7 @@ module Oddb2xml
|
|
1733
1732
|
used_limitations << lim_code unless used_limitations.index(lim_code)
|
1734
1733
|
xml.LIMNAMEBAG lim_code
|
1735
1734
|
elsif obj[:chapter70]
|
1736
|
-
xml.comment "Chapter70 hack"
|
1735
|
+
xml.comment "Chapter70 hack prodno #{prodno} #{obj[:description].encode(:xml => :text).gsub('--','-')}"
|
1737
1736
|
xml.SALECD('A') # these products are always active!
|
1738
1737
|
xml.DSCR obj[:description]
|
1739
1738
|
xml.DSCRF ''
|
@@ -1766,7 +1765,7 @@ module Oddb2xml
|
|
1766
1765
|
end
|
1767
1766
|
emitted_lim_code << lim[:code]
|
1768
1767
|
xml.LIMITATION do
|
1769
|
-
xml.comment "Chapter70 hack" if lim[:chap70]
|
1768
|
+
xml.comment "Chapter70 2 hack" if lim[:chap70]
|
1770
1769
|
xml.LIMNAMEBAG lim[:code] # original LIMCD
|
1771
1770
|
xml.DSCR Oddb2xml.html_decode(lim[:desc_de])
|
1772
1771
|
xml.DSCRF Oddb2xml.html_decode(lim[:desc_fr])
|
data/lib/oddb2xml/cli.rb
CHANGED
data/lib/oddb2xml/version.rb
CHANGED
data/spec/artikelstamm_spec.rb
CHANGED
@@ -24,7 +24,7 @@ describe Oddb2xml::Builder do
|
|
24
24
|
unless @inhalt.index(expected_value)
|
25
25
|
puts expected_value
|
26
26
|
end
|
27
|
-
|
27
|
+
binding.pry unless @inhalt.index(expected_value)
|
28
28
|
expect(@inhalt.index(expected_value)).not_to be nil
|
29
29
|
end
|
30
30
|
def common_run_init(options = {})
|
@@ -467,9 +467,9 @@ describe Oddb2xml::Builder do
|
|
467
467
|
</ITEM),
|
468
468
|
'Chapter 70 product' => %(<PRODUCT>
|
469
469
|
<PRODNO>2069639</PRODNO>
|
470
|
-
<!--Chapter70 hack-->
|
470
|
+
<!--Chapter70 hack prodno 2069639 Ceres Urtinkturen gemäss L2 mit - im Kommentar-->
|
471
471
|
<SALECD>A</SALECD>
|
472
|
-
<DSCR>Ceres Urtinkturen gemäss L2</DSCR>
|
472
|
+
<DSCR>Ceres Urtinkturen gemäss L2 mit -- im Kommentar</DSCR>
|
473
473
|
<DSCRF/>
|
474
474
|
</PRODUCT>),
|
475
475
|
'Chapter 70 item' => %(<ITEM PHARMATYPE="P">
|
@@ -480,10 +480,9 @@ describe Oddb2xml::Builder do
|
|
480
480
|
<DSCRF>--missing--</DSCRF>
|
481
481
|
<PEXF>23.44</PEXF>
|
482
482
|
<PPUB>31.30</PPUB>
|
483
|
-
<!--Chapter70 hack-->
|
483
|
+
<!--Chapter70 hack 2500000588532 EINF ARZNEI Ceres Urtinktur spez 20ml-->
|
484
484
|
<SL_ENTRY>true</SL_ENTRY>
|
485
485
|
<PRODNO>2069639</PRODNO>
|
486
|
-
<Chapter70_HACK>true</Chapter70_HACK>
|
487
486
|
</ITEM>),
|
488
487
|
'HTML-encoded limitation' => %(<DSCR>Zur Erhaltungstherapie (Monotherapie) bei erwachsenen Patientinnen mit rezidiviertem, fortgeschrittenem Ovarialkarzinom mit BRCA Mutation im Anschluss an eine platinhaltige Chemotherapie bei Vorliegen einer kompletten oder partiellen Remission.
|
489
488
|
|
data/spec/data/varia_De.htm
CHANGED
@@ -197,7 +197,7 @@
|
|
197
197
|
<p>70.01.10</p>
|
198
198
|
</td>
|
199
199
|
<td width="52%">
|
200
|
-
<p>Ceres Urtinkturen gemäss L2</p>
|
200
|
+
<p>Ceres Urtinkturen gemäss L2 mit -- im Kommentar</p>
|
201
201
|
</td>
|
202
202
|
<td align="right" width="10%">
|
203
203
|
<p>20ml</p>
|
@@ -2438,4 +2438,4 @@ die Abrechnung zu erleichtern.<br>
|
|
2438
2438
|
|
2439
2439
|
</body>
|
2440
2440
|
|
2441
|
-
</html>
|
2441
|
+
</html>
|
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.
|
4
|
+
version: 2.7.0
|
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: 2020-
|
11
|
+
date: 2020-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|
@@ -486,8 +486,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
486
486
|
- !ruby/object:Gem::Version
|
487
487
|
version: '0'
|
488
488
|
requirements: []
|
489
|
-
|
490
|
-
rubygems_version: 2.6.8
|
489
|
+
rubygems_version: 3.1.2
|
491
490
|
signing_key:
|
492
491
|
specification_version: 4
|
493
492
|
summary: oddb2xml creates xml files.
|