Clovertech
› Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › Message Version Java UPOC
Hi,
I am writing a Java UPOC.
How do I get a message version number from message in java UPOC.
(my requirement is to getVersion number from the hl7 message.example: 2.2,2.3,2.4 etc).
Thanks,
Jay
Hi Jay,
The same principle applies whether you are using Tcl or Java.
1. Get the message,
2. Split message into segments
3. Get the first segment (MSH)
4. Split the segment into fields
5. Get the version number field(sorry don’t do much HL7 nowadays so can’t remember field no.)
Hope this helps.
Garry