<< Masa.20110603-fix-active_agents-testcases-view-activeagent-suggest_address-narcotics-ch_oddb | 2011 | Masa.20110531-impfstoff_blutprodukt_flag-testcase-swissindex-ch_oddb >>
Procedure
ODDB::SwissmedicPlugin - Report 31.05.2011 Created Packages: 18622 Updated Packages: 0 Deleted Packages: 0 (0 Replaced) Deleted Sequences: 0 Deactivated Registrations: 0 Updated new Export-Registrations: 7159 Updated existing Export-Registrations: 445 Updated new Export-Sequences: 10695 Updated existing Export-Sequences: 632 Total Sequences without ATC-Class: 12 http://oddb.masa.org/de/gcc/resolve/pointer/:!registration,57441!sequence,01. http://oddb.masa.org/de/gcc/resolve/pointer/:!registration,57525!sequence,01. http://oddb.masa.org/de/gcc/resolve/pointer/:!registration,58550!sequence,01. http://oddb.masa.org/de/gcc/resolve/pointer/:!registration,59080!sequence,01. http://oddb.masa.org/de/gcc/resolve/pointer/:!registration,59290!sequence,01. http://oddb.masa.org/de/gcc/resolve/pointer/:!registration,59338!sequence,01. http://oddb.masa.org/de/gcc/resolve/pointer/:!registration,60413!sequence,01. http://oddb.masa.org/de/gcc/resolve/pointer/:!registration,61207!sequence,01. http://oddb.masa.org/de/gcc/resolve/pointer/:!registration,61408!sequence,01. http://oddb.masa.org/de/gcc/resolve/pointer/:!registration,61436!sequence,01. http://oddb.masa.org/de/gcc/resolve/pointer/:!registration,61471!sequence,01. http://oddb.masa.org/de/gcc/resolve/pointer/:!registration,61540!sequence,01.
Note
for ch.oddb
masa@masa ~/ywesee/yus $ bin/yus_add_user mhatakeyama@ywesee.com login org.oddb.RootUser masa@masa ~/ywesee/yus $ bin/yus_grant mhatakeyama@ywesee.com edit yus.entities masa@masa ~/ywesee/yus $ bin/yus_grant mhatakeyama@ywesee.com edit org.oddb.drugs masa@masa ~/ywesee/yus $ bin/yus_show mhatakeyama@ywesee.com Password for mhatakeyama@ywesee.com: ["mhatakeyama@ywesee.com", ["edit", [["org.oddb.drugs"], ["yus.entities"]]], ["login", [["org.oddb.RootUser"]]], ["reset_password", []], ["set_password", [["mhatakeyama@ywesee.com"]]]]
In order to valid it, I have to reset the password from the webinterface.
masa@masa ~/ywesee/yus/bin $ ./yus_show mhatakeyama@ywesee.com Password for mhatakeyama@ywesee.com: ["mhatakeyama@ywesee.com", ["edit", [["yus.entities"]]], ["login", [["org.oddb.RootUser"]]], ["reset_password", []], ["set_password", [["mhatakeyama@ywesee.com"]]], ["view", [["org.oddb"]]], ["RootUser"]]
See more: Attach:yus/Guide.20110601.txt
Check the current I/B flags (src/util/oddbapp.rb)
def all_heilmittelcode open("/home/masa/work/heilmittelcode.dat", "w") do |out| @registrations.values.select{|r| r.production_science =~ /Blutprodukte/ or r.production_science =~ /Impfstoffe/}.sort_by{|r| r.iksnr}.each do |reg| out.print reg.iksnr, ", ", reg.production_science, ", ", reg.vaccine, "\n" end end end
Run
masa@masa ~/ywesee/oddb.org $ bin/admin ch.oddb> all_heilmittelcode
Result
Experiment (src/util/oddbapp.rb)
def update_ibflag @registrations.values.select{|r| r.production_science =~ /Blutprodukte/ or r.production_science =~ /Impfstoffe/}.sort_by{|r| r.iksnr}.each do |reg| unless reg.vaccine ptr = reg.pointer args = {:vaccine => true} update ptr, args, :swissmedic end end end
Run
masa@masa ~/ywesee/oddb.org $ bin/admin ch.oddb> update_ibflag
Result
Note
Commit
Commit