oddb.org 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gemtest +0 -0
- data/Guide.txt +23 -17
- data/{README → INSTALL_from_Source.txt} +64 -75
- data/Manifest.txt +110 -4
- data/README.txt +4 -2
- data/Rakefile +5 -0
- data/doc/favicon.ico +0 -0
- data/doc/index.rbx +15 -0
- data/doc/resources/anthroposophy/favicon.ico +0 -0
- data/doc/resources/anthroposophy/logo.png +0 -0
- data/doc/resources/atupri/logo.gif +0 -0
- data/doc/resources/desitin/logo.jpg +0 -0
- data/doc/resources/downloads/datadesc/analysis.csv.txt +57 -0
- data/doc/resources/downloads/datadesc/doctors.csv.txt +43 -0
- data/doc/resources/downloads/datadesc/doctors.yaml.txt +52 -0
- data/doc/resources/downloads/datadesc/fachinfo.yaml.txt +107 -0
- data/doc/resources/downloads/datadesc/generics.xls.txt +42 -0
- data/doc/resources/downloads/datadesc/index_therapeuticus.txt +38 -0
- data/doc/resources/downloads/datadesc/interactions.yaml.txt +78 -0
- data/doc/resources/downloads/datadesc/migel.csv.txt +84 -0
- data/doc/resources/downloads/datadesc/narcotics.csv.txt +49 -0
- data/doc/resources/downloads/datadesc/narcotics.yaml.txt +40 -0
- data/doc/resources/downloads/datadesc/oddb.csv.txt +98 -0
- data/doc/resources/downloads/datadesc/oddb.yaml.txt +255 -0
- data/doc/resources/downloads/datadesc/oddb2.csv.txt +94 -0
- data/doc/resources/downloads/datadesc/oddbdat.txt +228 -0
- data/doc/resources/downloads/datadesc/patents.xls.txt +29 -0
- data/doc/resources/downloads/datadesc/patinfo.yaml.txt +79 -0
- data/doc/resources/downloads/datadesc/price_history.csv.txt +43 -0
- data/doc/resources/downloads/datadesc/price_history.yaml.txt +55 -0
- data/doc/resources/downloads/datadesc/s31x.txt +40 -0
- data/doc/resources/downloads/datadesc/swissdrug-update.xls.txt +59 -0
- data/doc/resources/downloads/examples/Inderal.Preisvergleich.csv +19 -0
- data/doc/resources/downloads/examples/analysis.csv +35 -0
- data/doc/resources/downloads/examples/compendium_ch.oddb.org.firefox.epub +0 -0
- data/doc/resources/downloads/examples/compendium_ch.oddb.org.htc.prc +0 -0
- data/doc/resources/downloads/examples/compendium_ch.oddb.org.kindle.mobi +0 -0
- data/doc/resources/downloads/examples/compendium_ch.oddb.org.stanza.epub +0 -0
- data/doc/resources/downloads/examples/doctors.csv +13 -0
- data/doc/resources/downloads/examples/doctors.yaml +238 -0
- data/doc/resources/downloads/examples/fachinfo.yaml +1255 -0
- data/doc/resources/downloads/examples/fachinfos_de.pdf +51565 -0
- data/doc/resources/downloads/examples/fachinfos_fr.pdf +52072 -0
- data/doc/resources/downloads/examples/generics.xls +0 -0
- data/doc/resources/downloads/examples/index_therapeuticus.tar.gz +0 -0
- data/doc/resources/downloads/examples/interactions.yaml +161 -0
- data/doc/resources/downloads/examples/migel.csv +36 -0
- data/doc/resources/downloads/examples/narcotics.yaml +92 -0
- data/doc/resources/downloads/examples/oddb.csv +1378 -0
- data/doc/resources/downloads/examples/oddb.yaml +14976 -0
- data/doc/resources/downloads/examples/oddb2.csv +1566 -0
- data/doc/resources/downloads/examples/oddbdat.tar.gz +0 -0
- data/doc/resources/downloads/examples/patents.xls +0 -0
- data/doc/resources/downloads/examples/patinfo.yaml +2505 -0
- data/doc/resources/downloads/examples/price_history.csv +99 -0
- data/doc/resources/downloads/examples/price_history.yaml +431 -0
- data/doc/resources/downloads/examples/swissdrug-update.xls +0 -0
- data/doc/resources/errors/appdown.html +50 -0
- data/doc/resources/errors/logo.png +0 -0
- data/doc/resources/errors/logo_de.gif +0 -0
- data/doc/resources/gcc/banner.gif +0 -0
- data/doc/resources/gcc/logo.png +0 -0
- data/doc/resources/gcc/logo_de.gif +0 -0
- data/doc/resources/gcc/logo_doc.gif +0 -0
- data/doc/resources/gcc/logo_fr.gif +0 -0
- data/doc/resources/gcc/logo_rss.png +0 -0
- data/doc/resources/generika/favicon.ico +0 -0
- data/doc/resources/generika/logo.gif +0 -0
- data/doc/resources/generika/logo_de.gif +0 -0
- data/doc/resources/generika/logo_fr.gif +0 -0
- data/doc/resources/homeopathy/favicon.ico +0 -0
- data/doc/resources/homeopathy/logo.png +0 -0
- data/doc/resources/icon_twitter.gif +0 -0
- data/doc/resources/innova/logo.gif +0 -0
- data/doc/resources/innova/logo_de.gif +0 -0
- data/doc/resources/javascript/admin.js +14 -0
- data/doc/resources/javascript/autofill.js +21 -0
- data/doc/resources/javascript/bit.ly.js +29 -0
- data/doc/resources/javascript/company.js +22 -0
- data/doc/resources/javascript/dojo/Editor.js +219 -0
- data/doc/resources/javascript/dojo/HtmlEditorToolbar.html +163 -0
- data/doc/resources/javascript/dojo/sigma.gif +0 -0
- data/doc/resources/javascript/widget/SymbolPalette.js +162 -0
- data/doc/resources/javascript/widget/Tooltip.js +85 -0
- data/doc/resources/javascript/widget/__package__.js +2 -0
- data/doc/resources/livemarks16.png +0 -0
- data/doc/resources/mail.gif +0 -0
- data/doc/resources/mobile/logo.png +0 -0
- data/doc/resources/paypal_donate.gif +0 -0
- data/doc/resources/phyto-pharma/favicon.ico +0 -0
- data/doc/resources/phyto-pharma/logo.png +0 -0
- data/doc/resources/plugins/Generika.cc.gif +0 -0
- data/doc/resources/plugins/Generika.cc.html +34 -0
- data/doc/resources/plugins/Generika.cc.src +34 -0
- data/doc/resources/plugins/oddb.org.gif +0 -0
- data/doc/resources/plugins/oddb.org.html +34 -0
- data/doc/resources/plugins/oddb.org.src +34 -0
- data/doc/resources/print.css +33 -0
- data/doc/resources/provita/logo_de.gif +0 -0
- data/doc/resources/santesuisse/logo_de.gif +0 -0
- data/doc/resources/schoenenberger/logo_de.gif +0 -0
- data/doc/resources/swissmedic/logo.png +0 -0
- data/doc/resources/swissmedic/logo_de.gif +0 -0
- data/doc/resources/swissmedic/logo_doc.gif +0 -0
- data/doc/resources/swissmedic/logo_fr.gif +0 -0
- data/doc/resources/sympany/logo.gif +0 -0
- data/doc/robots.txt +29 -0
- data/ext/export/src/generics_xls.rb +29 -5
- data/ext/export/src/oddbdat.rb +1 -1
- data/ext/export/test/test_generics_xls.rb +216 -0
- data/ext/export/test/test_oddbdat.rb +880 -0
- data/lib/oddb.org.rb +1 -1
- data/src/model/package.rb +3 -2
- data/src/plugin/analysis.rb +2 -0
- data/src/plugin/bsv_xml.rb +1 -1
- data/src/plugin/hospitals.rb +1 -0
- data/src/plugin/oddbdat_export.rb +12 -2
- data/src/plugin/text_info.rb +16 -29
- data/src/util/exporter.rb +21 -1
- data/src/util/log.rb +3 -0
- data/src/util/oddbapp.rb +1 -1
- data/src/util/oddbconfig.rb +1 -1
- data/src/util/updater.rb +9 -1
- data/test/data/html/interaction/flockhart/prepared_table.asp +820 -0
- data/test/data/html/interaction/flockhart/table.asp +820 -0
- data/test/data/html/text_info/News.html +18 -93
- data/test/suite.rb +78 -4
- data/test/test_model/package.rb +38 -0
- data/test/test_plugin/bsv_xml.rb +4 -2
- data/test/test_plugin/flockhart.rb +1 -1
- data/test/test_plugin/oddbdat_export.rb +79 -658
- data/test/test_plugin/ouwerkerk.rb +2 -2
- data/test/test_plugin/suite.rb +8 -6
- data/test/test_plugin/text_info.rb +40 -52
- data/test/test_plugin/{doctors.rb → zdoctor.rb} +0 -0
- data/test/test_util/exporter.rb +500 -0
- data/test/test_util/suite.rb +8 -6
- data/test/test_util/{log.rb → zlog.rb} +19 -0
- data/test/test_view/{search.rb → asearch.rb} +0 -0
- data/test/test_view/suite.rb +8 -6
- metadata +143 -14
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
Datenbeschrieb oddb2.csv
|
|
2
|
+
|
|
3
|
+
Version: 1.1.0
|
|
4
|
+
Geändert: 12.03.2009 (1.1.0) durch hwyss@ywesee.com
|
|
5
|
+
Erstellt: 18.10.2007 (1.0.0) durch hwyss@ywesee.com
|
|
6
|
+
|
|
7
|
+
## Struktur ##
|
|
8
|
+
Encoding: UTF-8
|
|
9
|
+
Record-Separator: \n
|
|
10
|
+
Field-Separator: ;
|
|
11
|
+
|
|
12
|
+
Es kommen zwei Record-Arten vor: ATC-Record und Produkt-Record
|
|
13
|
+
|
|
14
|
+
ATC-Record: alle folgenden Produkt-Records gehören zu diesem ATC-Code
|
|
15
|
+
00: rectype (#MGroup), CONST -> Record-Type
|
|
16
|
+
01: code (1-7), NOT NULL -> Atc-Code. siehe Glossar (AtcCode)
|
|
17
|
+
02: de (*) -> Deutsche Bezeichnung
|
|
18
|
+
|
|
19
|
+
Produkt-Record:
|
|
20
|
+
00: rectype (#Medi), CONST -> Record-Type
|
|
21
|
+
01: iksnr (Integer (5)), NOT NULL -> Registrationsnummer der Swissmedic
|
|
22
|
+
02: ikscd (Integer (3)), NOT NULL -> Packungsnummer der Swissmedic
|
|
23
|
+
03: ikskey (Integer (8)), NOT NULL -> Swissmedic-Nr, zusammengesetzt aus iksnr und ikscd
|
|
24
|
+
04: barcode (Integer (13)), NOT NULL -> Packungs-Barcode, zusammengesetzt aus iksnr und ikscd
|
|
25
|
+
05: bsv_dossier (Integer) -> BSV-Dossier
|
|
26
|
+
06: pharmacode (Integer) -> Pharmacode, wo vorhanden
|
|
27
|
+
07: name_base (*) -> Hauptname der Sequenz aus der Registrationsurkunde, enthält z.T. Dosisangaben.
|
|
28
|
+
08: galenic_form (*) -> Galenische Form, Deutsche Bezeichnung
|
|
29
|
+
09: dose (*) -> Dosierung. Wird falls möglich aus dem Namen gewonnen, andernfalls aus der Zusammensetzung.
|
|
30
|
+
10: size (*) -> Packungsgrösse (z.B. 5 x 28 Tabletten)
|
|
31
|
+
11: numerical_size (Integer) -> Packungsgrösse, verrechnet (z.B. 140); für Parenteral verabreichte Produkte: exkl. Behältervolumen
|
|
32
|
+
12: price_exfactory (Float) -> Exfactorypreis in Franken und Rappen
|
|
33
|
+
13: price_public (Float) -> Publikumspreis in Franken und Rappen
|
|
34
|
+
14: company (*) -> Registrationsinhaber
|
|
35
|
+
15: ikscat (*) -> Abgabekategorie. A-E. siehe Glossar (Abgabekategorie)
|
|
36
|
+
16: sl_entry (Ja/Nein) -> Eintrag in der SL
|
|
37
|
+
17: introduction_date (dd.mm.yyyy) -> Datum der Aufnahme in die Spezialitätenliste
|
|
38
|
+
18: limitation (Ja/Nein) -> Limitation
|
|
39
|
+
19: limitation_points (Integer) -> Limitationspunkte
|
|
40
|
+
20: limitation_text (*) -> Limitationstext in Deutsch
|
|
41
|
+
21: lppv (Ja/Nein) -> Eintrag in der LPPV
|
|
42
|
+
22: registration_date (dd.mm.yyyy) -> Datum der ersten Zulassung in der Schweiz
|
|
43
|
+
23: inactive_date (dd.mm.yyyy) -> Falls ein Produkt unabhängig von der Swissmedic ausser Handel genommen wird: Datum der Ausserhandelnahme
|
|
44
|
+
24: export_flag (*) -> Wenn gesetzt: Produkt ist nur für den Export Bestimmt
|
|
45
|
+
25: narcotic (*) -> Wenn gesetzt: CAS Registry Number des Eintrags in der Betäubungsmittelliste
|
|
46
|
+
26: generic_type (O/G) -> O: Original, G: Generikum
|
|
47
|
+
27: has_generic (Ja/Nein) -> Wenn Ja: es ist mindestens ein Generikum zu diesem Produkt bekannt
|
|
48
|
+
28: deductible (10%/20%) -> Selbstbehalt für SL-Produkte
|
|
49
|
+
29: out_of_trade (Ja/Nein) -> Ausser Handel laut http://www.refdata.ch ?
|
|
50
|
+
30: complementary (C/A/H/P) -> Komplementärprodukt,siehe Glossar (Komplementärprodukt)
|
|
51
|
+
31: route_of_administration (O/P/N/SL/TD/R/V) -> Verabreichnungsweg, siehe Glossar (Route of Administration)
|
|
52
|
+
32: galenic_group (*) -> Galenische Gruppe - Galenische Formen innerhalb der gleichen Gruppe sind vergleichbar.
|
|
53
|
+
|
|
54
|
+
## Glossar ##
|
|
55
|
+
* AtcCode:
|
|
56
|
+
Anatomisch-Therapeutisch-Chemischer Code der durch die WHO vergeben wird. Hat 5 Ebenen:
|
|
57
|
+
Level 1: C -> Anatomische Gruppierung, z.B. A: Alimentäres System und Stoffwechsel
|
|
58
|
+
Level 2: +NN -> Therapeutische Gruppierung, z.B. A02: Mittel bei Säure bedingten Erkrankungen
|
|
59
|
+
Level 3: +C -> Therapeutische Untergruppe, z.B. A02A: Antacida
|
|
60
|
+
Level 4: +C -> Chemische Gruppierung, z.B. A02AA: Magnesium-haltige Verbindungen
|
|
61
|
+
Level 5: +NN -> Wirkstoff(-Kombination), z.B. A02AA01: Magnesiumcarbonat
|
|
62
|
+
|
|
63
|
+
* Abgabekategorie
|
|
64
|
+
A: verschärft Rezeptpflichtig
|
|
65
|
+
B: Rezeptpflichtig
|
|
66
|
+
C: erhältlich in Apotheken ohne Rezept
|
|
67
|
+
D: erhältlich in Apotheken und Drogerien
|
|
68
|
+
http://www.trichema.ch/D/faq.php#15
|
|
69
|
+
|
|
70
|
+
* CAS Registry Number:
|
|
71
|
+
http://www.cas.org/EO/regsys.html
|
|
72
|
+
|
|
73
|
+
* Komplementärprodukt:
|
|
74
|
+
C: Komplementärprodukt
|
|
75
|
+
A: Antroposophisches Heilmittel
|
|
76
|
+
H: Homöopathisches Heilmittel
|
|
77
|
+
P: Phytotherapeutisches Heilmittel
|
|
78
|
+
|
|
79
|
+
* Route of Administration:
|
|
80
|
+
O: oral
|
|
81
|
+
P: parenteral
|
|
82
|
+
N: nasal
|
|
83
|
+
SL: sublingual
|
|
84
|
+
TD: transdermal
|
|
85
|
+
R: rektal
|
|
86
|
+
V: vaginal
|
|
87
|
+
|
|
88
|
+
* Version
|
|
89
|
+
Versionsnummern bezeichnen Änderungen nach dem Schema "Major.Minor.Documentation"
|
|
90
|
+
- Major: Komplett neuer Aufbau des Exports
|
|
91
|
+
- Minor: Kleinere Änderungen am Export (z.B. Refactoring von Adressangaben in eine Address2-Klasse)
|
|
92
|
+
- Documentation: Ergänzungen und Änderungen im Datenbeschrieb, die keine Änderung des Exports als Ursache haben.
|
|
93
|
+
Die komplette Version-History ist zu finden unter:
|
|
94
|
+
http://scm.ywesee.com/?p=oddb.org;a=history;f=doc/resources/downloads/datadesc/oddb2.csv.txt
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
Datenbeschrieb oddbdat
|
|
2
|
+
|
|
3
|
+
Version: 1.3.0
|
|
4
|
+
Geändert: 12.03.2009 (1.3.0) durch hwyss@ywesee.com
|
|
5
|
+
Geändert: 09.12.2005 (1.2.0) durch hwyss@ywesee.com
|
|
6
|
+
Geändert: 14.11.2005 (1.1.0) durch hwyss@ywesee.com
|
|
7
|
+
Geändert: 30.09.2005 (1.0.2) durch hwyss@ywesee.com
|
|
8
|
+
Geändert: 02.09.2005 (1.0.1) durch hwyss@ywesee.com
|
|
9
|
+
Erstellt: 02.09.2005 (1.0.0) durch hwyss@ywesee.com
|
|
10
|
+
|
|
11
|
+
## Struktur ##
|
|
12
|
+
Encoding: UTF-8
|
|
13
|
+
Record-Separator: \n
|
|
14
|
+
Field-Separator: |
|
|
15
|
+
|
|
16
|
+
Bemerkung:
|
|
17
|
+
Da dies ein Kompatibilitäts-Export ist, sind viele Felder nie gesetzt.
|
|
18
|
+
|
|
19
|
+
s01x:
|
|
20
|
+
Primärschlüssel: oddb_id
|
|
21
|
+
00: table (01) -> Tabellenbezeichnung
|
|
22
|
+
01: date (yyyymmddhhmmss) -> Datum des Exports
|
|
23
|
+
02: const (1) -> Konstante
|
|
24
|
+
03: oddb_id (Integer, NOT NULL) -> Primärschlüssel
|
|
25
|
+
03: update_type (4) -> Vollständiger Datensatz
|
|
26
|
+
[...]
|
|
27
|
+
06: ikskey (Integer (8), NOT NULL) -> 8-stellige Iksnr aus 5-stelligem Registrations-Code + 3-stelliger Packungsnummer
|
|
28
|
+
[...]
|
|
29
|
+
13: ikscat (Char (1)) -> Abgabekategorie A-E
|
|
30
|
+
[...]
|
|
31
|
+
19: generic (Char (1)) -> wenn 'Y': das Produkt ist ein Generikum
|
|
32
|
+
[...]
|
|
33
|
+
21: registration_date (yyyymmdd) -> Registrations-Datum
|
|
34
|
+
[...]
|
|
35
|
+
28: mwst-code (Integer (1)) -> 3: Preis exkl MwSt
|
|
36
|
+
[...]
|
|
37
|
+
32: sale_code (Char (1)) -> H: Produkt ist nicht im Handel erhältlich
|
|
38
|
+
[...]
|
|
39
|
+
38: insurance_code (Integer (1)) -> 1: Produkt ist in SL
|
|
40
|
+
39: limitation (Char (1)) -> Y: Produkt hat Limitation
|
|
41
|
+
40: limitation_points (Integer) -> Limitationspunkte
|
|
42
|
+
[...]
|
|
43
|
+
46: narcotic (Char (1)) -> Y: Produkt untersteht dem Betäubungsmittelgesetz
|
|
44
|
+
[...]
|
|
45
|
+
|
|
46
|
+
s02x:
|
|
47
|
+
Primärschlüssel: oddb_id
|
|
48
|
+
00: table (02) -> Tabellenbezeichnung
|
|
49
|
+
01: date (yyyymmddhhmmss) -> Datum des Exports
|
|
50
|
+
02: const (1) -> Konstante
|
|
51
|
+
03: oddb_id (Integer, NOT NULL) -> Fremdschlüssel zu Tabelle 01
|
|
52
|
+
04: update_type (4) -> Vollständiger Datensatz
|
|
53
|
+
[...]
|
|
54
|
+
06: fachinfo_id (Integer) -> Fachinformation. Fremdschlüssel zu Tabelle 31
|
|
55
|
+
[...]
|
|
56
|
+
09: atc_code (Char (1-7)) -> ATC-Code. siehe Glossar (AtcCode). Fremdschlüssel zu Tabelle 11 (Code-Type 3)
|
|
57
|
+
[...]
|
|
58
|
+
11: galenic_form (Integer) -> Galenische Form. Fremdschlüssel zu Tabelle 11 (Code-Type 5)
|
|
59
|
+
[...]
|
|
60
|
+
|
|
61
|
+
s03x:
|
|
62
|
+
Primärschlüssel: oddb_id, language
|
|
63
|
+
00: table (03) -> Tabellenbezeichnung
|
|
64
|
+
01: date (yyyymmddhhmmss) -> Datum des Exports
|
|
65
|
+
02: const (1) -> Konstante
|
|
66
|
+
03: oddb_id (Integer, NOT NULL) -> Fremdschlüssel zu Tabelle 01
|
|
67
|
+
04: language (D) -> Sprache
|
|
68
|
+
05: update_type (4) -> Vollständiger Datensatz
|
|
69
|
+
06: fullname (Char) -> Vollständiger Produktname
|
|
70
|
+
07: basename (Char) -> Hauptname
|
|
71
|
+
08: description (Char) -> Beschreibung im Namen
|
|
72
|
+
[...]
|
|
73
|
+
10: galenic_form (Char) -> Galenische Form
|
|
74
|
+
11: dose (Float) -> Dosis Anzahl
|
|
75
|
+
12: unit (Char) -> Dosis Einheit
|
|
76
|
+
[...]
|
|
77
|
+
15: multi (Integer) -> Bei Mehrfachpackungen: Anzahl Packungen in Liefereinheit
|
|
78
|
+
16: comform (String) -> Packungsform
|
|
79
|
+
17: quantity (Float) -> Packungsgrösse
|
|
80
|
+
18: unit (String) -> Einheit für Packungsgrösse
|
|
81
|
+
[...]
|
|
82
|
+
|
|
83
|
+
s06x:
|
|
84
|
+
Primärschlüssel: oddb_id, code_type
|
|
85
|
+
00: table (06) -> Tabellenbezeichnung
|
|
86
|
+
01: date (yyyymmddhhmmss) -> Datum des Exports
|
|
87
|
+
02: oddb_id (Integer, NOT NULL) -> Fremdschlüssel zu Tabelle 01
|
|
88
|
+
03: code_type (E13) -> EAN-Typ
|
|
89
|
+
04: barcode (Char (13)) -> Packungs-Barcode, zusammengesetzt aus iksnr und ikscd
|
|
90
|
+
05: update_type (4) -> Vollständiger Datensatz
|
|
91
|
+
[...]
|
|
92
|
+
|
|
93
|
+
s07x:
|
|
94
|
+
Primärschlüssel: oddb_id, price_type
|
|
95
|
+
00: table (07) -> Tabellenbezeichnung
|
|
96
|
+
01: date (yyyymmddhhmmss) -> Datum des Exports
|
|
97
|
+
02: oddb_id (Integer, NOT NULL) -> Fremdschlüssel zu Tabelle 01
|
|
98
|
+
03: price_type (Char) -> Preisart. siehe Glossar (PriceType)
|
|
99
|
+
04: update_type (4) -> Vollständiger Datensatz
|
|
100
|
+
05: price (Float) -> Preis
|
|
101
|
+
[...]
|
|
102
|
+
|
|
103
|
+
s09x:
|
|
104
|
+
Primärschlüssel: oddb_id, limitation_id
|
|
105
|
+
00: table (09) -> Tabellenbezeichnung
|
|
106
|
+
01: date (yyyymmddhhmmss) -> Datum des Exports
|
|
107
|
+
02: oddb_id (Integer, NOT NULL) -> Fremdschlüssel zu Tabelle 01
|
|
108
|
+
03: limitation_id (Integer, NOT NULL) -> Fremdschlüssel zu Tabelle 10 (Limitationstext-Id)
|
|
109
|
+
05: lineno (Integer, NOT NULL) -> Zeilennummer, Kann zum Sortieren verwendet werden.
|
|
110
|
+
05: update_type (4) -> Vollständiger Datensatz
|
|
111
|
+
[...]
|
|
112
|
+
|
|
113
|
+
s10x:
|
|
114
|
+
Primärschlüssel: limitation_id, language
|
|
115
|
+
00: table (10) -> Tabellenbezeichnung
|
|
116
|
+
01: date (yyyymmddhhmmss) -> Datum des Exports
|
|
117
|
+
02: limitation_id (Integer, NOT NULL) -> Limitationstext-Id
|
|
118
|
+
03: language (D/F/I) -> Sprache
|
|
119
|
+
04: update_type (4) -> Vollständiger Datensatz
|
|
120
|
+
05: limitation_text (Char) -> Limitationstext
|
|
121
|
+
[...]
|
|
122
|
+
|
|
123
|
+
s11x:
|
|
124
|
+
Primärschlüssel: code_type, code_value, language
|
|
125
|
+
00: table (11) -> Tabellenbezeichnung
|
|
126
|
+
01: date (yyyymmddhhmmss) -> Datum des Exports
|
|
127
|
+
02: code_type (Integer, NOT NULL) -> Code-Type. siehe Glossar (CodeType)
|
|
128
|
+
03: code_value (Char, NOT NULL) -> Code-Wert
|
|
129
|
+
04: language (D) -> Sprache
|
|
130
|
+
05: update_type (4) -> Vollständiger Datensatz
|
|
131
|
+
06: code_description (Char) -> Beschreibung
|
|
132
|
+
[...]
|
|
133
|
+
|
|
134
|
+
s12x:
|
|
135
|
+
Primärschlüssel: company_id
|
|
136
|
+
00: table (12) -> Tabellenbezeichnung
|
|
137
|
+
01: date (yyyymmddhhmmss) -> Datum des Exports
|
|
138
|
+
02: company_id (Integer, NOT NULL) -> Primärschlüssel
|
|
139
|
+
03: update_type (4) -> Vollständiger Datensatz
|
|
140
|
+
04: ean13 (Char (13)) -> EAN-13 der Firma
|
|
141
|
+
[...]
|
|
142
|
+
06: company_name (Char, NOT NULL) -> Firmenname
|
|
143
|
+
07: address (Char) -> Strasse, Nr.
|
|
144
|
+
08: country (CH) -> Landescode
|
|
145
|
+
09: plz (Char) -> PLZ
|
|
146
|
+
10: city (Char) -> Ort
|
|
147
|
+
[...]
|
|
148
|
+
12: phone (Char) -> Telefonnr.
|
|
149
|
+
[...]
|
|
150
|
+
14: fax (Char) -> Faxnr.
|
|
151
|
+
15: email (Char) -> Email
|
|
152
|
+
16: url (Char) -> URL der Firmenwebsite
|
|
153
|
+
[...]
|
|
154
|
+
|
|
155
|
+
s16x:
|
|
156
|
+
Primärschlüssel: limitation_id
|
|
157
|
+
00: table (16) -> Tabellenbezeichnung
|
|
158
|
+
01: date (yyyymmddhhmmss) -> Datum des Exports
|
|
159
|
+
02: limitation_id (Integer, NOT NULL) -> Limitations-Id
|
|
160
|
+
[...]
|
|
161
|
+
04: update_type (4) -> Vollständiger Datensatz
|
|
162
|
+
05: limitation_type (COM) -> Kommentar
|
|
163
|
+
[...]
|
|
164
|
+
|
|
165
|
+
s19x:
|
|
166
|
+
Primärschlüssel: oddb_id, company_id
|
|
167
|
+
00: table (19) -> Tabellenbezeichnung
|
|
168
|
+
01: date (yyyymmddhhmmss) -> Datum des Exports
|
|
169
|
+
02: oddb_id (Integer, NOT NULL) -> Fremdschlüssel zu Tabelle 01
|
|
170
|
+
03: company_id (Integer, NOT NULL) -> Fremdschlüssel zu Tabelle 12
|
|
171
|
+
04: company_type (H) -> Registrationsinhaberin
|
|
172
|
+
05: update_type (4) -> Vollständiger Datensatz
|
|
173
|
+
[...]
|
|
174
|
+
|
|
175
|
+
s40x:
|
|
176
|
+
Primärschlüssel: substance_id
|
|
177
|
+
00: table (40) -> Tabellenbezeichnung
|
|
178
|
+
01: date (yyyymmddhhmmss) -> Datum des Exports
|
|
179
|
+
02: substance_id (Integer, NOT NULL) -> Primärschlüssel
|
|
180
|
+
03: language (L) -> Sprache (Latein)
|
|
181
|
+
04: update_type (4) -> Vollständiger Datensatz
|
|
182
|
+
05: substance (Char) -> Substanz
|
|
183
|
+
[...]
|
|
184
|
+
|
|
185
|
+
s41x:
|
|
186
|
+
Primärschlüssel: oddb_id, line_number
|
|
187
|
+
00: table (41) -> Tabellenbezeichnung
|
|
188
|
+
01: date (yyyymmddhhmmss) -> Datum des Exports
|
|
189
|
+
02: oddb_id (Integer, NOT NULL) -> Fremdschlüssel zu Tabelle 01
|
|
190
|
+
03: line_number (Integer, NOT NULL) -> Substanz ist n-ter Wirkstoff einer Packung
|
|
191
|
+
04: update_type (4) -> Vollständiger Datensatz
|
|
192
|
+
05: substance_id (Integer, NOT NULL) -> Fremdschlüssel zu Tabelle 40
|
|
193
|
+
06: quantity (Float) -> Dosis-Anzahl
|
|
194
|
+
07: unit (Char) -> Dosis-Einheit
|
|
195
|
+
08: substance_type (W) -> Wirkstoff
|
|
196
|
+
[...]
|
|
197
|
+
|
|
198
|
+
s99x:
|
|
199
|
+
Primärschlüssel: oddb_id
|
|
200
|
+
00: oddb_id (Integer, NOT NULL) -> Fremdschlüssel zu Tabelle 01
|
|
201
|
+
01: pharmacode (Integer) -> Pharmacode wo vorhanden
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
## Glossar ##
|
|
205
|
+
* AtcCode:
|
|
206
|
+
Anatomisch-Therapeutisch-Chemischer Code der durch die WHO vergeben wird. Hat 5 Ebenen:
|
|
207
|
+
Level 1: C -> Anatomische Gruppierung, z.B. A: Alimentäres System und Stoffwechsel
|
|
208
|
+
Level 2: +NN -> Therapeutische Gruppierung, z.B. A02: Mittel bei Säure bedingten Erkrankungen
|
|
209
|
+
Level 3: +C -> Therapeutische Untergruppe, z.B. A02A: Antacida
|
|
210
|
+
Level 4: +C -> Chemische Gruppierung, z.B. A02AA: Magnesium-haltige Verbindungen
|
|
211
|
+
Level 5: +NN -> Wirkstoff(-Kombination), z.B. A02AA01: Magnesiumcarbonat
|
|
212
|
+
|
|
213
|
+
* PriceType:
|
|
214
|
+
PSL1: Ex-Factory-Preis gemäss SL
|
|
215
|
+
PSL2: Publikums-Preis gemäss SL
|
|
216
|
+
PPUB: Publikums-Preis gemäss Hersteller
|
|
217
|
+
|
|
218
|
+
* CodeType:
|
|
219
|
+
5: Galenische Form
|
|
220
|
+
8: ATC-Code
|
|
221
|
+
|
|
222
|
+
* Version
|
|
223
|
+
Versionsnummern bezeichnen Änderungen nach dem Schema "Major.Minor.Documentation"
|
|
224
|
+
- Major: Komplett neuer Aufbau des Exports
|
|
225
|
+
- Minor: Kleinere Änderungen am Export (z.B. Refactoring von Adressangaben in eine Address2-Klasse)
|
|
226
|
+
- Documentation: Ergänzungen und Änderungen im Datenbeschrieb, die keine Änderung des Exports als Ursache haben.
|
|
227
|
+
Die komplette Version-History ist zu finden unter:
|
|
228
|
+
http://scm.ywesee.com/?p=oddb.org;a=history;f=doc/resources/downloads/datadesc/oddbdat.txt
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
Datenbeschrieb patents.xls
|
|
2
|
+
|
|
3
|
+
Version: 1.0.1
|
|
4
|
+
Geändert: 12.03.2009 (1.0.1) durch hwyss@ywesee.com
|
|
5
|
+
Erstellt: 29.08.2007 (1.0.0) durch hwyss@ywesee.com
|
|
6
|
+
|
|
7
|
+
## Struktur ##
|
|
8
|
+
A: Bezeichnung
|
|
9
|
+
B: Swissmedic-Nummer
|
|
10
|
+
C: Registrierungsdatum Swissmedic
|
|
11
|
+
D: Eidgenössisches Schutz-Zertifikat Nr.
|
|
12
|
+
E: Anmeldedatum
|
|
13
|
+
F: Publikationsdatum
|
|
14
|
+
G: Erteilungsdatum
|
|
15
|
+
H: Schutzdauerbeginn
|
|
16
|
+
I: Ablaufdatum
|
|
17
|
+
J: Löschdatum
|
|
18
|
+
K: Grund-Patent Nr.
|
|
19
|
+
L: Schutzbeginn Grund-Patent
|
|
20
|
+
M: Direktlink
|
|
21
|
+
|
|
22
|
+
## Glossar ##
|
|
23
|
+
* Version
|
|
24
|
+
Versionsnummern bezeichnen Änderungen nach dem Schema "Major.Minor.Documentation"
|
|
25
|
+
- Major: Komplett neuer Aufbau des Exports
|
|
26
|
+
- Minor: Kleinere Änderungen am Export (z.B. Refactoring von Adressangaben in eine Address2-Klasse)
|
|
27
|
+
- Documentation: Ergänzungen und Änderungen im Datenbeschrieb, die keine Änderung des Exports als Ursache haben.
|
|
28
|
+
Die komplette Version-History ist zu finden unter:
|
|
29
|
+
http://scm.ywesee.com/?p=oddb.org;a=history;f=doc/resources/downloads/datadesc/patents.xls.txt
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
Datenbeschrieb patinfo.yaml
|
|
2
|
+
|
|
3
|
+
Version: 1.1.0
|
|
4
|
+
Geändert: 12.03.2009 (1.1.0) durch hwyss@ywesee.com
|
|
5
|
+
Geändert: 30.09.2005 (1.0.2) durch hwyss@ywesee.com
|
|
6
|
+
Geändert: 02.09.2005 (1.0.1) durch hwyss@ywesee.com
|
|
7
|
+
Erstellt: 01.09.2005 (1.0) durch hwyss@ywesee.com
|
|
8
|
+
|
|
9
|
+
## Struktur ##
|
|
10
|
+
Encoding: UTF-8
|
|
11
|
+
|
|
12
|
+
Top-Level:
|
|
13
|
+
- Stream von voneinander unabhängigen YAML-Documents, wovon jedes ein Patinfo beschreibt.
|
|
14
|
+
|
|
15
|
+
Patinfo:
|
|
16
|
+
- oid (Integer, NOT NULL) -> Unique Identifier
|
|
17
|
+
- descriptions (SimpleLanguage::Descriptions (String, PatinfoDocument|PatinfoDocument2001)) -> Sprache, Dokument. siehe Glossar (SimpleLanguage::Descriptions)
|
|
18
|
+
|
|
19
|
+
PatinfoDocument/PatinfoDocument2001:
|
|
20
|
+
- name (String) -> Produktname
|
|
21
|
+
- company (Text::Chapter) -> Kapitel Hersteller
|
|
22
|
+
- galenic_form (Text::Chapter) -> Kapitel Galenische Form
|
|
23
|
+
- effects (Text::Chapter) -> Kapitel Eigenschaften/Verwendungszweck
|
|
24
|
+
- amendments (Text::Chapter) -> Kapitel Ergänzungen
|
|
25
|
+
- contra_indications(Text::Chapter) -> Kapitel Kontraindikationen
|
|
26
|
+
- precautions (Text::Chapter) -> Kapitel Vorsichtsmassnahmen
|
|
27
|
+
- pregnancy (Text::Chapter) -> Kapitel Schwangerschaft/Stillzeit
|
|
28
|
+
- usage (Text::Chapter) -> Kapitel Dosierung/Anwendung
|
|
29
|
+
- unwanted_effects (Text::Chapter) -> Kapitel Unerwünschte Wirkungen
|
|
30
|
+
- general_advice (Text::Chapter) -> Kapitel Allgemeine Hinweise
|
|
31
|
+
- composition (Text::Chapter) -> Kapitel Zusammensetzung
|
|
32
|
+
- packages (Text::Chapter) -> Kapitel Verkaufsart/Packungen
|
|
33
|
+
- distribution (Text::Chapter) -> Kapitel Vertriebsfirma
|
|
34
|
+
- date (Text::Chapter) -> Kapitel Stand der Information
|
|
35
|
+
|
|
36
|
+
Text::Chapter:
|
|
37
|
+
- heading (String) -> Titel
|
|
38
|
+
- sections (Array (Text::Section)) -> Abschnitte
|
|
39
|
+
|
|
40
|
+
Text::Section:
|
|
41
|
+
- subheading (String) -> Abschnitt-Titel
|
|
42
|
+
- paragraphs (Array (Text::Paragraph)) -> Absätze
|
|
43
|
+
|
|
44
|
+
Text::Paragraph:
|
|
45
|
+
- formats (Array (Text::Format)) -> Formatdefinitionen
|
|
46
|
+
- text (String) -> unformatierter Text
|
|
47
|
+
- preformatted (Boolean) -> Wenn ja, sollte whitespace 1:1 übernommen werden.
|
|
48
|
+
|
|
49
|
+
Text::Format:
|
|
50
|
+
- values (Array (Symbol)) -> mögliche Werte: alle Kombinationen von :bold, :italic und :symbol. Wenn Symbol, dann ist der Betreffende Text im Symbol-Font darzustellen.
|
|
51
|
+
- start (Integer NOT NULL) -> 0-N Char-Position innerhalb des Paragraphs an welchem das Format beginnt.
|
|
52
|
+
- end (Integer NOT NULL) -> 1-N, -1. Wenn -1, gilt das Format bis zum Ende des Paragraphs.
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## Glossar ##
|
|
56
|
+
* Hash
|
|
57
|
+
Hash-Table. Unsortierte, indexierte Collection.
|
|
58
|
+
|
|
59
|
+
* SimpleLanguage::Descriptions:
|
|
60
|
+
Subklasse von Hash. Key-Value pairs für Sprache/Text, wobei folgende Werte als Schlüssel vorkommen:
|
|
61
|
+
- de -> Deutsch
|
|
62
|
+
- fr -> Französisch
|
|
63
|
+
- it -> Italienisch
|
|
64
|
+
- en -> Englisch
|
|
65
|
+
- lt -> Latein
|
|
66
|
+
|
|
67
|
+
* PatinfoDocument/PatinfoDocument2001
|
|
68
|
+
Strukturierte Repräsentation einer Patinformation.
|
|
69
|
+
|
|
70
|
+
* YAML
|
|
71
|
+
Yet Another Markup Language. Offener Standard, beschrieben unter http://www.yaml.org
|
|
72
|
+
|
|
73
|
+
* Version
|
|
74
|
+
Versionsnummern bezeichnen Änderungen nach dem Schema "Major.Minor.Documentation"
|
|
75
|
+
- Major: Komplett neuer Aufbau des Exports
|
|
76
|
+
- Minor: Kleinere Änderungen am Export (z.B. Refactoring von Adressangaben in eine Address2-Klasse)
|
|
77
|
+
- Documentation: Ergänzungen und Änderungen im Datenbeschrieb, die keine Änderung des Exports als Ursache haben.
|
|
78
|
+
Die komplette Version-History ist zu finden unter:
|
|
79
|
+
http://scm.ywesee.com/?p=oddb.org;a=history;f=doc/resources/downloads/datadesc/patinfo.yaml.txt
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
Datenbeschrieb price_history.csv
|
|
2
|
+
|
|
3
|
+
Version: 1.1.0
|
|
4
|
+
Geändert: 12.03.2009 (1.1.0) durch hwyss@ywesee.com
|
|
5
|
+
Erstellt: 28.11.2008 (1.0.0) durch hwyss@ywesee.com
|
|
6
|
+
|
|
7
|
+
## Struktur ##
|
|
8
|
+
Encoding: UTF-8
|
|
9
|
+
Record-Separator: \n
|
|
10
|
+
Field-Separator: ;
|
|
11
|
+
|
|
12
|
+
Das Dokument ist zwei-dimensional aufgebaut. Auf der Horizontalen achse liegen
|
|
13
|
+
Daten, an welchen Preis-Änderungen vorkommen, auf der Vertikalen die
|
|
14
|
+
Produkte, für welche die Preis-Änderungen gelten.
|
|
15
|
+
|
|
16
|
+
Produkt-Record:
|
|
17
|
+
00: iksnr (Integer (5)), NOT NULL -> Registrationsnummer der Swissmedic
|
|
18
|
+
01: ikscd (Integer (3)), NOT NULL -> Packungsnummer der Swissmedic
|
|
19
|
+
02: name (*) -> Hauptname der Sequenz aus der Registrationsurkunde.
|
|
20
|
+
03: size (*) -> Packungsgrösse (z.B. 5 x 28 Tabletten)
|
|
21
|
+
04: barcode (Integer (13)), NOT NULL -> Packungs-Barcode, zusammengesetzt aus iksnr und ikscd
|
|
22
|
+
05: pharmacode (Integer) -> Pharmacode, wo vorhanden
|
|
23
|
+
06: out_of_trade (Boolean) -> true, wenn die Packung ausser Handel ist
|
|
24
|
+
> 07: price_history (Price-Point) -> siehe Price-Point
|
|
25
|
+
|
|
26
|
+
Price-Point:
|
|
27
|
+
a: price_exfactory (Float) -> Exfactory-Preis zum Zeitpunkt des Spaltenkopfs
|
|
28
|
+
b: authority (*) -> Kategorisierte Preisherkunft (siehe Glossar: Authority)
|
|
29
|
+
c: origin (String) -> Preisherkunft (Url oder E-Mail-Adresse)
|
|
30
|
+
|
|
31
|
+
## Glossar ##
|
|
32
|
+
* Authority
|
|
33
|
+
- :sl Preis in SL festgelegt.
|
|
34
|
+
- :lppv Preis in LPPV festgelegt.
|
|
35
|
+
- :user Preisempfehlung des Herstellers
|
|
36
|
+
|
|
37
|
+
* Version
|
|
38
|
+
Versionsnummern bezeichnen Änderungen nach dem Schema "Major.Minor.Documentation"
|
|
39
|
+
- Major: Komplett neuer Aufbau des Exports
|
|
40
|
+
- Minor: Kleinere Änderungen am Export (z.B. Refactoring von Adressangaben in eine Address2-Klasse)
|
|
41
|
+
- Documentation: Ergänzungen und Änderungen im Datenbeschrieb, die keine Änderung des Exports als Ursache haben.
|
|
42
|
+
Die komplette Version-History ist zu finden unter:
|
|
43
|
+
http://scm.ywesee.com/?p=oddb.org;a=history;f=doc/resources/downloads/datadesc/price_history.csv.txt
|