| Home Beta programs |
Welcome to Mobipocket Developer Center |

Creating ContentGetting StartedWhat is the Mobipocket file formatHow do I create a Mobipocket eBookStandard eBooksAdvanced eBooks eBook features Cross-platform feature supportImage supportTable supportCover PageParagraph rendering and hyphenationHyperlinksGuide itemsFramesIndexes and DictionariesSectionsAuthoring tips Extended eBook features DatabasesSQL queriesJavascriptHTML forms Reference Open-eBook HTML tagsSupported HTML entitiesHTML form tagsMobipocket custom tagsOPF x-metadata tagsMobipocket URLsMobipocket Document Object Model (DOM)Mobipocket Active Server Pages (ASP)Mobipocket Active Data Objects (ADO)Mobipocket Javascript Objects Medical Drug interaction module Advanced topics Setting margins |
Drug Interaction ModuleThe Mobipocket Reader Pro 4.5 or higher contains a built-in drug interaction module . This module uses drug interaction information to be compiled in the current eBook. This built-in Module offers the following options :
How to use the Drug Interaction Module
Interaction XML Data Filesspeclass.xml : Drug Interaction Class information. This files contains for each drug name all the interaction classes related to the drug. <?xml version="1.0"><speclasses> <id_Specialite> <Name>Drug Name goes here</Name > <ClassName>Interaction Class Name goes here</ClassName > </id_Specialite> <id_Specialite> ....... </id_Specialite> </speclasses> classclass.xml : Interaction Class Couples : this file contains the list of interactions between 2 classes, and some HTML information related to it. <?xml version="1.0"> <classeclasse> <interaction> <class1>Interaction Class Name goes here</class1 > <class2>Second Interaction Class Name goes here</class2 > <desc content="raw-text">some HTML goes here </desc> </interaction> <interaction> <class1>Second Interaction Class Name goes here</class1 > <class2>Interaction Class Name goes here</class2 > <desc content="raw-text">some HTML goes here </desc> </interaction> </classeclasse> Warning : for a given interaction class couple, you need to specify 2 interactions (A,B) and (B,A). Link Interaction XML Data files in the OPFAdd 2 item nodes in the manifest section of
the OPF, which points to the previous 2 XML files.
<manifest> Javascript Code for the Drug List
Add some Javascript
code in the content to deal with Drug List/ Warning : the Cart Name (in the car.add() function and in the oeb:cart?name=xxx url) has to be exactly 'interactions', in order to make the interaction computation work. RemarksThe user interface for the drug list and the interaction results cannot be customized in the current version 4.8. |