Pushed commit Add selling units ot generated gtin2atc.csv file. Code with code I had forgotten to publish yesterday evening.
We must an optional parameter for the output file, to allow producing another file than gtin2atc.csv. Done with commit Added option --output to allow specifying another output file
Must also add dose if mono-preparation. Done with commit Added output for dosis (name, unit, qty) for mono-preparations
Zeno wants to change the usage like this:
Done with commit Added optional second parameter to specify output file
Pushed commit Updated help text to clarify useage of oddb_calc.xml.
Must split daily drug dose into 3 parts, qty, unit, adminstration route. But this is not so easy as seen when looking at the following examples
Pushed commit Added exfactory and public price
Working on separating DDD when first to fields are a qty and a unit. Pushed commit Splitted ddd into qty, unit, route of administration
improve oddb2xml --calc. For multiple packages like Nutriflex roman I, II, III with names should be added as a separate tag in composition
For IKSNR 55596 Pack 001 the following element was lost natrii dihydrogenophosphas dihydricus 1.17 g
. I am unsure whether this is a real error, as atrii dihydrogenophosphas dihydricus
does not appear in the column 0 Wirkstoff in packungen.xlsx.
Adding labels like <LABEL>I compressa con principio attivo</LABEL>
to oddb_calc.xml.
Debugging and analysing all lines where Zusammensetzung consists of more than one line. Found 938 lines. Often the last line looks like Solvens: aqua ad iniectabilia 20 ml
There were 184 labels created which are used in 2078 COMPONENTs. Rename the tag COMPOSITION to COMPONENT in COMPOSITIONS.
Do we handle IKSRN 65224 Doxorubicin-Acino, Pulver und Lösungen zur Herstellung eines Konzentrates
correctly? It has as Wirkstoff doxorubicini hydrochloridum
and as Zusammensetzung
I): doxorubicini hydrochloridum 50 mg, lactosum monohydricum, pro vitro. II): natrii carbonas anhydricus, aqua ad iniectabilia q.s. ad solutionem pro 3 ml. III): lecithinum ex ovo, cholesterolum, natrii hydroxidum, aqua ad iniectabilia q.s. ad solutionem pro 2 ml.
At the moment we produce
<ARTICLE> <GTIN>7680652240011</GTIN> <NAME>Doxorubicin-Acino, Pulver und Lösungen zur Herstellung eines Konzentrates</NAME> <PKG_SIZE>2</PKG_SIZE> <SELLING_UNITS>2</SELLING_UNITS> <MEASURE>Set</MEASURE> <GALENIC_FORM>Pulver und Lösungen zur Herstellung eines Konzentrates</GALENIC_FORM> <GALENIC_GROUP>unbekannt</GALENIC_GROUP> <COMPOSITIONS> <COMPONENT> <NAME>Doxorubicini Hydrochloridum</NAME> <QTY>50.0</QTY> <UNIT>mg/3 ml</UNIT> </COMPONENT> <COMMENT>III): lecithinum ex ovo, cholesterolum, natrii hydroxidum, aqua ad iniectabilia q.s. ad solutionem pro 2 ml.</COMMENT> </COMPOSITIONS> </ARTICLE>
Pushed commits:
I think a solution for the problem with missing components in a composition would be to add a boolean tag "IS_ACTIVE_AGENT" to each component.
We emit too many spaces for 7680458820202 Magnesiumchlorid 0,5 molar B. Braun, Zusatzampulle für Infusionslösungen
. This must be fixed. Done with commit Remove unnecessary spaces from ARTICLE.NAME in oddb_calc.xml
Fixed similar problems with commits