oddb2xml 1.6.3 → 1.6.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,16 @@
1
+ language: ruby
2
+
3
+ bundler_args: --without debugger
4
+
5
+ script: bundle exec rake spec
6
+
7
+ rvm:
8
+ - 1.8.7
9
+ - 1.9.3
10
+ - 2.0.0
11
+ notifications:
12
+ email:
13
+ recipients:
14
+ - ngiger@ywesee.com
15
+ - yasaka@ywesee.com
16
+ - zdavatz@ywesee.com
@@ -0,0 +1,117 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ addressable (2.3.5)
5
+ akami (1.2.0)
6
+ gyoku (>= 0.4.0)
7
+ nokogiri (>= 1.4.0)
8
+ archive-tar-minitar (0.5.2)
9
+ builder (3.2.2)
10
+ coderay (1.1.0)
11
+ columnize (0.3.6)
12
+ crack (0.4.1)
13
+ safe_yaml (~> 0.9.0)
14
+ debugger (1.6.3)
15
+ columnize (>= 0.3.1)
16
+ debugger-linecache (~> 1.2.0)
17
+ debugger-ruby_core_source (~> 1.2.4)
18
+ debugger-linecache (1.2.0)
19
+ debugger-ruby_core_source (1.2.4)
20
+ diff-lcs (1.2.5)
21
+ domain_name (0.5.15)
22
+ unf (>= 0.0.5, < 1.0.0)
23
+ ffi (1.9.3-java)
24
+ gyoku (1.1.0)
25
+ builder (>= 2.1.2)
26
+ hoe (3.7.1)
27
+ rake (>= 0.8, < 11.0)
28
+ httpi (2.1.0)
29
+ rack
30
+ rubyntlm (~> 0.3.2)
31
+ json (1.8.1)
32
+ json (1.8.1-java)
33
+ mechanize (2.5.1)
34
+ domain_name (~> 0.5, >= 0.5.1)
35
+ mime-types (~> 1.17, >= 1.17.2)
36
+ net-http-digest_auth (~> 1.1, >= 1.1.1)
37
+ net-http-persistent (~> 2.5, >= 2.5.2)
38
+ nokogiri (~> 1.4)
39
+ ntlm-http (~> 0.1, >= 0.1.1)
40
+ webrobots (~> 0.0, >= 0.0.9)
41
+ method_source (0.8.2)
42
+ mime-types (1.25.1)
43
+ net-http-digest_auth (1.4)
44
+ net-http-persistent (2.9)
45
+ nokogiri (1.5.10)
46
+ nokogiri (1.5.10-java)
47
+ nori (2.3.0)
48
+ ntlm-http (0.1.1)
49
+ pry (0.9.12.4)
50
+ coderay (~> 1.0)
51
+ method_source (~> 0.8)
52
+ slop (~> 3.4)
53
+ pry (0.9.12.4-java)
54
+ coderay (~> 1.0)
55
+ method_source (~> 0.8)
56
+ slop (~> 3.4)
57
+ spoon (~> 0.0)
58
+ pry-debugger (0.2.2)
59
+ debugger (~> 1.3)
60
+ pry (~> 0.9.10)
61
+ rack (1.5.2)
62
+ rake (10.1.0)
63
+ rdoc (4.0.1)
64
+ json (~> 1.4)
65
+ rspec (2.14.1)
66
+ rspec-core (~> 2.14.0)
67
+ rspec-expectations (~> 2.14.0)
68
+ rspec-mocks (~> 2.14.0)
69
+ rspec-core (2.14.7)
70
+ rspec-expectations (2.14.4)
71
+ diff-lcs (>= 1.1.3, < 2.0)
72
+ rspec-mocks (2.14.4)
73
+ ruby-ole (1.2.11.7)
74
+ rubyntlm (0.3.4)
75
+ rubyzip (0.9.9)
76
+ safe_yaml (0.9.7)
77
+ savon (2.3.0)
78
+ akami (~> 1.2.0)
79
+ builder (>= 2.1.2)
80
+ gyoku (~> 1.1.0)
81
+ httpi (~> 2.1.0)
82
+ nokogiri (>= 1.4.0, < 1.6)
83
+ nori (~> 2.3.0)
84
+ wasabi (~> 3.2.0)
85
+ slop (3.4.7)
86
+ spoon (0.0.4)
87
+ ffi
88
+ spreadsheet (0.9.6)
89
+ ruby-ole (>= 1.0)
90
+ unf (0.1.3)
91
+ unf_ext
92
+ unf (0.1.3-java)
93
+ unf_ext (0.0.6)
94
+ wasabi (3.2.0)
95
+ httpi (~> 2.0)
96
+ nokogiri (>= 1.4.0, < 1.6)
97
+ webmock (1.16.0)
98
+ addressable (>= 2.2.7)
99
+ crack (>= 0.3.2)
100
+ webrobots (0.1.1)
101
+
102
+ PLATFORMS
103
+ java
104
+ ruby
105
+
106
+ DEPENDENCIES
107
+ archive-tar-minitar
108
+ hoe (>= 3.4)
109
+ mechanize (~> 2.5.1)
110
+ nokogiri
111
+ pry-debugger
112
+ rdoc
113
+ rspec
114
+ rubyzip (= 0.9.9)
115
+ savon (>= 2.0)
116
+ spreadsheet
117
+ webmock
@@ -1,3 +1,7 @@
1
+ === 1.6.4 / 10.12.2013
2
+
3
+ * Update Manifest.txt
4
+
1
5
  === 1.6.3 / 10.12.2013
2
6
 
3
7
  * Added more specs. Use ean to find price-info if no pharmacode
@@ -1,9 +1,12 @@
1
1
  .gitignore
2
2
  .rspec
3
+ .travis.yml
3
4
  Gemfile
5
+ Gemfile.lock
4
6
  History.txt
5
7
  LICENSE
6
8
  Manifest.txt
9
+ QA.md
7
10
  README.md
8
11
  Rakefile
9
12
  bin/oddb2xml
@@ -13,10 +16,19 @@ lib/oddb2xml/cli.rb
13
16
  lib/oddb2xml/compressor.rb
14
17
  lib/oddb2xml/downloader.rb
15
18
  lib/oddb2xml/extractor.rb
19
+ lib/oddb2xml/util.rb
16
20
  lib/oddb2xml/version.rb
17
21
  spec/builder_spec.rb
18
22
  spec/cli_spec.rb
19
23
  spec/compressor_spec.rb
24
+ spec/data/GL_Diff_SB.xml
25
+ spec/data/Gestrichene_Packungen_Emballages_radies.xls
26
+ spec/data/ItCodes.xml
27
+ spec/data/PR121001.txt
28
+ spec/data/PR121002.txt
29
+ spec/data/Preparation.xml
30
+ spec/data/Preparations.xml
31
+ spec/data/Publications.xls
20
32
  spec/data/XMLPublications.zip
21
33
  spec/data/epha_interactions.csv
22
34
  spec/data/medregbm_betrieb.txt
@@ -45,6 +57,7 @@ spec/data/swissmedic_packages.xls
45
57
  spec/data/wsdl.xml
46
58
  spec/data/wsdl_nonpharma.xml
47
59
  spec/data/wsdl_pharma.xml
60
+ spec/data/zurrose_transfer.dat
48
61
  spec/downloader_spec.rb
49
62
  spec/extractor_spec.rb
50
63
  spec/spec_helper.rb
data/QA.md ADDED
@@ -0,0 +1,28 @@
1
+ # Fragen und Antworten zu oddb2xml
2
+
3
+ ####Wann werden Medikamenten-Stammdaten aktualisiert? (An welchem tag im Monat)
4
+ * Refdata ändert täglich Pharmacodes.
5
+ * SL Preise werden am Anfang des Monats publiziert, jeweils immer am 1. Ganz selten auch am 15.
6
+ * Fachinfos werden täglich publiziert.
7
+ * Swissmedic-Codes erscheinen einmal pro Monat, normalerweise in der ersten Woche.
8
+
9
+ Wer will kann oddb2xml einmal pro Tag laufen lassen für die neusten Pharmacodes.
10
+
11
+ Wir haben einen ganz grossen Vorteil: Bei uns erscheint [QAP?] nicht
12
+ in den Daten weil wir Refdata als Quelle verwenden. ;)
13
+
14
+ ####Haben Sie eine Spezifikation der XML Files? Was steht wo drin? Wenn ich ein XSD selbst generiere, stehen dort ja nicht mehr Informationen als jetzt schon. Ich muss aber wissen in welchem Attribut welcher Wert steht.
15
+
16
+ Nein, das gibt es zur Zeit nicht (kommt ev. noch), die Felder sind
17
+ aber grundsätzlich selbsterklärend.
18
+
19
+ * im article.xml verwenden wird die Bezeichnungen von Refdata.ch
20
+ * im product.xml verwenden wir die Bezeichnungen vom BAG-XML. Produkte die nicht in der SL sind haben dann im product.xml auch keine Bezeichnung.
21
+
22
+ ####Wo finde ich die Mehrwertsteuer?
23
+ * Der Mwst.-Code ist bei allen Produkten bei denen der GTIN mit 7680 (Medi in der SL) beginnt bei 2.5% (reduzierter Satz, Art. 49 MWSTV).
24
+ * Siehe auch: http://www.estv.admin.ch/mwst/themen/00155/#sprungmarke0_4
25
+
26
+ ####Was für eine Nummer findet man im Feld PRODNO?
27
+ * Mit dem Release 1.4.8 finden Sie auch die PRODNO im XML. Die PRODNO setzen wir zusammen aus der 5-stelligen Swissmedic-Nummer und der Swissmedic Sequenz Nummer. Die Squenznummer unterscheidet nicht nach Packungsgrösse. Produkte mit der gleichen Dosierung und der gleichen galenischen Form aber einer unterschiedlicher Packungsgrösse, haben die gleiche PRODNO.
28
+
@@ -0,0 +1,28 @@
1
+ module Oddb2xml
2
+ Backup = "#{Dir.pwd}/data/download"
3
+ @options = {}
4
+
5
+ def Oddb2xml.save_options(options)
6
+ @options = options
7
+ end
8
+
9
+ def Oddb2xml.skip_download(file)
10
+ dest = "#{Backup}/#{File.basename(file)}"
11
+ return false unless @options[:skip_download]
12
+ if File.exists?(dest)
13
+ FileUtils.cp(dest, file, :verbose => false, :preserve => true)
14
+ return true
15
+ end
16
+ false
17
+ end
18
+
19
+ def Oddb2xml.download_finished(file)
20
+ dest = "#{Backup}/#{File.basename(file)}"
21
+ FileUtils.makedirs(Backup)
22
+ FileUtils.cp(file, dest, :verbose => false)
23
+ begin
24
+ File.unlink(file) if File.exists?(file)
25
+ rescue Errno::EACCES # Permission Denied on Windows
26
+ end
27
+ end
28
+ end
@@ -1,3 +1,3 @@
1
1
  module Oddb2xml
2
- VERSION = "1.6.3"
2
+ VERSION = "1.6.4"
3
3
  end
@@ -0,0 +1 @@
1
+
@@ -0,0 +1 @@
1
+
@@ -0,0 +1 @@
1
+
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,225 @@
1
+ <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2
+ <Preparations ReleaseDate="01.12.2013">
3
+ <Preparation ProductCommercial="8620">
4
+ <NameDe>3TC</NameDe>
5
+ <NameFr>3TC</NameFr>
6
+ <NameIt>3TC</NameIt>
7
+ <DescriptionDe>Filmtabl 150 mg </DescriptionDe>
8
+ <DescriptionFr>cpr pell 150 mg </DescriptionFr>
9
+ <DescriptionIt>cpr pell 150 mg </DescriptionIt>
10
+ <AtcCode>J05AF05</AtcCode>
11
+ <SwissmedicNo5>53662</SwissmedicNo5>
12
+ <FlagItLimitation>Y</FlagItLimitation>
13
+ <OrgGenCode>O</OrgGenCode>
14
+ <FlagSB20>N</FlagSB20>
15
+ <CommentDe />
16
+ <CommentFr />
17
+ <CommentIt />
18
+ <VatInEXF>N</VatInEXF>
19
+ <Packs>
20
+ <Pack ProductKey="8620" Pharmacode="1699947" PackId="12442">
21
+ <DescriptionDe>60 Stk</DescriptionDe>
22
+ <DescriptionFr>60 pce</DescriptionFr>
23
+ <DescriptionIt>60 pce</DescriptionIt>
24
+ <SwissmedicCategory>A</SwissmedicCategory>
25
+ <SwissmedicNo8>53662013</SwissmedicNo8>
26
+ <FlagNarcosis>N</FlagNarcosis>
27
+ <FlagModal>Y</FlagModal>
28
+ <BagDossierNo>16577</BagDossierNo>
29
+ <GTIN>7680536620137</GTIN>
30
+ <Limitations />
31
+ <PointLimitations />
32
+ <Prices>
33
+ <ExFactoryPrice>
34
+ <Price>164.55</Price>
35
+ <ValidFromDate>01.10.2011</ValidFromDate>
36
+ <DivisionDescription />
37
+ <PriceTypeCode>PEXF</PriceTypeCode>
38
+ <PriceTypeDescriptionDe>Ex-Factory Preis</PriceTypeDescriptionDe>
39
+ <PriceTypeDescriptionFr>Prix ex-factory</PriceTypeDescriptionFr>
40
+ <PriceTypeDescriptionIt>Prix ex-factory</PriceTypeDescriptionIt>
41
+ <PriceChangeTypeCode>FREIWILLIGEPS</PriceChangeTypeCode>
42
+ <PriceChangeTypeDescriptionDe>Freiwillige Preissenkung</PriceChangeTypeDescriptionDe>
43
+ <PriceChangeTypeDescriptionFr>Baissement de prix volontairement</PriceChangeTypeDescriptionFr>
44
+ <PriceChangeTypeDescriptionIt>Baissement de prix volontairement</PriceChangeTypeDescriptionIt>
45
+ </ExFactoryPrice>
46
+ <PublicPrice>
47
+ <Price>205.3</Price>
48
+ <ValidFromDate>01.10.2011</ValidFromDate>
49
+ <DivisionDescription />
50
+ <PriceTypeCode>PPUB</PriceTypeCode>
51
+ <PriceTypeDescriptionDe>Publikumspreis</PriceTypeDescriptionDe>
52
+ <PriceTypeDescriptionFr>Prix public</PriceTypeDescriptionFr>
53
+ <PriceTypeDescriptionIt>Prix public</PriceTypeDescriptionIt>
54
+ <PriceChangeTypeCode>FREIWILLIGEPS</PriceChangeTypeCode>
55
+ <PriceChangeTypeDescriptionDe>Freiwillige Preissenkung</PriceChangeTypeDescriptionDe>
56
+ <PriceChangeTypeDescriptionFr>Baissement de prix volontairement</PriceChangeTypeDescriptionFr>
57
+ <PriceChangeTypeDescriptionIt>Baissement de prix volontairement</PriceChangeTypeDescriptionIt>
58
+ </PublicPrice>
59
+ </Prices>
60
+ <Partners>
61
+ <Partner>
62
+ <PartnerType>V</PartnerType>
63
+ <Description>ViiV Healthcare GmbH</Description>
64
+ <Street>Talstrasse 3-5</Street>
65
+ <ZipCode>3053</ZipCode>
66
+ <Place>Münchenbuchsee</Place>
67
+ <Phone>+41315607670</Phone>
68
+ </Partner>
69
+ </Partners>
70
+ <Status>
71
+ <IntegrationDate>15.03.1996</IntegrationDate>
72
+ <ValidFromDate>15.03.1996</ValidFromDate>
73
+ <ValidThruDate>31.12.9999</ValidThruDate>
74
+ <StatusTypeCodeSl>0</StatusTypeCodeSl>
75
+ <StatusTypeDescriptionSl>Initialzustand</StatusTypeDescriptionSl>
76
+ <FlagApd>N</FlagApd>
77
+ </Status>
78
+ </Pack>
79
+ </Packs>
80
+ <Substances>
81
+ <Substance>
82
+ <DescriptionLa>Lamivudinum</DescriptionLa>
83
+ <Quantity>150</Quantity>
84
+ <QuantityUnit>mg</QuantityUnit>
85
+ </Substance>
86
+ </Substances>
87
+ <Limitations />
88
+ <ItCodes>
89
+ <ItCode Code="08.">
90
+ <DescriptionDe>INFEKTIONSKRANKHEITEN</DescriptionDe>
91
+ <DescriptionFr>MALADIES INFECTIEUSES</DescriptionFr>
92
+ <DescriptionIt>MALADIES INFECTIEUSES</DescriptionIt>
93
+ <Limitations />
94
+ </ItCode>
95
+ <ItCode Code="08.03.">
96
+ <DescriptionDe>Mittel gegen Viren</DescriptionDe>
97
+ <DescriptionFr>Préparations antivirales</DescriptionFr>
98
+ <DescriptionIt>Préparations antivirales</DescriptionIt>
99
+ <Limitations />
100
+ </ItCode>
101
+ </ItCodes>
102
+ <Status>
103
+ <IntegrationDate>15.03.1996</IntegrationDate>
104
+ <ValidFromDate>15.03.1996</ValidFromDate>
105
+ <ValidThruDate>31.12.9999</ValidThruDate>
106
+ <StatusTypeCodeSl>0</StatusTypeCodeSl>
107
+ <StatusTypeDescriptionSl>Initialzustand</StatusTypeDescriptionSl>
108
+ <FlagApd>N</FlagApd>
109
+ </Status>
110
+ </Preparation>
111
+  <Preparation ProductCommercial="26257">
112
+ <NameDe>Levetiracetam DESITIN</NameDe>
113
+ <NameFr>Levetiracetam DESITIN</NameFr>
114
+ <NameIt>Levetiracetam DESITIN</NameIt>
115
+ <DescriptionDe>Filmtabl 250 mg </DescriptionDe>
116
+ <DescriptionFr>cpr pell 250 mg </DescriptionFr>
117
+ <DescriptionIt>cpr pell 250 mg </DescriptionIt>
118
+ <AtcCode>N03AX14</AtcCode>
119
+ <SwissmedicNo5>62069</SwissmedicNo5>
120
+ <FlagItLimitation>Y</FlagItLimitation>
121
+ <OrgGenCode />
122
+ <FlagSB20>N</FlagSB20>
123
+ <CommentDe />
124
+ <CommentFr />
125
+ <CommentIt />
126
+ <VatInEXF>N</VatInEXF>
127
+ <Packs>
128
+ <Pack ProductKey="26257" PackId="32894">
129
+ <DescriptionDe>30 Stk</DescriptionDe>
130
+ <DescriptionFr>30 pce</DescriptionFr>
131
+ <DescriptionIt>30 pce</DescriptionIt>
132
+ <SwissmedicCategory>B</SwissmedicCategory>
133
+ <SwissmedicNo8>62069008</SwissmedicNo8>
134
+ <FlagNarcosis>N</FlagNarcosis>
135
+ <FlagModal>Y</FlagModal>
136
+ <BagDossierNo>19417</BagDossierNo>
137
+ <GTIN>7680620690084</GTIN>
138
+ <Limitations />
139
+ <PointLimitations />
140
+ <Prices>
141
+ <ExFactoryPrice>
142
+ <Price>13.49</Price>
143
+ <ValidFromDate>01.09.2013</ValidFromDate>
144
+ <DivisionDescription />
145
+ <PriceTypeCode>PEXF</PriceTypeCode>
146
+ <PriceTypeDescriptionDe>Ex-Factory Preis</PriceTypeDescriptionDe>
147
+ <PriceTypeDescriptionFr>Prix ex-factory</PriceTypeDescriptionFr>
148
+ <PriceTypeDescriptionIt>Prix ex-factory</PriceTypeDescriptionIt>
149
+ <PriceChangeTypeCode>FREIWILLIGEPS</PriceChangeTypeCode>
150
+ <PriceChangeTypeDescriptionDe>Freiwillige Preissenkung</PriceChangeTypeDescriptionDe>
151
+ <PriceChangeTypeDescriptionFr>Baissement de prix volontairement</PriceChangeTypeDescriptionFr>
152
+ <PriceChangeTypeDescriptionIt>Baissement de prix volontairement</PriceChangeTypeDescriptionIt>
153
+ </ExFactoryPrice>
154
+ <PublicPrice>
155
+ <Price>27.8</Price>
156
+ <ValidFromDate>01.09.2013</ValidFromDate>
157
+ <DivisionDescription />
158
+ <PriceTypeCode>PPUB</PriceTypeCode>
159
+ <PriceTypeDescriptionDe>Publikumspreis</PriceTypeDescriptionDe>
160
+ <PriceTypeDescriptionFr>Prix public</PriceTypeDescriptionFr>
161
+ <PriceTypeDescriptionIt>Prix public</PriceTypeDescriptionIt>
162
+ <PriceChangeTypeCode>FREIWILLIGEPS</PriceChangeTypeCode>
163
+ <PriceChangeTypeDescriptionDe>Freiwillige Preissenkung</PriceChangeTypeDescriptionDe>
164
+ <PriceChangeTypeDescriptionFr>Baissement de prix volontairement</PriceChangeTypeDescriptionFr>
165
+ <PriceChangeTypeDescriptionIt>Baissement de prix volontairement</PriceChangeTypeDescriptionIt>
166
+ </PublicPrice>
167
+ </Prices>
168
+ <Partners>
169
+ <Partner>
170
+ <PartnerType>V</PartnerType>
171
+ <Description>Desitin Pharma GmbH</Description>
172
+ <Street>Hammerstrasse 47</Street>
173
+ <ZipCode>4410</ZipCode>
174
+ <Place>Liestal</Place>
175
+ <Phone>+41619266010</Phone>
176
+ </Partner>
177
+ </Partners>
178
+ <Status>
179
+ <IntegrationDate>01.05.2011</IntegrationDate>
180
+ <ValidFromDate>01.05.2011</ValidFromDate>
181
+ <ValidThruDate>31.12.9999</ValidThruDate>
182
+ <StatusTypeCodeSl>0</StatusTypeCodeSl>
183
+ <StatusTypeDescriptionSl>Initialzustand</StatusTypeDescriptionSl>
184
+ <FlagApd>N</FlagApd>
185
+ </Status>
186
+ </Pack>
187
+ </Packs>
188
+ <Substances>
189
+ <Substance>
190
+ <DescriptionLa>Levetiracetamum</DescriptionLa>
191
+ <Quantity>250</Quantity>
192
+ <QuantityUnit>mg</QuantityUnit>
193
+ </Substance>
194
+ </Substances>
195
+ <Limitations />
196
+ <ItCodes>
197
+ <ItCode Code="01.">
198
+ <DescriptionDe>NERVENSYSTEM</DescriptionDe>
199
+ <DescriptionFr>SYSTEME NERVEUX</DescriptionFr>
200
+ <DescriptionIt>SYSTEME NERVEUX</DescriptionIt>
201
+ <Limitations />
202
+ </ItCode>
203
+ <ItCode Code="01.07.">
204
+ <DescriptionDe>Antiepileptica</DescriptionDe>
205
+ <DescriptionFr>Antiepileptica</DescriptionFr>
206
+ <DescriptionIt>Antiepileptica</DescriptionIt>
207
+ <Limitations />
208
+ </ItCode>
209
+ <ItCode Code="01.07.10.">
210
+ <DescriptionDe>Einfache Antiepileptica</DescriptionDe>
211
+ <DescriptionFr>Antiépileptiques simples</DescriptionFr>
212
+ <DescriptionIt>Antiépileptiques simples</DescriptionIt>
213
+ <Limitations />
214
+ </ItCode>
215
+ </ItCodes>
216
+ <Status>
217
+ <IntegrationDate>01.05.2011</IntegrationDate>
218
+ <ValidFromDate>01.05.2011</ValidFromDate>
219
+ <ValidThruDate>31.12.9999</ValidThruDate>
220
+ <StatusTypeCodeSl>0</StatusTypeCodeSl>
221
+ <StatusTypeDescriptionSl>Initialzustand</StatusTypeDescriptionSl>
222
+ <FlagApd>N</FlagApd>
223
+ </Status>
224
+ </Preparation>
225
+ </Preparations>
@@ -0,0 +1,99 @@
1
+ <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2
+ <Preparations ReleaseDate="15.10.2012">
3
+ <Preparation ProductCommercial="00001">
4
+ <NameDe>Foo</NameDe>
5
+ <NameFr>Foo</NameFr>
6
+ <NameIt>Foo</NameIt>
7
+ <DescriptionDe>Foo 100 mg </DescriptionDe>
8
+ <DescriptionFr>Foo 100 mg </DescriptionFr>
9
+ <DescriptionIt>Foo 100 mg </DescriptionIt>
10
+ <AtcCode>A00AA00</AtcCode>
11
+ <SwissmedicNo5>00001</SwissmedicNo5>
12
+ <FlagItLimitation>Y</FlagItLimitation>
13
+ <OrgGenCode>O</OrgGenCode>
14
+ <FlagSB20>N</FlagSB20>
15
+ <CommentDe />
16
+ <CommentFr />
17
+ <CommentIt />
18
+ <VatInEXF>N</VatInEXF>
19
+ <Packs>
20
+ <Pack Pharmacode="0000001" PackId="00001" ProductKey="00001">
21
+ <DescriptionDe>10 Stk</DescriptionDe>
22
+ <DescriptionFr>10 pce</DescriptionFr>
23
+ <DescriptionIt>10 pce</DescriptionIt>
24
+ <SwissmedicCategory>A</SwissmedicCategory>
25
+ <SwissmedicNo8>00000001</SwissmedicNo8>
26
+ <FlagNarcosis>N</FlagNarcosis>
27
+ <FlagModal>Y</FlagModal>
28
+ <BagDossierNo>00001</BagDossierNo>
29
+ <Limitations />
30
+ <PointLimitations />
31
+ <Prices>
32
+ <ExFactoryPrice>
33
+ <Price>100.50</Price>
34
+ <ValidFromDate>01.10.2012</ValidFromDate>
35
+ <Division />
36
+ <DivisionPriveIncVat />
37
+ <DivisionDescription />
38
+ <PriceTypeCode>PEXF</PriceTypeCode>
39
+ <PriceTypeDescriptionDe>Ex-Factory Preis</PriceTypeDescriptionDe>
40
+ <PriceTypeDescriptionFr>Prix ex-factory</PriceTypeDescriptionFr>
41
+ <PriceTypeDescriptionIt>Prix ex-factory</PriceTypeDescriptionIt>
42
+ <PriceChangeTypeCode>Baz</PriceChangeTypeCode>
43
+ <PriceChangeTypeDescriptionDe>Bar</PriceChangeTypeDescriptionDe>
44
+ <PriceChangeTypeDescriptionFr>Bar</PriceChangeTypeDescriptionFr>
45
+ <PriceChangeTypeDescriptionIt>Bar</PriceChangeTypeDescriptionIt>
46
+ </ExFactoryPrice>
47
+ </Prices>
48
+ <Partners>
49
+ <Partner>
50
+ <PartnerType>V</PartnerType>
51
+ <Description>Foo GmbH</Description>
52
+ <Street>Foo strasse 1</Street>
53
+ <ZipCode>0001</ZipCode>
54
+ <Place>Baz</Place>
55
+ <Phone>00-00-00</Phone>
56
+ </Partner>
57
+ </Partners>
58
+ <Status>
59
+ <IntegrationDate>31.03.2000</IntegrationDate>
60
+ <ValidFromDate>31.03.2000</ValidFromDate>
61
+ <ValidThruDate>31.12.9999</ValidThruDate>
62
+ <StatusTypeCodeSl>0</StatusTypeCodeSl>
63
+ <StatusTypeDescriptionSl>Bar</StatusTypeDescriptionSl>
64
+ <FlagApd>N</FlagApd>
65
+ </Status>
66
+ </Pack>
67
+ </Packs>
68
+ <Substances>
69
+ <Substance>
70
+ <DescriptionLa>Bar</DescriptionLa>
71
+ <Quantity>100</Quantity>
72
+ <QuantityUnit>mg</QuantityUnit>
73
+ </Substance>
74
+ </Substances>
75
+ <Limitations />
76
+ <ItCodes>
77
+ <ItCode Code="01.">
78
+ <DescriptionDe>BAR</DescriptionDe>
79
+ <DescriptionFr>BAR</DescriptionFr>
80
+ <DescriptionIt>BAR</DescriptionIt>
81
+ <Limitations />
82
+ </ItCode>
83
+ <ItCode Code="01.01.">
84
+ <DescriptionDe>BAZ</DescriptionDe>
85
+ <DescriptionFr>BAZ</DescriptionFr>
86
+ <DescriptionIt>BAZ</DescriptionIt>
87
+ <Limitations />
88
+ </ItCode>
89
+ </ItCodes>
90
+ <Status>
91
+ <IntegrationDate>31.03.2000</IntegrationDate>
92
+ <ValidFromDate>31.03.2000</ValidFromDate>
93
+ <ValidThruDate>31.12.9999</ValidThruDate>
94
+ <StatusTypeCodeSl>0</StatusTypeCodeSl>
95
+ <StatusTypeDescriptionSl>Bar</StatusTypeDescriptionSl>
96
+ <FlagApd>N</FlagApd>
97
+ </Status>
98
+ </Preparation>
99
+ </Preparations>
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,10 @@
1
+ 1120020209ERYTRHOCIN I.V. Trockensub Fl 1g 001518002010300B080160000000000000002
2
+ 1120020244FERRO-GRADUMET Depottabl 30 Stk 000895001090300C060710076803164401152
3
+ 1120020273KENDURAL Depottabl 30 Stk 000492000840100C060710076803536601632
4
+ 1130020646SELSUN Shampoo Susp 60 ml 000911001650300D100400076801723304142
5
+ 1120020652SELSUN Shampoo Susp 120 ml 001576002520300D100400076801723306812
6
+ 1130021806EAU PRECIEUSE D?pensier L?s 375 ml 001220001870300D100600000000000000002
7
+ 1130021976DIOPARINE Gtt Opht 7500 E 5 ml 0007380013400000000000000000000000002
8
+ 1130023722LANSOYL Gel 225 g 000985001520200D040811076803247501902
9
+ 1130027447ARTHROSENEX2519120 Salbe 100 g 0012930024300000000000000000000000002
10
+ 1130028470COMPLAMIN RETARD Tabl 500 mg 60 Stk 001817003110300C020430000000000000002
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oddb2xml
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.3
4
+ version: 1.6.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -108,23 +108,23 @@ dependencies:
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
110
  - !ruby/object:Gem::Dependency
111
- name: rdoc
111
+ name: rspec
112
112
  requirement: !ruby/object:Gem::Requirement
113
113
  none: false
114
114
  requirements:
115
- - - ~>
115
+ - - ! '>='
116
116
  - !ruby/object:Gem::Version
117
- version: '4.0'
117
+ version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  none: false
122
122
  requirements:
123
- - - ~>
123
+ - - ! '>='
124
124
  - !ruby/object:Gem::Version
125
- version: '4.0'
125
+ version: '0'
126
126
  - !ruby/object:Gem::Dependency
127
- name: rspec
127
+ name: webmock
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
@@ -140,7 +140,23 @@ dependencies:
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
142
  - !ruby/object:Gem::Dependency
143
- name: webmock
143
+ name: hoe
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '3.4'
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '3.4'
158
+ - !ruby/object:Gem::Dependency
159
+ name: rdoc
144
160
  requirement: !ruby/object:Gem::Requirement
145
161
  none: false
146
162
  requirements:
@@ -155,22 +171,38 @@ dependencies:
155
171
  - - ! '>='
156
172
  - !ruby/object:Gem::Version
157
173
  version: '0'
174
+ - !ruby/object:Gem::Dependency
175
+ name: rdoc
176
+ requirement: !ruby/object:Gem::Requirement
177
+ none: false
178
+ requirements:
179
+ - - ~>
180
+ - !ruby/object:Gem::Version
181
+ version: '3.10'
182
+ type: :development
183
+ prerelease: false
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ~>
188
+ - !ruby/object:Gem::Version
189
+ version: '3.10'
158
190
  - !ruby/object:Gem::Dependency
159
191
  name: hoe
160
192
  requirement: !ruby/object:Gem::Requirement
161
193
  none: false
162
194
  requirements:
163
- - - ! '>='
195
+ - - ~>
164
196
  - !ruby/object:Gem::Version
165
- version: '3.4'
197
+ version: '2.13'
166
198
  type: :development
167
199
  prerelease: false
168
200
  version_requirements: !ruby/object:Gem::Requirement
169
201
  none: false
170
202
  requirements:
171
- - - ! '>='
203
+ - - ~>
172
204
  - !ruby/object:Gem::Version
173
- version: '3.4'
205
+ version: '2.13'
174
206
  description: oddb2xml creates xml files using swissINDEX, BAG-XML and Swissmedic.
175
207
  email: yasaka@ywesee.com, zdavatz@ywesee.com
176
208
  executables:
@@ -179,14 +211,16 @@ extensions: []
179
211
  extra_rdoc_files:
180
212
  - History.txt
181
213
  - Manifest.txt
182
- - README.md
183
214
  files:
184
215
  - .gitignore
185
216
  - .rspec
217
+ - .travis.yml
186
218
  - Gemfile
219
+ - Gemfile.lock
187
220
  - History.txt
188
221
  - LICENSE
189
222
  - Manifest.txt
223
+ - QA.md
190
224
  - README.md
191
225
  - Rakefile
192
226
  - bin/oddb2xml
@@ -196,10 +230,19 @@ files:
196
230
  - lib/oddb2xml/compressor.rb
197
231
  - lib/oddb2xml/downloader.rb
198
232
  - lib/oddb2xml/extractor.rb
233
+ - lib/oddb2xml/util.rb
199
234
  - lib/oddb2xml/version.rb
200
235
  - spec/builder_spec.rb
201
236
  - spec/cli_spec.rb
202
237
  - spec/compressor_spec.rb
238
+ - spec/data/GL_Diff_SB.xml
239
+ - spec/data/Gestrichene_Packungen_Emballages_radies.xls
240
+ - spec/data/ItCodes.xml
241
+ - spec/data/PR121001.txt
242
+ - spec/data/PR121002.txt
243
+ - spec/data/Preparation.xml
244
+ - spec/data/Preparations.xml
245
+ - spec/data/Publications.xls
203
246
  - spec/data/XMLPublications.zip
204
247
  - spec/data/epha_interactions.csv
205
248
  - spec/data/medregbm_betrieb.txt
@@ -228,6 +271,7 @@ files:
228
271
  - spec/data/wsdl.xml
229
272
  - spec/data/wsdl_nonpharma.xml
230
273
  - spec/data/wsdl_pharma.xml
274
+ - spec/data/zurrose_transfer.dat
231
275
  - spec/downloader_spec.rb
232
276
  - spec/extractor_spec.rb
233
277
  - spec/spec_helper.rb
@@ -235,12 +279,12 @@ files:
235
279
  - tools/set.bat
236
280
  - tools/win_fetch_cacerts.rb
237
281
  - .gemtest
238
- homepage: https://github.com/zdavatz/oddb2xml
282
+ homepage:
239
283
  licenses: []
240
284
  post_install_message:
241
285
  rdoc_options:
242
286
  - --main
243
- - README.md
287
+ - README.txt
244
288
  require_paths:
245
289
  - lib
246
290
  required_ruby_version: !ruby/object:Gem::Requirement