I am new to HL7 and Hapi. By reading hapi tutorials, I figured out how to support parsing of multiple versions of HL7 in a single application: http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/HandlingMultipleVersions.html
However, I am not sure how to support multiple HL7 versions while creating new messages. i.e. If I use packages and structure of version 2.6 and I want to construct HL7 message of version 2.3, How can I do that with Hapi?