Skip to content

removing multiple segments via transform #6397

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

You must be logged in to vote
var obxs = getSegmentsAfter(msg, msg['OBR'][0], 'OBX', 'OBR') 
msg.ORC = msg['ORC'][0] 
msg.OBR = msg['OBR'][0]
delete msg.OBX
obxs.forEach(function(obx) {
    msg.appendChild(obx);
});

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@pacmano1
Comment options

@pacmano1
Comment options

@tmartinac
Comment options

@pacmano1
Comment options

Answer selected by tmartinac
@pacmano1
Comment options

@tmartinac
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