[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-devel] how to adjust a hook script
From: |
Karsten Hilbert |
Subject: |
Re: [Gnumed-devel] how to adjust a hook script |
Date: |
Sun, 9 Sep 2012 20:33:49 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Sun, Sep 09, 2012 at 08:19:49PM +0200, Karsten Hilbert wrote:
> > - create an Unattributed episode of name '(Prescriptions)'
>
> Correct. "Unattributud" here means that the clin.episode
> foreign key into clin.health_issue is set to NULL.
>
> > - but only if it does not already exist
> > - and not if the person is staff
>
> Yes. Those are the requirements. To make it easier one might
> consider ignoring the last one for a first attempt.
Let's see. Where can we go from here.
1) GNUmed typically uses meaningful names for variables and
functions, so "add_episode" or "create_episode" are useful
candidates for grepping
2) function definitions start with "def"
This leads us to:
client/business/gmEMRStructItems.py
def create_episode(...)
client/business/gmClinicalRecord.py
def add_episodes(...)
So we need to advise some way to call one of those functions.
Karsten
--
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
Re: [Gnumed-devel] Workaround for prescriptions, Busser, Jim, 2012/09/06
Re: [Gnumed-devel] Workaround for prescriptions, Karsten Hilbert, 2012/09/09
- Re: [Gnumed-devel] Workaround for prescriptions, Busser, Jim, 2012/09/09
- Re: [Gnumed-devel] Workaround for prescriptions, Busser, Jim, 2012/09/10
- Re: [Gnumed-devel] Workaround for prescriptions, Karsten Hilbert, 2012/09/13
- Re: [Gnumed-devel] Workaround for prescriptions, Karsten Hilbert, 2012/09/14
- Re: [Gnumed-devel] Workaround for prescriptions, Busser, Jim, 2012/09/23