oddb2xml 2.6.6 → 2.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/spec/cli_spec.rb CHANGED
@@ -184,6 +184,32 @@ describe Oddb2xml::Cli do
184
184
  }
185
185
  end
186
186
  end
187
+ context 'when -e and -f dat option is given' do
188
+ before(:all) do
189
+ cleanup_directories_before_run
190
+ options = Oddb2xml::Options.parse('-e -f dat')
191
+ @cli = Oddb2xml::Cli.new(options)
192
+ @cli_output = buildr_capture(:stdout) { @cli.run }
193
+ end
194
+ it_behaves_like 'any interface for product'
195
+ it 'should have calc option' do
196
+ expect(@cli).to have_option(:format => :dat)
197
+ expect(@cli).to have_option(:calc => true)
198
+ expect(@cli).to have_option(:extended => true)
199
+ end
200
+ it 'should create xml files' do
201
+ expect(@cli_output).to match(/NonPharma/)
202
+ file_today = "oddb_calc_#{Time.now.strftime("%d.%m.%Y_%H.%M")}.xml"
203
+ expect(Dir.glob(File.join(Oddb2xml::WorkDir, 'oddb_calc.xml')).size).to eq 1
204
+ expect(Dir.glob(File.join(Oddb2xml::WorkDir, file_today)).size).to eq 1
205
+ end
206
+ it 'should create migel files' do
207
+ expect(@cli_output).to match(/NonPharma/)
208
+ file_today = "oddb_with_migel_#{Time.now.strftime("%d.%m.%Y_%H.%M")}.dat"
209
+ expect(Dir.glob(File.join(Oddb2xml::WorkDir, 'oddb_with_migel.dat')).size).to eq 1
210
+ expect(Dir.glob(File.join(Oddb2xml::WorkDir, file_today)).size).to eq 1
211
+ end
212
+ end
187
213
 
188
214
  context 'when -a nonpharma option is given' do
189
215
  before(:all) do
@@ -1,5 +1,141 @@
1
1
  <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2
2
  <Preparations ReleaseDate="01.12.2013">
3
+ <Preparation ProductCommercial="9801">
4
+ <NameDe>Varilrix</NameDe>
5
+ <NameFr>Varilrix</NameFr>
6
+ <NameIt>Varilrix</NameIt>
7
+ <DescriptionDe>Trockensub c solv</DescriptionDe>
8
+ <DescriptionFr>subst sèche c solv </DescriptionFr>
9
+ <DescriptionIt>sost secca c solv </DescriptionIt>
10
+ <AtcCode>J07BK01</AtcCode>
11
+ <SwissmedicNo5>585</SwissmedicNo5>
12
+ <FlagItLimitation>Y</FlagItLimitation>
13
+ <OrgGenCode />
14
+ <FlagSB20>N</FlagSB20>
15
+ <CommentDe />
16
+ <CommentFr />
17
+ <CommentIt />
18
+ <VatInEXF>N</VatInEXF>
19
+ <Packs>
20
+ <Pack ProductKey="9801" PackId="14418">
21
+ <DescriptionDe>Fertspr 0.500 ml</DescriptionDe>
22
+ <DescriptionFr>ser prê 0.500 ml</DescriptionFr>
23
+ <DescriptionIt>sir preriempita 0.500 ml</DescriptionIt>
24
+ <SwissmedicCategory>B</SwissmedicCategory>
25
+ <SwissmedicNo8>585001</SwissmedicNo8>
26
+ <FlagNarcosis>N</FlagNarcosis>
27
+ <FlagModal />
28
+ <BagDossierNo>18076</BagDossierNo>
29
+ <GTIN>7680005850010</GTIN>
30
+ <SizePack />
31
+ <PrevPharmacode />
32
+ <Limitations />
33
+ <PointLimitations />
34
+ <Prices>
35
+ <ExFactoryPrice>
36
+ <Price>43.64</Price>
37
+ <ValidFromDate>01.12.2019</ValidFromDate>
38
+ <DivisionDescription />
39
+ <PriceTypeCode>PEXF</PriceTypeCode>
40
+ <PriceTypeDescriptionDe>Ex-Factory Preis</PriceTypeDescriptionDe>
41
+ <PriceTypeDescriptionFr>Prix ex-factory</PriceTypeDescriptionFr>
42
+ <PriceTypeDescriptionIt>Prix ex-factory</PriceTypeDescriptionIt>
43
+ <PriceChangeTypeCode>3JUEBERPRUEF</PriceChangeTypeCode>
44
+ <PriceChangeTypeDescriptionDe>Preisänderung nach 3-jährlicher Überprüfung der Aufnahmebedingungen</PriceChangeTypeDescriptionDe>
45
+ <PriceChangeTypeDescriptionFr>Réduction de prix à cause du réexamen des conditions d’admission tous les trois ans</PriceChangeTypeDescriptionFr>
46
+ <PriceChangeTypeDescriptionIt>Preisänderung nach 3-jährlicher Überprüfung der Aufnahmebedingungen</PriceChangeTypeDescriptionIt>
47
+ </ExFactoryPrice>
48
+ <PublicPrice>
49
+ <Price>66.5</Price>
50
+ <ValidFromDate>01.12.2019</ValidFromDate>
51
+ <DivisionDescription />
52
+ <PriceTypeCode>PPUB</PriceTypeCode>
53
+ <PriceTypeDescriptionDe>Publikumspreis</PriceTypeDescriptionDe>
54
+ <PriceTypeDescriptionFr>Prix public</PriceTypeDescriptionFr>
55
+ <PriceTypeDescriptionIt>Prix public</PriceTypeDescriptionIt>
56
+ <PriceChangeTypeCode>3JUEBERPRUEF</PriceChangeTypeCode>
57
+ <PriceChangeTypeDescriptionDe>Preisänderung nach 3-jährlicher Überprüfung der Aufnahmebedingungen</PriceChangeTypeDescriptionDe>
58
+ <PriceChangeTypeDescriptionFr>Réduction de prix à cause du réexamen des conditions d’admission tous les trois ans</PriceChangeTypeDescriptionFr>
59
+ <PriceChangeTypeDescriptionIt>Preisänderung nach 3-jährlicher Überprüfung der Aufnahmebedingungen</PriceChangeTypeDescriptionIt>
60
+ </PublicPrice>
61
+ </Prices>
62
+ <Partners>
63
+ <Partner>
64
+ <PartnerType>V</PartnerType>
65
+ <Description>GlaxoSmithKline AG</Description>
66
+ <Street>Talstrasse 3-5</Street>
67
+ <ZipCode>3053</ZipCode>
68
+ <Place>Münchenbuchsee</Place>
69
+ <Phone>+41318622111</Phone>
70
+ </Partner>
71
+ </Partners>
72
+ <Status>
73
+ <IntegrationDate>01.01.2005</IntegrationDate>
74
+ <ValidFromDate>01.01.2005</ValidFromDate>
75
+ <ValidThruDate>31.12.9999</ValidThruDate>
76
+ <StatusTypeCodeSl>0</StatusTypeCodeSl>
77
+ <StatusTypeDescriptionSl>Initialzustand</StatusTypeDescriptionSl>
78
+ <FlagApd>N</FlagApd>
79
+ </Status>
80
+ </Pack>
81
+ </Packs>
82
+ <Substances>
83
+ <Substance>
84
+ <DescriptionLa>Vaccinum virus varicellae vivus attenuat. (Stamm OKA)</DescriptionLa>
85
+ <Quantity>10^3.3</Quantity>
86
+ <QuantityUnit>U</QuantityUnit>
87
+ </Substance>
88
+ </Substances>
89
+ <Limitations />
90
+ <ItCodes>
91
+ <ItCode Code="08.">
92
+ <DescriptionDe>INFEKTIONSKRANKHEITEN</DescriptionDe>
93
+ <DescriptionFr>MALADIES INFECTIEUSES</DescriptionFr>
94
+ <DescriptionIt>MALATTIE INFETTIVE </DescriptionIt>
95
+ <Limitations />
96
+ </ItCode>
97
+ <ItCode Code="08.08.">
98
+ <DescriptionDe>Impfstoffe</DescriptionDe>
99
+ <DescriptionFr>Vaccins</DescriptionFr>
100
+ <DescriptionIt>Vaccini </DescriptionIt>
101
+ <Limitations>
102
+ <Limitation>
103
+ <LimitationCode>0808</LimitationCode>
104
+ <LimitationType>KOM</LimitationType>
105
+ <LimitationNiveau>I</LimitationNiveau>
106
+ <DescriptionDe>Die Kostenübernahme der Impfstoffe als Teil einer präventiven Massnahme im Rahmen der obligatorischen Krankenpflegeversicherung richtet sich nach den in Artikel 12a KLV für die jeweiligen Impfungen abschliessend festgelegten Voraussetzungen. Bei beruflicher und reisemedizinischer Indikation erfolgt keine Kostenübernahme durch die obligatorische Krankenpflegeversicherung.&lt;br&gt;
107
+ Die Preise der Impfstoffe sind Höchstpreise (Art. 52 Abs. 3 KVG) und kommen bei Reihenimpfungen (z.B. im schulärztlichen Dienst) nicht zur Anwendung. In diesen Fällen gelten die von den Krankenversicherern mit den zuständigen Behörden ausgehandelten bzw. die allenfalls von den Behörden festgesetzten Tarife. Wenn der Impfstoff zu einem günstigeren Preis bezogen wird (z.B. im Rahmen von Reihenimpfungen), darf der Arzt oder die Ärztin nicht den Publikumspreis der SL verrechnen. Die Vergünstigung muss gemäss Artikel 56 Absatz 3 KVG weitergegeben werden.&lt;br&gt;
108
+ &lt;br&gt;
109
+ Die Vergünstigung muss gemäss Artikel 56 Absatz 3 KVG weitergegeben werden, ausser es bestehen Vereinbarungen nach Artikel 56 Absatz 3bis KVG.&lt;br&gt;
110
+ &lt;br&gt;
111
+ </DescriptionDe>
112
+ <DescriptionFr>La prise en charge des coûts des vaccins au titre de mesure préventive dans le cadre de l'assurance maladie obligatoire des soins est régie par les conditions contraignantes fixées à l'article 12a OPAS pour les vaccinations correspondantes. En cas d'indication professionnelle et de recommandation médicale aux voyageurs, la vaccination n'est pas prise en charge par l'assurance maladie obligatoire des soins. Les prix des vaccins sont des prix maximaux (art. 52, al. 3, LAMal) et ne s'appliquent pas aux vaccinations en série (par ex. dans le service médical scolaire). Dans ce cas, les tarifs négociés par les assureurs maladie avec les autorités compétentes ou, le cas échéant, ceux fixés par les autorités, sont applicables. Si le vaccin est acheté à un prix inférieur (par exemple dans le cadre d'une série de vaccinations), le médecin ne peut pas le facturer au prix public de la LS. L'avantage doit être répercuté conformément à l'article 56, al. 3, LAMal.&lt;br&gt;
113
+ &lt;br&gt;
114
+ L'avantage doit être répercuté conformément à l'article 56, al. 3, LAMal, hormis si des conventions au sens de l'art. 56, al. 3bis, LAMal, ont été conclues.&lt;br&gt;
115
+ &lt;br&gt;
116
+
117
+ </DescriptionFr>
118
+ <DescriptionIt>L’assunzione dei costi dei vaccini, in quanto misura di prevenzione parziale nel quadro dell’assicurazione obbligatoria delle cure medico-sanitarie, è disciplinata in modo esauriente dalle condizioni fissate per i vaccini interessati nell’articolo 12a OPre. In caso di indicazione professionale e di medicina di viaggio, l’assicurazione obbligatoria delle cure medico-sanitarie non ne assume i costi.&lt;br&gt;
119
+ I prezzi dei vaccini sono prezzi massimi (art. 52 cpv. 3 LAMal) e non si applicano alle vaccinazioni in serie (ad. es. quelle effettuate nell’ambito del servizio medico scolastico). In questi casi sono applicabili le tariffe negoziate dagli assicuratori malattie con le autorità competenti o quelle eventualmente stabilite dalle autorità. Se il vaccino è acquistato a un prezzo più conveniente (p. es. nel quadro di vaccinazioni in serie), il medico non può fatturare il prezzo per il pubblico che figura nell’ES. Lo sconto deve essere fatto usufruire al debitore secondo l’articolo 56 capoverso 3 LAMal.&lt;br&gt;
120
+ &lt;br&gt;
121
+ Lo sconto deve essere fatto usufruire al debitore secondo l’articolo 56 capoverso 3 LAMal, tranne in caso di accordi di cui all’articolo 56 capoverso 3bis LAMal.&lt;br&gt;
122
+ &lt;br&gt;
123
+ </DescriptionIt>
124
+ <ValidFromDate>01.01.2000</ValidFromDate>
125
+ <ValidThruDate>31.12.9999</ValidThruDate>
126
+ </Limitation>
127
+ </Limitations>
128
+ </ItCode>
129
+ </ItCodes>
130
+ <Status>
131
+ <IntegrationDate>01.01.2005</IntegrationDate>
132
+ <ValidFromDate>01.01.2005</ValidFromDate>
133
+ <ValidThruDate>31.12.9999</ValidThruDate>
134
+ <StatusTypeCodeSl>0</StatusTypeCodeSl>
135
+ <StatusTypeDescriptionSl>Initialzustand</StatusTypeDescriptionSl>
136
+ <FlagApd>N</FlagApd>
137
+ </Status>
138
+ </Preparation>
3
139
  <Preparation ProductCommercial="394">
4
140
  <NameDe>Ancopir</NameDe>
5
141
  <NameFr>Ancopir</NameFr>
@@ -1239,7 +1375,7 @@
1239
1375
  <StatusTypeDescriptionSl>Initialzustand</StatusTypeDescriptionSl>
1240
1376
  <FlagApd>N</FlagApd>
1241
1377
  </Status>
1242
- </Preparation>
1378
+ </Preparation>
1243
1379
  <Preparation ProductCommercial="25550">
1244
1380
  <NameDe>Adcetris</NameDe>
1245
1381
  <NameFr>Adcetris</NameFr>
@@ -2913,8 +3049,8 @@ Le médecin traitant est tenu de saisir en continu les données requises dans l'
2913
3049
  2) Date du début de traitement, posologie, ajustements posologiques, date de fin de traitement.
2914
3050
 
2915
3051
  </DescriptionFr>
2916
- <DescriptionIt>Per la terapia di mantenimento (monoterapia) in pazienti adulte con carcinoma ovarico avanzato e recidivo, con mutazione BRCA, successivamente a una chemioterapia a base di platino e in presenza di una remissione parziale o completa.&lt;br&gt;
2917
- Il medico curante è tenuto a raccogliere costantemente i dati necessari nell’apposito strumento internet del registro, disponibile su http://www.olaparib-registry.ch. È necessario il consenso scritto della paziente. Devono essere raccolti i seguenti dati:&lt;br&gt;
3052
+ <DescriptionIt>Per la terapia di mantenimento (monoterapia) in pazienti adulte con carcinoma ovarico avanzato e recidivo, con mutazione BRCA, successivamente a una chemioterapia a base di platino e in presenza di una remissione parziale o completa.&lt;br&gt;
3053
+ Il medico curante è tenuto a raccogliere costantemente i dati necessari nell’apposito strumento internet del registro, disponibile su http://www.olaparib-registry.ch. È necessario il consenso scritto della paziente. Devono essere raccolti i seguenti dati:&lt;br&gt;
2918
3054
  1) Anno di nascita e terapie precedenti per il carcinoma ovarico&lt;br&gt;
2919
3055
  2) Data di inizio della terapia, dosaggio, aggiustamenti del dosaggio, data di conclusione della terapia.
2920
3056
  </DescriptionIt>
@@ -5,7 +5,6 @@
5
5
  <ITEM DT="2015-11-24 00:00:00 +000">
6
6
  <ATYPE>NONPHARMA</ATYPE>
7
7
  <GTIN>7611600441020</GTIN>
8
- <PHAR>0058519</PHAR>
9
8
  <NAME_DE>TUBEGAZE Verband weiss Nr 12 20m Finger gross</NAME_DE>
10
9
  <NAME_FR>TUBEGAZE pans tubul blanc Nr 12 20m doigts grands</NAME_FR>
11
10
  <AUTH_HOLDER_NAME>IVF HARTMANN AG</AUTH_HOLDER_NAME>
@@ -14,7 +13,6 @@
14
13
  <ITEM DT="2015-11-24 00:00:00 +000">
15
14
  <ATYPE>NONPHARMA</ATYPE>
16
15
  <GTIN>00040565124308</GTIN>
17
- <PHAR>4236863</PHAR>
18
16
  <NAME_DE>ACTICOAT Flex 7 Wundverband 10x12.5cm 5 Stk</NAME_DE>
19
17
  <NAME_FR>ACTICOAT Flex 7 pansement vulné 10x12.5cm 5 pce</NAME_FR>
20
18
  <AUTH_HOLDER_NAME>Smith &amp; Nephew Schweiz AG</AUTH_HOLDER_NAME>
@@ -32,7 +30,6 @@
32
30
  <ITEM DT="2018-03-16T00:00:00">
33
31
  <ATYPE>NONPHARMA</ATYPE>
34
32
  <GTIN>68711428066649</GTIN>
35
- <PHAR>5863450</PHAR>
36
33
  <NAME_DE>3M MEDIPORE+PAD Absorbtionsverb 10x15cm 8 x 25 Stk</NAME_DE>
37
34
  <NAME_FR>3M MEDIPORE+PAD compr absorb 10x15cm 8 x 25 pce</NAME_FR>
38
35
  <AUTH_HOLDER_NAME>3M (Schweiz) GmbH (Professional Health Care)</AUTH_HOLDER_NAME>
@@ -2,10 +2,19 @@
2
2
  <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3
3
  <soap:Body>
4
4
  <ARTICLE xmlns="http://refdatabase.refdata.ch/Article_out" CREATION_DATETIME="2017-12-01T09:41:49.5856186+01:00">
5
+ <ITEM DT="2018-12-05T00:00:00">
6
+ <ATYPE>PHARMA</ATYPE>
7
+ <GTIN>7680005850010</GTIN>
8
+ <SWMC_AUTHNR>00585001</SWMC_AUTHNR>
9
+ <NAME_DE>VARILRIX Trockensub c Solv Fertspr 0.5 ml</NAME_DE>
10
+ <NAME_FR>VARILRIX subst sèche c solv ser pré 0.5 ml</NAME_FR>
11
+ <ATC>J07BK01</ATC>
12
+ <AUTH_HOLDER_NAME>GlaxoSmithKline AG</AUTH_HOLDER_NAME>
13
+ <AUTH_HOLDER_GLN>7601001000674</AUTH_HOLDER_GLN>
14
+ </ITEM>
5
15
  <ITEM DT="2017-12-14T00:00:00">
6
16
  <ATYPE>PHARMA</ATYPE>
7
17
  <GTIN>7680545340019</GTIN>
8
- <PHAR>6749124</PHAR>
9
18
  <SWMC_AUTHNR>54534001</SWMC_AUTHNR>
10
19
  <NAME_DE>TEBOKAN Filmtabl 240 mg 30 Stk</NAME_DE>
11
20
  <NAME_FR>TEBOKAN cpr pell 240 mg 30 pce</NAME_FR>
@@ -16,7 +25,6 @@
16
25
  <ITEM DT="2017-12-14T00:00:00">
17
26
  <ATYPE>PHARMA</ATYPE>
18
27
  <GTIN>7680540150118</GTIN>
19
- <PHAR>1882189</PHAR>
20
28
  <SWMC_AUTHNR>54015011</SWMC_AUTHNR>
21
29
  <NAME_DE>NAROPIN Inj Lös 0.2 % 10ml Duofit Amp 5 Stk</NAME_DE>
22
30
  <NAME_FR>NAROPIN sol inj 0.2 % 10ml amp duofit 5 pce</NAME_FR>
@@ -27,7 +35,6 @@
27
35
  <ITEM DT="2017-12-08T00:00:00">
28
36
  <ATYPE>PHARMA</ATYPE>
29
37
  <GTIN>7680563520172</GTIN>
30
- <PHAR>6477223</PHAR>
31
38
  <SWMC_AUTHNR>56352017</SWMC_AUTHNR>
32
39
  <NAME_DE>ADVATE Trockensub 250 IE c Solv 2 ml Durchstf</NAME_DE>
33
40
  <NAME_FR>ADVATE subst sèche 250 UI c solv 2 ml flac</NAME_FR>
@@ -38,7 +45,6 @@
38
45
  <ITEM DT="2018-09-20T00:00:00">
39
46
  <ATYPE>PHARMA</ATYPE>
40
47
  <GTIN>7680658560014</GTIN>
41
- <PHAR>7199565</PHAR>
42
48
  <SWMC_AUTHNR>65856001</SWMC_AUTHNR>
43
49
  <NAME_DE>DIBASE Tropfen 10000 IE/ml Fl 10 ml</NAME_DE>
44
50
  <NAME_FR>DIBASE gouttes 10000 UI/ml fl 10 ml</NAME_FR>
@@ -49,7 +55,6 @@
49
55
  <ITEM DT="2017-12-08T00:00:00">
50
56
  <ATYPE>PHARMA</ATYPE>
51
57
  <GTIN>7680555580054</GTIN>
52
- <PHAR>2465312</PHAR>
53
58
  <SWMC_AUTHNR>55558005</SWMC_AUTHNR>
54
59
  <NAME_DE>ZYVOXID Filmtabl 600 mg 10 Stk</NAME_DE>
55
60
  <NAME_FR>ZYVOXID cpr pell 600 mg 10 pce</NAME_FR>
@@ -60,7 +65,6 @@
60
65
  <ITEM DT="2017-12-08T00:00:00">
61
66
  <ATYPE>PHARMA</ATYPE>
62
67
  <GTIN>7680620690084</GTIN>
63
- <PHAR>5819012</PHAR>
64
68
  <SWMC_AUTHNR>62069008</SWMC_AUTHNR>
65
69
  <NAME_DE>LEVETIRACETAM DESITIN Mini Filmtab 250 mg 30 Stk</NAME_DE>
66
70
  <NAME_FR>LEVETIRACETAM DESITIN mini cpr pel 250 mg 30 pce</NAME_FR>
@@ -71,7 +75,6 @@
71
75
  <ITEM DT="2017-12-08T00:00:00">
72
76
  <ATYPE>PHARMA</ATYPE>
73
77
  <GTIN>7680353660163</GTIN>
74
- <PHAR>0020273</PHAR>
75
78
  <SWMC_AUTHNR>35366016</SWMC_AUTHNR>
76
79
  <NAME_DE>KENDURAL Depottabl 30 Stk</NAME_DE>
77
80
  <NAME_FR>KENDURAL cpr dépôt 30 pce</NAME_FR>
@@ -82,7 +85,6 @@
82
85
  <ITEM DT="2017-12-08T00:00:00">
83
86
  <ATYPE>PHARMA</ATYPE>
84
87
  <GTIN>7680536620137</GTIN>
85
- <PHAR>1699947</PHAR>
86
88
  <SWMC_AUTHNR>53662013</SWMC_AUTHNR>
87
89
  <NAME_DE>3TC Filmtabl 150 mg 60 Stk</NAME_DE>
88
90
  <NAME_FR>3TC cpr pell 150 mg 60 pce</NAME_FR>
@@ -93,7 +95,6 @@
93
95
  <ITEM DT="2017-12-08T00:00:00">
94
96
  <ATYPE>PHARMA</ATYPE>
95
97
  <GTIN>7680161050583</GTIN>
96
- <PHAR>2731179</PHAR>
97
98
  <SWMC_AUTHNR>16105058</SWMC_AUTHNR>
98
99
  <NAME_DE>HIRUDOID Creme 3 mg/g 40 g</NAME_DE>
99
100
  <NAME_FR>HIRUDOID crème 3 mg/g 40 g</NAME_FR>
@@ -104,7 +105,6 @@
104
105
  <ITEM DT="2017-12-08T00:00:00">
105
106
  <ATYPE>PHARMA</ATYPE>
106
107
  <GTIN>7680324750190</GTIN>
107
- <PHAR>0023722</PHAR>
108
108
  <SWMC_AUTHNR>32475019</SWMC_AUTHNR>
109
109
  <NAME_DE>LANSOYL Gel 225 g</NAME_DE>
110
110
  <NAME_FR>LANSOYL gel 225 g</NAME_FR>
@@ -115,7 +115,6 @@
115
115
  <ITEM DT="2017-12-08T00:00:00">
116
116
  <ATYPE>PHARMA</ATYPE>
117
117
  <GTIN>7680573230016</GTIN>
118
- <PHAR>6824802</PHAR>
119
118
  <SWMC_AUTHNR>57323001</SWMC_AUTHNR>
120
119
  <NAME_DE>LANSOPRAZOL Mepha Kaps 15 mg Fl 60 Stk</NAME_DE>
121
120
  <NAME_FR>LANSOPRAZOL Mepha caps 15 mg fl 60 pce</NAME_FR>
@@ -126,7 +125,6 @@
126
125
  <ITEM DT="2017-12-08T00:00:00">
127
126
  <ATYPE>PHARMA</ATYPE>
128
127
  <GTIN>7680532900196</GTIN>
129
- <PHAR>1699999</PHAR>
130
128
  <SWMC_AUTHNR>53290019</SWMC_AUTHNR>
131
129
  <NAME_DE>HUMALOG Inj Lös 100 IE/ml Durchstf 10 ml</NAME_DE>
132
130
  <NAME_FR>HUMALOG sol inj 100 UI/ml flac 10 ml</NAME_FR>
@@ -137,7 +135,6 @@
137
135
  <ITEM DT="2017-12-01T00:00:00">
138
136
  <ATYPE>PHARMA</ATYPE>
139
137
  <GTIN>7680002770014</GTIN>
140
- <PHAR>0361815</PHAR>
141
138
  <SWMC_AUTHNR>00277001</SWMC_AUTHNR>
142
139
  <NAME_DE>SEROCYTOL Herz-Gefässe Supp 3 Stk</NAME_DE>
143
140
  <NAME_FR>SEROCYTOL Coeur-Vaisseaux supp 3 pce</NAME_FR>
@@ -148,7 +145,6 @@
148
145
  <ITEM DT="2017-12-01T00:00:00">
149
146
  <ATYPE>PHARMA</ATYPE>
150
147
  <GTIN>7680002780013</GTIN>
151
- <PHAR>0361821</PHAR>
152
148
  <SWMC_AUTHNR>00278001</SWMC_AUTHNR>
153
149
  <NAME_DE>SEROCYTOL Kolon Supp 3 Stk</NAME_DE>
154
150
  <NAME_FR>SEROCYTOL Côlon supp 3 pce</NAME_FR>
@@ -159,7 +155,6 @@
159
155
  <ITEM DT="2017-12-01T00:00:00">
160
156
  <ATYPE>PHARMA</ATYPE>
161
157
  <GTIN>7680406620144</GTIN>
162
- <PHAR>0769841</PHAR>
163
158
  <SWMC_AUTHNR>40662014</SWMC_AUTHNR>
164
159
  <NAME_DE>PEVISONE Creme 15 g</NAME_DE>
165
160
  <NAME_FR>PEVISONE crème 15 g</NAME_FR>
@@ -170,7 +165,6 @@
170
165
  <ITEM DT="2017-12-01T00:00:00">
171
166
  <ATYPE>PHARMA</ATYPE>
172
167
  <GTIN>7680406620229</GTIN>
173
- <PHAR>0863244</PHAR>
174
168
  <SWMC_AUTHNR>40662022</SWMC_AUTHNR>
175
169
  <NAME_DE>PEVISONE Creme 30 g</NAME_DE>
176
170
  <NAME_FR>PEVISONE crème 30 g</NAME_FR>
@@ -181,7 +175,6 @@
181
175
  <ITEM DT="2017-11-03T00:00:00">
182
176
  <ATYPE>PHARMA</ATYPE>
183
177
  <GTIN>7680587340015</GTIN>
184
- <PHAR>4153628</PHAR>
185
178
  <SWMC_AUTHNR>58734001</SWMC_AUTHNR>
186
179
  <NAME_DE>YONDELIS Trockensub 0.25 mg Durchstf</NAME_DE>
187
180
  <NAME_FR>YONDELIS subst sèche 0.25 mg flac</NAME_FR>
@@ -192,7 +185,6 @@
192
185
  <ITEM DT="2017-11-03T00:00:00">
193
186
  <ATYPE>PHARMA</ATYPE>
194
187
  <GTIN>7680627160016</GTIN>
195
- <PHAR>5301924</PHAR>
196
188
  <SWMC_AUTHNR>62716001</SWMC_AUTHNR>
197
189
  <NAME_DE>COOP VITALITY Bronchialpastillen 40 Stk</NAME_DE>
198
190
  <NAME_FR>COOP VITALITY pastilles bronchiques 40 pce</NAME_FR>
@@ -203,7 +195,6 @@
203
195
  <ITEM DT="2018-01-30T00:00:00">
204
196
  <ATYPE>PHARMA</ATYPE>
205
197
  <GTIN>7680651600014</GTIN>
206
- <PHAR>6571270</PHAR>
207
198
  <SWMC_AUTHNR>65160001</SWMC_AUTHNR>
208
199
  <NAME_DE>LYNPARZA Kaps 50 mg 448 Stk</NAME_DE>
209
200
  <NAME_FR>LYNPARZA caps 50 mg 448 pce</NAME_FR>
@@ -214,7 +205,6 @@
214
205
  <ITEM DT="2018-02-09T00:00:00">
215
206
  <ATYPE>PHARMA</ATYPE>
216
207
  <GTIN>7680316440115</GTIN>
217
- <PHAR>0020244</PHAR>
218
208
  <SWMC_AUTHNR>31644011</SWMC_AUTHNR>
219
209
  <NAME_DE>FERRO-GRADUMET Depottabl 30 Stk</NAME_DE>
220
210
  <NAME_FR>FERRO-GRADUMET cpr dépôt 30 pce</NAME_FR>
@@ -225,7 +215,6 @@
225
215
  <ITEM DT="2018-03-16T00:00:00">
226
216
  <ATYPE>PHARMA</ATYPE>
227
217
  <GTIN>7680581580011</GTIN>
228
- <PHAR>3656617</PHAR>
229
218
  <SWMC_AUTHNR>58158001</SWMC_AUTHNR>
230
219
  <NAME_DE>PRIORIX TETRA Trockensub c Solv Fertspr</NAME_DE>
231
220
  <NAME_FR>PRIORIX TETRA subst sèche c solv ser pré</NAME_FR>
@@ -236,7 +225,6 @@
236
225
  <ITEM DT="2018-03-23T00:00:00">
237
226
  <ATYPE>PHARMA</ATYPE>
238
227
  <GTIN>7680444470107</GTIN>
239
- <PHAR>0919766</PHAR>
240
228
  <SWMC_AUTHNR>44447010</SWMC_AUTHNR>
241
229
  <NAME_DE>LOPRESOR Retard Divitabs 200 mg 14 Stk</NAME_DE>
242
230
  <NAME_FR>LOPRESOR Retard Divitabs 200 mg 14 pce</NAME_FR>
@@ -247,7 +235,6 @@
247
235
  <ITEM DT="2018-03-23T00:00:00">
248
236
  <ATYPE>PHARMA</ATYPE>
249
237
  <GTIN>7680444470299</GTIN>
250
- <PHAR>0919772</PHAR>
251
238
  <SWMC_AUTHNR>44447029</SWMC_AUTHNR>
252
239
  <NAME_DE>LOPRESOR Retard Divitabs 200 mg 56 Stk</NAME_DE>
253
240
  <NAME_FR>LOPRESOR Retard Divitabs 200 mg 56 pce</NAME_FR>
@@ -258,7 +245,6 @@
258
245
  <ITEM DT="2018-03-23T00:00:00">
259
246
  <ATYPE>PHARMA</ATYPE>
260
247
  <GTIN>7680152190687</GTIN>
261
- <PHAR>0544042</PHAR>
262
248
  <SWMC_AUTHNR>15219068</SWMC_AUTHNR>
263
249
  <NAME_DE>ZYMAFLUOR Tabl 0.25 mg Ds 400 Stk</NAME_DE>
264
250
  <NAME_FR>ZYMAFLUOR cpr 0.25 mg bte 400 pce</NAME_FR>
@@ -269,7 +255,6 @@
269
255
  <ITEM DT="2018-03-23T00:00:00">
270
256
  <ATYPE>PHARMA</ATYPE>
271
257
  <GTIN>7680434540995</GTIN>
272
- <PHAR>2381532</PHAR>
273
258
  <SWMC_AUTHNR>43454099</SWMC_AUTHNR>
274
259
  <NAME_DE>KAMILLIN Medipharm Bad liq 10 Btl 40 ml</NAME_DE>
275
260
  <NAME_FR>KAMILLIN Medipharm bain liq 10 sach 40 ml</NAME_FR>
Binary file
@@ -69,4 +69,5 @@
69
69
  1122069562EINF ARZNEI Urtinktur 1-10g/ml 0010040013401000000000025000005884712
70
70
  1122069639EINF ARZNEI Ceres Urtinktur spez 20ml 0023440031301000000000025000005885322
71
71
  1122069622EINF ARZNEI Ceres Urtinktur 20ml 0018870025201000000000025000005885252
72
-
72
+ 1131770177VARILRIX Trockensub c Solv (alt) Fertspr 0.5 ml 004768006650101B080800076800058500102
73
+ 1127766692VARILRIX Trockensub c Solv Fertspr 0.5 ml 004767006650101B080800076800058500342
@@ -197,7 +197,7 @@
197
197
  <p>70.01.10</p>
198
198
  </td>
199
199
  <td width="52%">
200
- <p>Ceres Urtinkturen gem&auml;ss L2</p>
200
+ <p>Ceres Urtinkturen gem&auml;ss L2 mit -- im Kommentar</p>
201
201
  </td>
202
202
  <td align="right" width="10%">
203
203
  <p>20ml</p>
@@ -2438,4 +2438,4 @@ die Abrechnung zu erleichtern.<br>
2438
2438
 
2439
2439
  </body>
2440
2440
 
2441
- </html>
2441
+ </html>
@@ -51,7 +51,7 @@ end unless SkipMigelDownloader
51
51
  describe Oddb2xml::RefdataExtractor do
52
52
  before(:all) { common_before }
53
53
  after(:all) { common_after }
54
- @@last_change = '2015-11-24 00:00:00 +0000'
54
+ Last_change = '2015-11-24 00:00:00 +0000'
55
55
 
56
56
  context 'should handle pharma articles' do
57
57
  subject do
@@ -60,17 +60,15 @@ describe Oddb2xml::RefdataExtractor do
60
60
  @pharma_items = Oddb2xml::RefdataExtractor.new(xml, 'PHARMA').to_hash
61
61
  end
62
62
 
63
- it "should have correct info for pharmacode 1699947 correctly" do
63
+ it "should have correct info for no8 62069008 correctly" do
64
64
  @pharma_items = subject.to_hash
65
- pharma_code_LEVETIRACETAM = '5819012'
66
- item_found = @pharma_items.values.find{ |x| x[:pharmacode].eql?(pharma_code_LEVETIRACETAM)}
65
+ item_found = @pharma_items.values.find{ |x| x[:ean13].eql?(Oddb2xml::LEVETIRACETAM_GTIN)}
67
66
  expect(item_found).not_to be nil
68
67
  expected = {:data_origin=>"refdata",
69
68
  :refdata=>true,
70
69
  :_type=>:pharma,
71
70
  :ean13=> Oddb2xml::LEVETIRACETAM_GTIN.to_s,
72
71
  :no8 => "62069008",
73
- :pharmacode=> pharma_code_LEVETIRACETAM,
74
72
  :data_origin => "refdata",
75
73
  :desc_de=>"LEVETIRACETAM DESITIN Mini Filmtab 250 mg 30 Stk",
76
74
  :desc_fr=>"LEVETIRACETAM DESITIN mini cpr pel 250 mg 30 pce",
@@ -90,15 +88,13 @@ describe Oddb2xml::RefdataExtractor do
90
88
 
91
89
  it "should have correct info for nonpharma with pharmacode 0058502 correctly" do
92
90
  @non_pharma_items = subject.to_hash
93
- pharma_code_TUBEGAZE = '0058519'
94
- item_found = @non_pharma_items.values.find{ |x| x[:pharmacode].eql?(pharma_code_TUBEGAZE)}
91
+ item_found = @non_pharma_items.values.find{ |x| x[:ean13].eql?('7611600441020')}
95
92
  expect(item_found).not_to be nil
96
93
  expected = {:refdata=>true,
97
94
  :_type=>:nonpharma,
98
95
  :ean13=>'7611600441020',
99
96
  :no8 => nil,
100
- :pharmacode=>pharma_code_TUBEGAZE,
101
- :last_change => @@last_change,
97
+ :last_change => Last_change,
102
98
  :data_origin => "refdata",
103
99
  :desc_de=>"TUBEGAZE Verband weiss Nr 12 20m Finger gross",
104
100
  :desc_fr=>"TUBEGAZE pans tubul blanc Nr 12 20m doigts grands",
@@ -182,7 +178,7 @@ describe Oddb2xml::SwissmedicExtractor do
182
178
  @packs.find{|pack| pack[1][:ean13] == ean13.to_s }[1]
183
179
  end
184
180
  it 'should have correct nr of packages' do
185
- expect(@packs.size).to eq(40)
181
+ expect(@packs.size).to eq(41)
186
182
  end
187
183
 
188
184
  it 'should have serocytol' do