Re: [HAPI-devel] Need help with constructing an MSH segment

2012-08-08 Thread James Agnew
Hi Eugene, The easiest way is to use the specific message structure for the message type you are trying to create. For example, to create an ADT^A01 message you could follow the instructions here: http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/CreateAMessage.html Cheers, James On Mon,

[HAPI-devel] Need help with constructing an MSH segment

2012-08-06 Thread Eugene Berman
Hi to all HAPI developers! I'm very new to HL7 and HAPI so I apologize in advance if my question is too stupid or makes no sense at all. Here's what I'm trying to do. I'm trying to write a piece of software that takes a message name and version as input parameters and generates new HL7 message