Supplied by Horst Herb
All signals are defined in the module gmSignals.py, located in the source tree under gnumed/client/python-common.
Developers never should use these signal strings directly, but always refer to the signal strings via their factory functions in the module gmSignals.
The name of the factory function is identical with the signal it represents: gmSignals.popup_notice() would thus return the string 'popup_notice'.
However, these factory functions may do more than just that; they can also trigger a 'listen' signal for asynchronous backend notifications, and they can do some house keeping in order to avoid that the same callback is triggered multiple times unneccessarily.
Table 5-1. Signals
Signal | Meaning | Parameter(s) | Origin |
---|---|---|---|
General messages | |||
popup_notice | A popup notice wants to be displayed (can be disabled if client does not want to be interrupted) |
| Frontend or Backend |
popup_alert | A popup alert wants to be displayed (high priority message - should not be disabled by the client) |
| Frontend or Backend |
"Current patient" related messages | |||
patient_selected | A patient has been selected within the client user interface. This patient is now the "current" patient. All widgets displaying client data must update themselves accordingly | id_patient (ID of patient) | Frontend |
patient_modified | A patient's demographic data has been updated. Widgets displaying a patient's demographic data must update themselves | id_patient (ID of patient) | Frontend or Backend |
medication_modified | The current patient's medication has been modified. Medication related widgets have to update themselves. This can also be used for drug interaction checking, drug allergy checking etc. | id_patient (ID of patient) | Frontend or Backend |
Waiting room related | |||
waitingroom_added | A patient has been added to the waiting room |
| Frontend or Backend |
waitingroom_incons | A patient has entered a consultation (is seen by a doctor) |
| Frontend or Backend |
waitingroom_left | A patient has left the waitingroom (finished consultation) |
| Frontend or Backend |