In NHapi, how can we parse a message if we do not know what messageType is (MSH # 9)?
var parser = new NHapi.Base.Parser.PipeParser(); IMessage parsedMessage = parser.Parse(SampleMessage);
parsedMessage is NHapi.Base.Model.GenericMessage.V25 at runtime, and I cannot read the MSH header to read the MessageType field, and then re-parse (?) the message as this message type.
I am disappointed by the lack of documentation and examples. Perhaps I am very far from the base. I am very new to HL7, but I thought I had a good understanding of the HL7 specification until I tried using NHapi.
source share