view · edit · sidebar · attach · print · history

20130109-debug-oddb2xml-gem-fi-product-windows-support

<< | Index | >>


Summary

  • Updated oddb2xml
    • pusheh fi-product.xml commit
    • Repair gemspec file

Commits

Index


Debug gem release

oddb2xml-1.1.2 does not have any gemspec. (it does not install dependency.)

commit

Create oddb2xml oddb_fi_product.xml

oddb_fi_product.xml
<?xml version="1.0" encoding="utf-8"?>
<KOMPENDIUM_PRODUCT xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://wiki.oddb.org/wiki.php?pagename=Swissmedic.Datendeklaration" CREATION_DATETIME="2013-01-09T08:58:35.1206580+0900" PROD_DATE="2013-01-09T08:58:35.1206580+0900" VALID_DATE="2013-01-09T08:58:35.1206580+0900">
  <KP DT="">
    <MONID>53663</MONID>
    <PRDNO>8621</PRDNO>
    <DEL>false</DEL>
  </KP> 
  <KP DT="">
    <MONID>14825</MONID>
    <PRDNO>4</PRDNO>
    <DEL>false</DEL>
  </KP> 
  ...
commit

Windows support

NoMemoryError

C:/Ruby193/lib/ruby/gems/1.9.1/gems/rubyzip-0.9.9/lib/zip/inflater.rb:14:in
`sysread': failed to allocate memory (NoMemoryError)
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rubyzip-0.9.9/lib/zip/zip_input_stream.rb:106:in
`sysread'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rubyzip-0.9.9/lib/zip/ioextras.rb:59:in
`read'

Windows can not free memory by itself.

try to use :File#gets: for mswin (on Windows platform).

commit

Ref.


Create oddb_interaction.xml

Only DE file.

fr
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>2F9C7C18855A1BCD</RequestId><HostId>8NoYrPbDieyYd9m1OmDfPJ1jd0ul4DfANOWFH7zXjyUl9FtX5sWlS28D2AuCYEN5</HostId></Error>
interaction.xml
<?xml version="1.0" encoding="utf-8"?>
<INTERACTION xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://wiki.oddb.org/wiki.php?pagename=Swissmedic.Datendeklaration" CREATION_DATETIME="2013-01-09T17:16:12.0692179+0900" PROD_DATE="2013-01-09T17:16:12.0692179+0900" VALID_DATE="2013-01-09T17:16:12.0692179+0900">
  <IX DT="">
    <IXNO>1</IXNO>
    <GRP1D>N06AB06</GRP1D>
    <GRP2D>M03BX02</GRP2D>
    <EFFD>Keine Interaktion.</EFFD>
    <RLV>16</RLV>
    <RLVD>keine Massnahmen</RLVD>
    <MECHD>Tizanidin wird über CYP1A2 metabolisiert. Sertralin beeinflusst CYP1A2 jedoch nicht.</MECHD>
    <MEASD>Die Kombination aus Sertralin und Tizanidin hat kein bekanntes Interaktionspotential.</MEASD>
    <DEL>false</DEL>
  </IX> 
  ...
code.xml
<?xml version="1.0" encoding="utf-8"?>
<CODE xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://wiki.oddb.org/wiki.php?pagename=Swissmedic.Datendeklaration" CREATION_DATETIME="2013-01-09T17:16:12.9758896+0900" PROD_DATE="2013-01-09T17:16:12.9758896+0900" VALID_DATE="2013-01-09T17:16:12.9758896+0900">
  <CD DT="">
    <CDTYP>11</CDTYP>
    <CDVAL>X</CDVAL>
    <DSCRSD>Kontraindiziert</DSCRSD>
    <DEL>false</DEL>
  </CD>
  <CD DT="">
    <CDTYP>12</CDTYP>
    <CDVAL>E</CDVAL>
    <DSCRSD>Kontraindiziert</DSCRSD>
    <DEL>false</DEL>
  </CD>
  ...
commit
view · edit · sidebar · attach · print · history
Page last modified on January 09, 2013, at 09:25 AM