view · edit · sidebar · attach · print · history


<< | Index | >>


  • create new FI/PI Updater from swissmedicinfo.


Create new FI/PI Updater from swissmedic

HTML of has following structure.

  • Empty <p> tag is end of chapter (with class "s4")
  • Next <p> of <p> with id attributes has "s3" class and start of chapter.
  • each Text in <p><span></span></p>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">
<html><body><content><div xmlns="">
<p class="s3" id="section1"><span class="s2"><span>Voltaren</span></span><span class="s2"><span>®</span></span><span class="s2"><span> Emulgel®</span></span></p>
<p class="s4"> </p>
<p class="s3" id="section2"><span class="s5"><span>Zusammensetzung</span></span></p>
<p class="s3"><span class="s6"><span>Wirkstoff:</span></span><span class="s7"><span> Diclofenacum diethylaminum.</span></span></p>
<p class="s3"><span class="s6"><span>Hilfsstoffe:</span></span><span class="s7"><span> Propylenglycolum, Isopropanolum,</span></span><span class="s5"><span> </span></span><span class="s7"><span>Aromatica, Excipiens ad unguent. emulgat.</span></span></p>
<p class="s4"> </p>
<p class="s3" id="section3"><span class="s5"><span>Galenische Form und Wirkstoffmenge pro Einheit</span></span></p>
<p class="s3"><span class="s7"><span>100 g Voltaren Emulgel enthalten als Wirkstoff Diclofenac. diethylaminum 1,16 g,</span></span></p>
<p class="s3"><span class="s7"><span>entsprechend 1 g Diclofenac Natricum.</span></span></p>
<p class="s3"><span class="s7"><span>Die Grundlage ist eine Emulsion von Lipiden in einem wässrigen Gel mit Zusätzen von</span></span></p>
<p class="s3"><span class="s7"><span>Isopropanol und Propylenglykol.</span></span></p>
<p class="s4"> </p>

Debug oddb2xml error on Windows


      # rewrote this to be non-recursive as it broke on a large attachment
      # chain with a stack error
      def chain idx 
        a = []
        until idx >= META_BAT
          raise FormatError, "broken allocationtable chain" if idx < 0 || idx > length
          a << idx 
          idx = self[idx]
        Log.warn "invalid chain terminator #{idx}" unless idx == EOC 
view · edit · sidebar · attach · print · history
Page last modified on February 22, 2013, at 04:02 PM