gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] pharm information as XML


From: Horst Herb
Subject: Re: [Gnumed-devel] pharm information as XML
Date: Tue, 8 Feb 2005 12:45:39 +1100
User-agent: KMail/1.7.1

On Tue, 8 Feb 2005 08:46, Karsten Hilbert wrote:
> class ifap_adapter(drugrefapi_base):
>     def __init__():
>         self.raise_ifap_frontend()
>
>     def get_selected_drugs():
>         return file.open('c:\ifap\selected-drugs.lst').read()
>
> Is that possible ?

Sure. You basically just did it. Essentially no different from the example I 
gave you. Only thing you probably have to do is mangling  whatever you read 
frm the file into a list of key:value pair return values (or just one single 
key:value pair in "narrative" format.

Only limitation: if the ifap frontend requires user interaction, you cannot 
use the API via XML-RPC or other remote procedure call, unless you forward 
the ifap display in a VNC like manner.

Horst




reply via email to

[Prev in Thread] Current Thread [Next in Thread]