view · edit · sidebar · attach · print · history

20121105-debug-swissmedic-import-active-agent

<< | Index | >>


Summary

  • Debug duplicate active agents
 * result list
  • Swissmedic updater

Commits

Index


Debug swissmedic importer job

ch.oddb> registration('57430').sequence('01').packages.values.first.name_base
-> Gabapentin Spirig HC 100 mg
ch.oddb> registration('57430').sequence('01').packages.values.first.size
-> 50 Kapsel(n) + 50 Kapsel(n) + 50 Kapsel(n) + 50 Kapsel(n) + 50 Kapsel(n)
ch.oddb> registration('57430').sequence('01').packages.values.first.active_agents.length
-> 5
ch.oddb> registration('57430').sequence('01').packages.values.first.active_agents[0]
-> Gabapentinum 100 mg
ch.oddb> registration('57430').sequence('01').packages.values.first.active_agents[1]
-> Gabapentinum 100 mg
ch.oddb> registration('57430').sequence('01').packages.values.first.active_agents[2]
-> Gabapentinum 100 mg
...

Parts has duplicate agents.
There are same active agent objects.

ch.oddb> registration('57430').sequences.values.first.packages.values.first.parts[0].active_agents.first.odba_id
-> 892251
ch.oddb> registration('57430').sequences.values.first.packages.values.first.parts[1].active_agents.first.odba_id
-> 892251
ch.oddb> registration('57430').sequences.values.first.packages.values.first.parts[2].active_agents.first.odba_id
-> 892251
...

This(unknown Package object problem) also maybe relate this Part Object.

view · edit · sidebar · attach · print · history
Page last modified on November 05, 2012, at 09:31 AM