DDD (Daily Drug Dose) info can be read from file https://download.epha.ch/cleaned/atc.csv. Zeno mailed me a list of medis from bluecare, which should be used as test-cases for the DDD.
When looking at the existing examples, I get the following output
gtin,ATC,pharmacode,description,daily drug dose 4009077073203,R05X,41499,SOLDAN EM EUKAL Bronchial Bonbons, 7680147690482,N07BC02,41803,KETALGIN Inj Lös 10 mg/ml,"25 mg O,P" 7680147700112,N07BC02,41826,KETALGIN Tabl 5 mg,"25 mg O,P" 7680147700389,N07BC02,41832,KETALGIN Tabl 5 mg,"25 mg O,P" 7680172330681,D11AC03,20652,SELSUN Shampoo Susp, 7680199320283,N07BC02,41855,KETALGIN Supp 10 mg,"25 mg O,P" 7680202580475,J01FA01,20209,ERYTHROCIN i.v. Trockensub 1000 mg,1 g O; 2 g O Erythromycinethylsuccinat-Tabletten; 2 g P; 1 g O Kinder DDD für Erythromycinethylsuccinat-haltige Mittel 7680291520390,N02BE01,31532,BEN-U-RON Supp 250 mg Kind,"3 g O,P,R; 0,75 g O Kinder DDD; 0,375 g R Säuglings DDD; 0,75 g R Kinder DDD" 7680316440115,B03AA07,20244,FERRO-GRADUMET Depottabl,"0,2 g O Fe2+" 7680324750190,A06AA01,23722,LANSOYL Gel,15 g O 7680331590215,A01AD11,47852,DEAFTOL Tabl m Lidocain, 7680353660163,B03AE10,20273,KENDURAL Depottabl,
This presents quite some different possibilities!
Adding the DDD was easy. See commit Added ddd in generated csv file
Travis-CI reminded me to fix an UTF-8 problem. Done with commit Fix UTF-8 issue when reading atc.csv
Verified that "Was ist ein ATC-Code?" appears when entering "Desitin" in http://swiss.mailr.se/. It does not appear when I entered "Budesonid"
Fixed the problem with commit Remove what is an ATC-Code from evidentia lnf
Pulled the changes on thinpower. Tested it again on http://swiss.mailr.se/
Must also remove "ATC-Overview". Looks like in src/view/resultview.rb things are not done correctly in resultview_switch when the search_type does not include best_result (as this is the case for evidentia LNF).
Fixed with commit Removed ATC-Overview from Evidentia LNF