---
Zeno remarked that running oddb2xml -a nonpharma -p zurrose
lead to an exception. Stems from the fact that we dropped some previously required parameters to the flags -a, -e, -p.
Clarified history.txt, added an spec test and changed the outcome when giving wrong parameters like this
bin/oddb2xml -a nonpharma -p zurrose Please remove unused parameters ["nonpharma", "zurrose"]
Fixed with commits Better handling when passing too many options and Bumped version to 1.9.1
Okay. I made a really dumb error. Trying rake test now and waiting two hours to get the result.
Remarked that e.g. for GTIN 7680353660163 we lost the DSCRD and DSCRF in oddb_product.xml with version 1.9.2. Same for CPTCMP.
Also a lot of substances have changes their names. I think they changes the IDs was we have now only 1375 instead of 1458 items.
Verifying for GTIN 7680147700389
<DSCRD>Kendural Depottabl </DSCRD> <DSCRF>Kendural cpr dépôt </DSCRF>
This is probably a consequence that the Preparations.xml does no longer contain the Pharmacode. See line 93 of lib/oddb2xml/builder.rb where we have in prepare_article if seq = @items[phar]
. I have to rethink we (internally) used the deprecated pharmacode as an index. We should switch to gtin, but will this work? No. we must use the PackId.
Pushed commit Fixed missing DSCRD/DSCF in oddb_product.xml because BAG-Preparation.xml ships without Pharmacode now. Running rake test now.
Getting stuff done. First extracting gtin,atc_code, pharmacode from BAG-XML. Spec-Tests run. The actual Preparations.xml do not contain the pharmacode anymore.
We get the data from two sources
For testing purposes I compared the ATC and GTIN from both sources and got the following result Compared 16024 entries from BAG and SwissIndex. Matching 8954 only_in_bag 248 only_in_swissindex 6811 different_atc 11
Details are in Attach:gtin2atc_1.txt
Added the following features:
Pushed commits:
Will continue tomorrow.