How to convert String to XML with prefix

03-04-2016, 10:54 AM

Hello, I have a problem. I need to parse a HL7 that is in String format, so, I'm using the SerializerFactory class to convert a String format to XML format, thus:
tmp = new XML(SerializerFactory.getSerializer('HL7V3').toXML (decodedCDA));

But, it return the following error:
DETAILS: TypeError: The prefix "hl7" for element "hl7:RCMR_IN000032UV01" is not bound.

I've had the same problem in the conectors, but, I solve this unchecking "Strip Namespaces" in all connectors.

Comment

When I processed the message sample that you have in your transformer through the channel, it works for me. (I did have to set the source and destination to channel reader and channel writer) and also removed the external javascript that you had in the transformer.

Comment

In the transformer of destination there are 2 steps, in the first step I try to get a CDA of controlActProcess/text tag coded in BASE64. with a javascript function I decode the CDA, but I need convert this to XML for I can process it.

We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.

By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.