gnumed-devel
[Top][All Lists]
Advanced

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

Re: [Gnumed-devel] ID issuers, types, and validation


From: Busser, Jim
Subject: Re: [Gnumed-devel] ID issuers, types, and validation
Date: Mon, 29 Jul 2013 03:35:54 +0000

On 2013-07-26, at 4:04 PM, Jim Busser <address@hidden> wrote:

>> One sane approach would be to define a (number of) regular
>> expression(s) with each external ID type:
>> 
>>     dem.enum_ext_id_types.regexen text[] default NULL
>> 
>> and have INSERT/UPDATE triggers on dem.lnk_identity2ext_id
>> check that.

just wondering how a trigger would "check" that the external_id value conforms 
to whatever is in the column 'regexen' …

would it require some kind of casting of what is in the regexen and converting 
it into a function wherein the value of the external_id must compute as TRUE?

-- Jim

 


reply via email to

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