20130208-update-oddb2xml-product
<< | Index | >>
Summary
- Update oddb_product.xml
- use (via SwissmedicNo8, SwismedicNo5) Packungen.xls (If product is not found in swissINDEX)
- generate EAN-Code from Packungen.xls
Commits
- oddb2xml
-
Index
Update product.xml
Update (whole changed) oddb_product.xml Structure.
- . Base(Grundlage) is all INDEX from swissINDEX
- . add TEXT(DESC etc.) from Preparations.xml
- . marge CODES(EAN, ATC, IT-CODE) Packungen.xls
swissINDEX (DE and FR, only EAN[0..3] == 7680)
SwissmedicNo8 ---> Preparations.xml
* DESC_DE, DESC_FR, GENCD, etc.
EAN-CODE (if not found in swissINDEX) ---> Packungen.xls
* EAN-Code, IT-Code, ATC-Code
This commit discards first XSD-Definiton Structure.
- change
-
- oddb_product.xml has only EAN-CODE (as GTIN) of Pharma product(7680xxxxxxxxx).
- Base is swissINDEX
- If entry of swissINDEX dose not have GTIN, then merge entry from Packungen.xls for EAN-Code, ATC-Code. (Connection-Key is SwissmedicNo8)
- It takes only TEXT data from Preparations.xml (Connection-Key is Pharmacode.)
- commit
-
Ref.
Update product.xml with data from Packungen.xls
Ref.
- from Packungen.xls
-
Abgabekategorie (column 'N') # => (oddb_article.xml)
ATC (if missing from swissINDEX)
Wirkstoff (column 'O') # => new "<SubstanceSwissmedic>"
Packungsgrösse (column 'L') # => new "<PackGrSwissmedic>"
Einheit (column 'M') # => new "<EinheitSwissmedic>"
- commit
-
(oddb_article.xml)