web stats
Mirth Community - View Single Post - Convert string to HL7
View Single Post
Old 09-11-2013, 09:00 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
Join Date: Oct 2010
Posts: 7,126
narupley is on a distinguished road

Assuming you have a transformer, your inbound data type is XML, and your outbound data type is HL7 v2.x:

msg = new XML(SerializerFactory.getHL7Serializer().toXML(msg.tber_bericht.toString()));
However it looks like there's a problem with the actual data stored in your database. There's no carriage return between segments, so it'll be parsed as a single segment.
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.

- How do I foo?
- You just bar.
Reply With Quote