[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-devel] on patient selection, how are editareas notified?
From: |
Karsten Hilbert |
Subject: |
Re: [Gnumed-devel] on patient selection, how are editareas notified? |
Date: |
Sat, 25 Oct 2003 10:30:16 +0200 |
User-agent: |
Mutt/1.3.22.1i |
> and for getting a handle on the current patient?
my_pat = gmTmpPatient.gmCurrentPatient()
> what's the accepted mechanism for notifying a new patient has been selected
To set the active patient:
my_pat = gmTmpPatient.gmCurrentPatient(aPKey = anID)
anID must exist
anID must be different from the previously active patient's ID
or else nothing happens.
An example on how to do this safely (I hope) is in
wxpython/gmPatientSelector.py->SetActivePatient() (which maybe
should be provided by gmTmpPatient as a convenience function).
If everything works out gmTmpPatient.gmCurrentPatient.__init__()
will send the appopriate intra-client signals.
Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346