I have searched for an answer to this question before posting but have so far found nothing...
I am attempting to parse a HL7 v2.2 document. The document contains multiple MSH segments (and the related data for each). Can you tell me the best way to parse such a document so that the data for each message is inserted into a database (the parsing is my issue, not the insert).
I'm guessing I need a transformer with a while loop which splits the document for each message and passes those to a separate channel. This seems like a lot of work for what appears to be an inherent task....is there a more straightforward way than this??
Thank you
Jason
I am attempting to parse a HL7 v2.2 document. The document contains multiple MSH segments (and the related data for each). Can you tell me the best way to parse such a document so that the data for each message is inserted into a database (the parsing is my issue, not the insert).
I'm guessing I need a transformer with a while loop which splits the document for each message and passes those to a separate channel. This seems like a lot of work for what appears to be an inherent task....is there a more straightforward way than this??
Thank you

Jason
Comment