[Top][All Lists]

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

Re: [Gnumed-devel] Comments on 0.2

From: Ian Haywood
Subject: Re: [Gnumed-devel] Comments on 0.2
Date: Sat, 24 Jun 2006 19:17:45 +1000
User-agent: Thunderbird (X11/20060516)

Ian Haywood wrote:

>         kwargs['patient_id'] = self.check_encounter_sanity 
> (kwargs['episode_id'], kwargs['encounter_id'])  # if an error, exception goes 
> straight to be caller, we don't need to handle
This could be folded into cBusinessClass too.

>         if type(allg_type) != types.IntType:
>               kwargs['allg_type'] = gmPG.run_ro_query ('select id from 
> clin._enum_allergy_type where value=%s', kwargs['allg_type'])[0][0]

An INSERT rule could catch this.

CASE WHEN allg_type ~ '[0-9]+' THEN allg_type::integer ELSE (select id from 
clin._enum_allergy_type where value=allg_type) END


reply via email to

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