zdavatz / oddb2xml

oddb2xml, create xml files using refdata, swissmedic and bag xml files
http://www.ywesee.com/Oddb2xml/Index
GNU General Public License v3.0
8 stars 5 forks source link

Since 28.2.22 swissmedic_package.xlsx contains IKSCAT A+ #57

Closed ngiger closed 2 years ago

ngiger commented 2 years ago

In column "N" Abgabekategorie Packung" we had till february 2022 only the values "A", "B","C", "D" "E", in march we have about 200 items with "A+". This distinction is not nedded for the the artikelstamm as used in the Elexis app.Therefore we should simply truncate it to "A".

zdavatz commented 2 years ago

A+ has been there for a long time now (at least since 2010). A+ means Betäubungsmittel. We need to keep this information in oddb2xml.

ngiger commented 2 years ago

https://de.wikipedia.org/wiki/Abgabekategorie says "Arzneimittel, die ein Betäubungsmittel-Rezept erfordern, findet man auch manchmal als Kategorie A+ ausgewiesen."

However we did not find any drug with a "A+" in column N in the swissmedic_package.xlsx.

As Elexis_Artikelstamm_v5.xsd does not have "A+" as a valid IKSCAT value I propose the following:

zdavatz commented 2 years ago

Es gibt sehr viele mit A+ als Kategorie: D29B67A5-12C7-40BF-968F-EBC9F97B4EE8

74CD011B-2891-49AC-9724-F46E609870DA

ngiger commented 2 years ago

Ja aber erst seit 4. Februar 2022! Vorher gab es keine einziges. Auf thinpower: /var/www/oddb.org/data/xls/Packungen-2022.01.06.xlsx enthält kein Vorkommniss von A+ /var/www/oddb.org/data/xls/Packungen-2022.02.04.xlsx enthält viele Vorkommniss von A+

zdavatz commented 2 years ago

Ok, interessant! Das sind auf jeden Fall Betäubungsmittel.

ngiger commented 2 years ago

Julian hat gestern noch gemeldet, dass die oddb_article.xml ebenfalls A1+ enthalten.

Die von wget https://download.hin.ch/download/oddb2xml/oddb_article.xml runtergeladenene Datei validiert nicht.

oddb_article.xml:1436135: element SMCAT: Schemas validity error : Element '{http://wiki.oddb.org/wiki.php?pagename=Swissmedic.Datendeklaration}SMCAT': [facet 'enumeration'] The value 'A+' is not an element of the set {'B', 'C', 'D', 'A', 'E'}.

Patch dafür folgt

ngiger commented 2 years ago

Works now fine