[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-devel] pharm information as XML
From: |
Karsten Hilbert |
Subject: |
Re: [Gnumed-devel] pharm information as XML |
Date: |
Mon, 7 Feb 2005 22:46:37 +0100 |
User-agent: |
Mutt/1.3.22.1i |
> Easy:
No. You don't seem to understand.
> class ifapadapter(drugrefapi_base):
> def __init__(...)
> #tells the adapter how to "connect"
> ...
> #tells the adapter what's available:
> addfunc(searchdrug, '_search_name', ['drug_genericname', 'drug_brandname')
>
> def searchdrug(searchexpr):
> #this function does all the interaction with the database
> #connect to database by whatever means
> #run the query and retrieve the result by whatever means
> return [{'drug_genricname': 'blah', 'drug_brandname' : 'blahblah'}]
There is no such thing as accessing the IFAP database. One can
only interface with their frontend.
The interface would need to be:
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 ?
Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
- [Gnumed-devel] pharm information as XML, Irtza Sharif, 2005/02/02
- Re: [Gnumed-devel] pharm information as XML, Ian Haywood, 2005/02/02
- Re: [Gnumed-devel] pharm information as XML, Horst Herb, 2005/02/03
- Re: [Gnumed-devel] pharm information as XML, Karsten Hilbert, 2005/02/07
- Re: [Gnumed-devel] pharm information as XML, Horst Herb, 2005/02/07
- Re: [Gnumed-devel] pharm information as XML,
Karsten Hilbert <=
- Re: [Gnumed-devel] pharm information as XML, E Dodd, 2005/02/07
- Re: [Gnumed-devel] pharm information as XML, Horst Herb, 2005/02/07
- Re: [Gnumed-devel] pharm information as XML, Karsten Hilbert, 2005/02/08
- Re: [Gnumed-devel] pharm information as XML, Horst Herb, 2005/02/07
- Re: [Gnumed-devel] pharm information as XML, Karsten Hilbert, 2005/02/08
- Re: [Gnumed-devel] pharm information as XML, Karsten Hilbert, 2005/02/08
- Re: [Gnumed-devel] pharm information as XML, Ian Haywood, 2005/02/08
- Re: [Gnumed-devel] pharm information as XML, Karsten Hilbert, 2005/02/08
Re: [Gnumed-devel] pharm information as XML, Irtza Sharif, 2005/02/03