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

Home > Remove a segment from the HL7 Message

Question
ED Coder · Jul 31, 2019

Remove a segment from the HL7 Message

Hi,

I have a ORU message, which has a EVN segment that I want to remove and send the message across.

I tried to clone the request as below:

s newreq = request.constructClone

s changreq = newreq.RemoveSegmentAt("EVN")

Set request  = changereq

but it fails. Is there a way that I can safely remove a segment and pass it on?

Would appreciate your help in this

Regards,

Eric

#HL7 #Ensemble

Source URL:https://community.intersystems.com/post/remove-segment-hl7-message