JavaScript Transformer Not Working on Inbound XML #4492
-
I am working on a JavaScript transformer to build an HL7 ORU from an XML. I am currently working on the MSH segment with the following script: The only transformation that is passing through is the MSH.7 for the date. I am not sure why the inbound message is not being recognized. Also, if I hardcode a segment it does get added to the HL7. I have another channel with a similar set-up and have compared the data types settings, and all other filter and transformer configurations but I am not seeing anything different from what I have set-up. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Can you share a sample inbound message? If |
Beta Was this translation helpful? Give feedback.
-
This is a portion of the test XML I am working with: |
Beta Was this translation helpful? Give feedback.
-
Issue was found to be an HL7 outbound template in the Source connector. Once the template was removed, the transformer worked as expected. Since template was in the source connector once the message came to the destination transformer it was in HL7 format and therefore the values msg variables were not recognized for that HL7. |
Beta Was this translation helpful? Give feedback.
Issue was found to be an HL7 outbound template in the Source connector. Once the template was removed, the transformer worked as expected. Since template was in the source connector once the message came to the destination transformer it was in HL7 format and therefore the values msg variables were not recognized for that HL7.