A pattern in a gp seems most user friendly.  Not sure many people will know
or want to make a groovy script to do it.  Make a few constants that they
can put in to get the location, device id, current millisecond time, etc.

Ben

On Mon, May 14, 2012 at 8:13 AM, Saptarshi Purkayastha <sun...@gmail.com>wrote:

> We've been discussing that it will also be useful to make these ids
> (including patient identifiers) unique in space because since we might be
> using offline id creation, we could have a conflict if the ids were
> generated at the same time. So a combination of them being unique in space
> (through location/device id) and in time (current time upto sec) should be
> good enough for them to avoid conflicts.
>
> ---
> Regards,
> Saptarshi PURKAYASTHA
>
> My Tech Blog:  http://sunnytalkstech.blogspot.com
> You Live by CHOICE, Not by CHANCE
>
>
>
> On 14 May 2012 17:08, Friedman, Roger (CDC/CGH/DGHA) (CTR) 
> <r...@cdc.gov>wrote:
>
>>  For the lab module on which I am working, I need to generate unique IDs
>> for lab orders, specimens and reports.  These IDs should be in a
>> user-specified format containing some or all of the following elements:
>> patient ID, current year, current month, current day, sequential number,
>> check digit, string constant.  I am trying to decide on how the user is to
>> specify this: a pattern stored in a global property, some sort of
>> interpretable scripting language, a groovy snippet, whatever.  Does anybody
>> have any suggestions, patterns to follow, examples?  ****
>>
>
> ------------------------------
> Click here to 
> unsubscribe<lists...@listserv.iupui.edu?body=SIGNOFF%20openmrs-devel-l>from 
> OpenMRS Developers' mailing list
>

_________________________________________

To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to 
lists...@listserv.iupui.edu with "SIGNOFF openmrs-devel-l" in the  body (not 
the subject) of your e-mail.

[mailto:lists...@listserv.iupui.edu?body=SIGNOFF%20openmrs-devel-l]

Reply via email to