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

replace epha download link #33

Closed zdavatz closed 5 years ago

zdavatz commented 5 years ago

replace epha download link with DE: http://pillbox.oddb.org/drug_interactions_csv_de.zip FR: http://pillbox.oddb.org/drug_interactions_csv_fr.zip

ngiger commented 5 years ago

But here we have many changes. The old format from https://download.epha.ch/cleaned/matrix.csv was:

"ATC1","Name1","ATC2","Name2","Info","Mechanismus","Effekt","Massnahmen","Grad" "N06AB06","Sertralin","M03BX02","Tizanidin","Keine Interaktion","Tizanidin wird über CYP1A2 metabolisiert. Sertralin beeinflusst CYP1A2 jedoch nicht.","Keine Interaktion.","Die Kombination aus Sertralin und Tizanidin hat kein bekanntes Interaktionspotential.","A"

The new one from http://pillbox.oddb.org/drug_interactions_csv_de.zip has no header and the first line contains HTML element

D01BA02 [Terbinafin] → N02AX02 [Tramadol]

Risikoklasse: Kombination vermeiden (D)

Möglicher Effekt: Verminderte analgetische Wirkung

Mechanismus: Terbinafin hemmt CYP2D6 und damit auch den Metabolismus von Tramadol.

Empfohlene Massnahmen: Der gleichzeitige Einsatz von Tramadol und Terbinafin ist ungünstig. Es sollte eine andere analgetische Therapie gewählt oder beispielsweise Itraconazol als alternatives Antimykotikum eingesetzt werden.

zdavatz commented 5 years ago

I will commit the old epha File to https://github.com/zdavatz/oddb2xml_files. We can take it from oddb.org

zdavatz commented 5 years ago

Neuer Download Link: https://github.com/zdavatz/oddb2xml_files/blob/master/interactions_de_utf8.csv

zdavatz commented 5 years ago

should be done with: https://github.com/zdavatz/oddb2xml/commit/f0421a8124f51ebf2e7ec83d9d0e627ca16e64b8

zdavatz commented 5 years ago

Version 2.6.2 still gives one Error:

/home/zeno/.rbenv/versions/2.4.0/lib/ruby/2.4.0/net/http.rb:906:in `rescue in block in connect': Failed to open TCP connection to download.epha.ch:80 (getaddrinfo: Name or service not known) (SocketError)
zdavatz commented 5 years ago

für das atc.csv bitte neu dieses File verwenden: atc_codes_multi_lingual.txt falls wir das für oddb2xml überhaupt benötigen.

ngiger commented 5 years ago

Should be fixed with commit

oddb2xml -e finished without problems. oddb2xml --artikelstamm is currently running locally

zdavatz commented 5 years ago

Kannst Du noch das neue Gem releasen bitte.

zdavatz commented 5 years ago

oddb2xml-2.6.3.gem has been released.