Published on InterSystems Developer Community (https://community.intersystems.com)

Home > How to separate OBX segments based on .

Question
ED Coder · Jul 16, 2019

How to separate OBX segments based on .

Hi, I am trying to transform a message to meet a third party specification, and would like to know if you can advice me on how to separate a single OBX segment into several segments based on a '.'

I would like to separate the segment where the . [marked in red] is into another OBX segment. So the next segment would be:

OBX|2|TX|R^REPORT^L|1|Patient had lumbar spine MRI ~ Patient also had barium swallow ~ Patient has good alignment 99%perfect ~ Patient has aspiration visible

Is there a way to do that?

Would appreciate your advice on this

Regards,

Eric

#ObjectScript #Ensemble

Source URL:https://community.intersystems.com/post/how-separate-obx-segments-based