view · edit · sidebar · attach · print · history

20120827-rezept-interaction-link-update-patinfo-ebook

<< | Index | >>


Summary

  • Added interaction link to modules.ehpa.ch at prescription(rezept) view.
    • use atc_code as parameter
  • Updated patinfo ebook(mobi).
  • Updated narcotics flag from file.

Commits

ch.oddb.org
ebps

Index


Add interaction link to prescription view

Added atc_code via Package.atc_class.atc_code by each package as hidden element.
Then create link with javascript.

    var link   = 'http://modules.epha.ch/vigi/orbit.html';
    var param  = '';
    var codes  = getElementsByName('atc_code');
    var values = [];
    var i = 0;
    var c = codes.length;
    for (; i < c; i++) { values.push(codes[i].value); }
    if (values.length != 0) { param += '#' + values.join(); }
    window.open(link + param);
commit

Update patinfo ebook

updated titles of meddrugs patinfo ebooks.

  • med-drugs – Schweizer Medikamente Enzyklopädie für Patienten 2012
  • med-drugs – Encyclopédie des médicaments de la Suisse pour des patients 2012

updated just-medical decorator for meddrugs to insert compare drug link(link chapter).

commit

Import narcotics

Updated narcotics flag.

create xls(csv) for update_btm (narcotics plugin).

          if row[5] and items = row[5].split(/\s/)
            iksnr = items[2]
            ikscd = items[3]
          end
  • row[5] => " " + " " + iksnr + " " + ikscd (as pseudo ean13)
  • row[8] => 'A+'
:%s/[0-9A-z\w\ \(\)\t]\+\ze\([0-9]\{5}\)\/g

create csv from text. (Removed unused text und repair columns.)

update_narcotics had old method name.

$ ruby jobs/update_narcotics /path/to/btm.xls
commit
view · edit · sidebar · attach · print · history
Page last modified on August 27, 2012, at 12:44 PM