Exit message template #6071
-
I receive a json message which I then convert into a hl7 message in a transformer source. The problem is that I have a script to handle the obx segments that are generated according to conditions. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The outbound template is used for like filling in a message. So if you have a sample message that you need to send, you can paste it into the outbound template. Then your transformers can use the drag-and-drop mappings to fill in the template. For the code you showed, what you could do instead of |
Beta Was this translation helpful? Give feedback.
The outbound template is used for like filling in a message. So if you have a sample message that you need to send, you can paste it into the outbound template. Then your transformers can use the drag-and-drop mappings to fill in the template.
For the code you showed, what you could do instead of
createSegment
is just settmp['OBX'][0]['OBX.3'] = yourvalue
. If you know you will ALWAYS have 2 OBX segments you can build the template then fill it in. If you have a random number of OBX segments then keep usingcreateSegment
and remove OBX from the template