zdavatz/oddb.org

7680004880025, Hepatect, Impfstoff/Blutprodukt hat SB und SL Eintrag, auf oddb.org aber nicht.

Closed this issue · 6 comments

  1. Warum hat dieses Produkt keinen Preis?
  2. https://generika.cc/de/generika/show/reg/00488/seq/02/pack/002
  3. Es ist in der SL:
  4. Bildschirmfoto 2024-02-20 um 09 31 09

Die Felder deductible, ikscat, sl_generic_type und narcotic vom BSV-XML wurden nicht richtig übernommen. Tests dafür gemacht.
Werden aber nicht die Felder ikscat und narcotic (aka bm_flag) vom plugin/narcotics.rb gesetzt. Wann läuft jobs/update_narcotics und mit welchem Parameter?
Schaue jetzt, ob der Preis richtig aufdatiert wird.

  1. IKS Cat kommt von der Swissmedic Packungen Datei und nicht vom BAG.
  2. Der Narcotics Flag kommt von der Swissmedic Packungen Datei, Spalte X.
  3. Swissmedic Packungen, siehe Spalte X.
  4. Den Job jobs/update_narcotics kann man löschen, weil das schon seit längerem über die Swissmedic Packungen Datei läuft.
  5. Hepatect ist ein Impfstoff/Blutprodukt, Spalte E in der Swissmedic Packungen Datei.

Problem is that getting the package with <SwissmedicNo8>488001</SwissmedicNo8> returns nil, as it expects 00488001. Therefore we must expand it with something like sprintf('%08i', s1.to_i)

Found another problem. Registration 66715 has package 001 but it does not show up in oddb.org and is not created when found by bsv_xml importer

grep 'SwissmedicNo8>66715' data/xml/Preparations.xml 
        <SwissmedicNo8>66715001</SwissmedicNo8>
        <SwissmedicNo8>66715003</SwissmedicNo8>
        <SwissmedicNo8>66715005</SwissmedicNo8>
        <SwissmedicNo8>66715004</SwissmedicNo8>
        <SwissmedicNo8>66715006</SwissmedicNo8>

66715 with Package 001

is not in the latest Swissmedic Packages file, oddb.org is correct.

Bildschirmfoto 2024-02-21 um 19 45 50 Bildschirmfoto 2024-02-21 um 19 47 33

here everything is working fine.

With oddb.org we do not create packages, that are only found in Preparations.xml.

Cleaned up the code for the price changes. The problem that IKSNR with leading 0 are not parsed is fixed. This did not work for a long time.
May be the change in commit 990ef52 by me in 2015 Remove pharmacode from bsv-import
where @pack ||= @app.package_by_ikskey(@text) was replaced by @pack ||= @app.package_by_ikskey(@text)
led to this problem.
Or the BSV-XML contained before the leading 0 in the field SwissmedicNo8
Anyway. I added a test case which checks this case.