health
[Top][All Lists]
Advanced

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

Re: [Health] Should PUID be a compulsory field when creating new patient


From: Luis Falcon
Subject: Re: [Health] Should PUID be a compulsory field when creating new patients?
Date: Sat, 27 Sep 2014 01:02:27 +0100

Hi Ronald / Bounmy !

On Mon, 22 Sep 2014 09:57:06 +0700
Bounmy Sihaphom <address@hidden> wrote:

> Ronald!
> How I can make generate automatically, by the way is it PUID  is the
> same as SSN (When creating ne party)? If I want PUID in the format
> of : YYY-xxx-xxx-XXX , where YYY is Fixed string like CM2 and
> XXX-XXX-XXX, is a sequential number from 000-000-001 to 999-999-999.
@Bounmy. In your scenario, the best way is to use a tryton sequence,
followed by fixed prefix and a sequential number .
Check the lab or the service sequences as examples.

@Ronald : I just wrote to the list, replying Andrew about this. Let me
know your thoughts

All the best
 
> 
> Thanks.
> 
> 
> Best Regards;
> 
> Bounmy Sihaphom
> mail. address@hidden
> 
> 
> On Mon, Sep 22, 2014 at 2:53 AM, ronald munjoma <address@hidden>
> wrote:
> 
> > Hi,
> >
> > I propose we have  a toggle button to chose whether PUID is
> > required or not.
> >
> > Best and Regards
> >
> > Ronald Munjoma
> > +263 775 625 283,  +263 776 444 309
> >
> > The box said Windows NT or better....so I installed Debian
> > On 21 Sep 2014 20:54, "islam ezzat" <address@hidden> wrote:
> >
> >> Hi Andrew
> >>
> >> When we started to use GNU Health we had this discussion, some
> >> like you said it should be required  some said in some cases like
> >> for the children they don't have puid in some countries, so they
> >> preferred that shouldn't be required. Anyway you can change it to
> >> be required if that is what you need in
> >> trytond-3.2.2/trytond/modules/health/health.py
> >>
> >> change
> >> ref = fields.Char(
> >>         'PUID',
> >>         help='Person Unique Identifier',
> >>         states={'invisible': Not(Bool(Eval('is_person')))})
> >>
> >> to
> >>
> >> ref = fields.Char(
> >>         'PUID',
> >>         help='Person Unique Identifier',
> >>         states={'invisible': Not(Bool(Eval('is_person'))),
> >> 'required':Bool(Eval('is_person'))})
> >>
> >>
> >> Best Regards
> >>
> >>
> >> On Sun, Sep 21, 2014 at 2:33 PM, address@hidden <
> >> address@hidden> wrote:
> >>
> >>> Hi Luis
> >>>
> >>> I have just noticed that when creating a new "patient" in GNU
> >>> Health that the PUID field is optional. I think that it should be
> >>> made a compulsory
> >>> field otherwise it will be possible to create duplicated records
> >>> for the same
> >>> patient. And we all know what havoc that creates...
> >>>
> >>> Regards
> >>>
> >>> Andrew
> >>>
> >>>
> >>




reply via email to

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