Perfered method for Removing OBX Segments

127 views
Skip to first unread message

Adam

unread,
Jan 27, 2010, 1:56:08 PM1/27/10
to InterSystems: Ensemble in Healthcare
I have HL7 messages that need to have OBX Segments removed based on
the content of the OBX.

I know that I sould be able to code this in a BPL as well as a DTL and
in COS. I was wondering what the perfered method for doing so would
be?

Any Sugestions? Has anyone done this before? Pros and Cons?

Thanks
Adam

Graham, Ben

unread,
Jan 27, 2010, 2:00:12 PM1/27/10
to ensemble-in...@googlegroups.com
I have added and removed OBX segments in a DTL. The key is having a variable that keeps track of which iteration of the OBX you are creating.

-Ben

Thanks
Adam

--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to Ensemble-in...@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healt...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Ensemble-in-Healthcare?hl=en

This electronic transmission and any documents accompanying this electronic transmission may contain information that is confidential and/or legally privileged. The information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on or regarding the contents of this electronically transmitted information is strictly prohibited. If you have received this e-mail in error, please notify the sender and delete this message immediately.

Adam

unread,
Jan 27, 2010, 2:09:38 PM1/27/10
to InterSystems: Ensemble in Healthcare
I have done similar in a BPL for X12 Documents, however I am not all
that up to speed doing this in a DTL.
Did you use a <code> element? and how do you define context varibles
in a DTL?

On Jan 27, 11:00 am, "Graham, Ben" <BGra...@inlandimaging.com> wrote:
> I have added and removed OBX segments in a DTL. The key is having a variable that keeps track of which iteration of the OBX you are creating.
>
> -Ben
>
>
>
> -----Original Message-----
> From: ensemble-in...@googlegroups.com [mailto:ensemble-in...@googlegroups.com] On Behalf Of Adam
> Sent: Wednesday, January 27, 2010 10:56 AM
> To: InterSystems: Ensemble in Healthcare
> Subject: [InterSystems-EnsHlth] Perfered method for Removing OBX Segments
>
> I have HL7 messages that need to have OBX Segments removed based on
> the content of the OBX.
>
> I know that I sould be able to code this in a BPL as well as a DTL and
> in COS.  I was wondering what the perfered method for doing so would
> be?
>
> Any Sugestions? Has anyone done this before? Pros and Cons?
>
> Thanks
> Adam
>
> --
> You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
> To post to this group, send email to Ensemble-in...@googlegroups.com
> To unsubscribe from this group, send email to Ensemble-in-Healt...@googlegroups.com

> For more options, visit this group athttp://groups.google.com/group/Ensemble-in-Healthcare?hl=en
>
> This electronic transmission and any documents accompanying this electronic transmission may contain information that is confidential and/or legally privileged. The information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on or regarding the contents of this electronically transmitted information is strictly prohibited. If you have received this e-mail in error, please notify the sender and delete this message immediately.- Hide quoted text -
>
> - Show quoted text -

Graham, Ben

unread,
Jan 27, 2010, 2:14:43 PM1/27/10
to ensemble-in...@googlegroups.com
Here is some code where I am adding OBX's

<assign property='o1' value='"0"' action='set'/>
<foreach property='source.{OBX()}' key='k1'>
.
.
.
<trace value='"Add Signature Line 1: "_SignatureLine'/>
<assign property='o1' value='o1+1' action='set'/>
<assign property='target.{OBX(o1):SetIDOBX}' value='o1' action='set'/>
<assign property='target.{OBX(o1):ValueType}' value='source.{OBX(1):ValueType}' action='set'/>
.

Adam

unread,
Jan 27, 2010, 2:18:48 PM1/27/10
to InterSystems: Ensemble in Healthcare
Thank you for your help Ben...... Just what I needed...

> For more options, visit this group athttp://groups.google.com/group/Ensemble-in-Healthcare?hl=en- Hide quoted text -

Reply all
Reply to author
Forward
0 new messages