[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:

                def create_episode(...)

                def add_episodes(...)

So we need to advise some way to call one of those functions.

GPG key ID E4071346 @
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346

reply via email to

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