web stats
Mirth Community - View Single Post - How to preprocess an HL7 message?
View Single Post
Old 05-26-2011, 06:28 AM
bhsuhansc007 bhsuhansc007 is offline
Mirth Newb
Join Date: Jul 2010
Posts: 8
bhsuhansc007 is on a distinguished road
Default How to preprocess an HL7 message?


I am receiving an HL7 message on a port using Mirth. I want to extract some of its fields and write to a flat-file.

Now my problem is, I want to split one of its fields into two parts, say on space. E.g. if there is a field called attending doctor name with contents as 'last_name first_name'. I want to split it on the space and write to the output file as two fields separated by comma. I guess I can achieve it using preprocessor script. But I don't know how to use it. I guess I can do this using Java also? How?

Can someone please guide me in this?

Reply With Quote