gnumed-devel
[Top][All Lists]
Advanced

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

Re: [Gnumed-devel] trying to sort out a few things


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] trying to sort out a few things
Date: Fri, 18 Jun 2004 14:37:00 +0200
User-agent: Mutt/1.3.22.1i

Ian,

> I'm not sure we will ever need placeholder domains, as simple variables are 
> themselves Python expressions.
On second thought you are quite correct. The rub is to think
of all label-type placeholders as variables, eg. not running a
certain intra-client method when seeing @patient_last_name@
but rather pull the value by treating it as standard variable.
The only other "domain" we need would be Python code. However,
    val = eval('some_variable_name')
and
    val = eval('some_python_expression')
work the same. I missed that. And, no, we won't need a domain
for direct SQL either as those can be wrapped in simple python
expressions. So I guess we can pretty much go by your current
design :-)

> The other domain you suggested ("gnumedlets") for calling complex scripts 
> inside 
> a form, IMHO it would be better to add a method to the appropriate business 
> object to do
> whatever complex manipulation. 
No. We need UI interaction within gnumedlets.

> However, I've no objection if  they are necessary, I have no idea what forms 
> you are dealing with.
You are dealing with them, too. It's not the forms, it's the
content.

Here is the use case:

1) I am referring Mr.Jones to a rheumatologist because there is
   something fishy about his random, uncontrollable bouts of
   gout. I certainly cannot just check a box "include meds"
   since I would want to exclude his Viagra prescriptions.

2) Said Mr.Jones is sent to the facial surgeons for treatment
   of an odontogenic abscess. I will want to include past Hx
   but would need to browse and pick entries since they have
   no business knowing about his erectile dysfunction.

Made my point ? ;-)

> Granted, but why do we need to run the bootstrapper *3* times to get a working
> database (4 if you want Australian extensions)
Simply because I haven't come up with a good way to
    \include that_file.conf
inside bootstrapping conf files at arbitrary locations. Once
we can do that all is fine.

> If there are no objections I will add a bootstrap-easy.conf file to our 
> collection of 
> conf files to do this in one go.
An OK quick fix for now, I guess. It's just that I won't be
the one maintaining it but, hey, no objections to someone else
doing it.

> Then we can add a wxPython wrapper which asks for the root password in a 
> pretty
> dialogue box or whatever.
The password is cached within a single bootstrapper run. No
need to wrap anything else around that unless one feels like
it.

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346




reply via email to

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