https://github.com/zdavatz/gtin2atc
Add ATC-Codes to GTIN-Codes.
https://github.com/zdavatz/gtin2atc
Last synced: 9 months ago
JSON representation
Add ATC-Codes to GTIN-Codes.
- Host: GitHub
- URL: https://github.com/zdavatz/gtin2atc
- Owner: zdavatz
- License: gpl-3.0
- Created: 2015-01-14T13:41:31.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-10T15:48:03.000Z (over 11 years ago)
- Last Synced: 2025-08-14T12:55:25.438Z (10 months ago)
- Language: Ruby
- Size: 269 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.textile
- Changelog: History.txt
- License: LICENSE
Awesome Lists containing this project
README
h2. gtin2atc
h3. usage
There are three different useage:
# gtin2atc --compare
Reads the GTIN/ATC-Code from BAG, Swissmedic, RefData and compares the from constency.
When adding --log it outputs a line for each difference/problem found.
# gtin2atc gtin1 [gtinx]
Search for ATC-Code with GTIN(s) passed on command line. Outputs a file gtin2atc.csv
# gtin2atc file_with_one_gtin_per_line
Reads file_with_one_gtin_per_line, then putputs a file gtin2atc.csv with info about each GTIN found in the input file
h3. background
We get the data from three sources
* e-mediat: http://swissindex.e-mediat.net/SwissindexPharma_out_V101
* BAG: Preparations.xml inside http://bag.e-mediat.net/SL2007.Web.External/File.axd?file=XMLPublications.zip
* Swissmedic: http://www.swissmedic.ch/arzneimittel/00156/00221/00222/00230/index.html?lang=de