<< | Index | >>
add additional nonpharma form:
Add as new into articles.
If duplicated entry is detected, use one of swissINDEX. (add only)
# add @migel.values.compact.each do |migel| next if migel[:pharmacode].empty? object = {} %w[de fr].each do |lang| pac = { :ean => migel[:ean], :pharmacode => migel[:pharmacode], :status => 'I', :stat_date => '', :lang => lang.capitalize, :desc => migel["desc_#{lang}".intern], :atc_code => '', :additional_desc => migel[:additional_desc], :company_ean => migel[:company_ean], :company_name => migel[:company_name], } object[lang.intern] = pac end @articles << object end
Update article to check :swissmedic_category of Packungen.xml.