Re: [HAPI-devel] Parse only Segment MSH

2014-05-07 Thread James Agnew
Hi Rafael, If you just want the value of one field in the message header, probably the best way to do so would be using the PreParser: http://hl7api.sourceforge.net/base/apidocs/ca/uhn/hl7v2/preparser/PreParser.html One other thing to note- Parser objects are very heavyweight to create, so you wo

[HAPI-devel] Parse only Segment MSH

2014-05-07 Thread rsanvidal
Hi, In our source code, we parse the full message (from string data) to get the MessageControlID value. How can I get the MessageControlID value without parsing the full message (Example: parsing only the MSH Segment)? Note: I attach the "getUID" method to get this value. Best regards. Rafael.