Piero a écrit :
> how I'can generate a unique message contro id (MSH-10) for my HL7 messages
> from class Java.
> Regards
>
> Piero
>
>
Did you have a look at ca.uhn.hl7v2.util.MessageIDGenerator? It is very
simple to use:
String id;
try
{
id = MessageIDGenerator.getInstance().getNewID();
}
catch (IOException ex)
{
throw new HL7Exception(ex.getMessage(),
HL7Exception.APPLICATION_INTERNAL_ERROR);
}
terser.set("/MSH-10", id);
Fred.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel