Skip to content

Pass on a message from a channel's response transformer to another channel #6226

Answered by pacmano1
Coooz asked this question in Q&A
Discussion options

You must be logged in to vote

That example channel shows some response transformer concepts you can utilize. You could of course just make the FHIR calls and in the final response transformer do everything, because the results of destinations are available downstream as you can see from the examples. That would mean make the first FHIR call (outbound template would be set to datatype JSON and left empty) and the second destination response transformer:

tmp  =  new XML(SerializerFactory.getSerializer('HL7V2').toXML(connectorMessage.getRawData())) // this is the original HL7 Message
tmp['PID']['PID.3']['PID.3.1'] = JSON.parse($('d1').getMessage()).id // This is the response from the first destination, getting the "id" f…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@Coooz
Comment options

@Coooz
Comment options

@pacmano1
Comment options

@pacmano1
Comment options

Answer selected by Coooz
@Coooz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants