Maximum no of segments for a HL7V2 message

200 views
Skip to first unread message

Bala

unread,
Sep 21, 2011, 10:54:14 AM9/21/11
to InterSystems: Ensemble in Healthcare
Hi,

I have come across a scenario where I need restrict the size of OBX:5
to 60chars and create a new OBX segment for every 60chars.

On doing so I find that If the total number of segments exceeds 206
approx(definitely 219 segments is a problem), I am unable to use the
functions in EnsLib.HL7.Message viz. SetValueAt and GetValueAt - it
returns nothing.

Is there an alternate approach to this, or am I wrong some where.

Note: Even a 10kb pdf file with 60chars in each OBX segment produces
around 213 segments.
I do not have an issue If the no of segments are below 206.
On posting messages (using the SOAP outbound adapter) with
more than 206 segment, the message body only contains a portion of the
MSH segment and nothing else.

Thank you,

Bala
Message has been deleted

Ted Peck

unread,
Sep 21, 2011, 11:11:22 AM9/21/11
to ensemble-in...@googlegroups.com, Bala
There is no limit on the number of segments an HL7 message can have.
Certainly 200 is a very modest number. However... this could be related
to a bug in version 2010.2 that is fixed in maintenance release
2010.2.6. The bug is related to low level memory management where too
many nodes in a local array get killed when one sub-node is killed, if
the array has more than 100 or so nodes. We have seen cases where this
messes up HL7 processing when enough segments get instantiated
simultaneously.

What version are you using?

Ted

Wallman, Janet

unread,
Sep 21, 2011, 11:51:26 AM9/21/11
to ensemble-in...@googlegroups.com
We resolved this by specifying create="new" instead of "copy" in the transform statement. It may require more coding than a copy but it resolved a similar issue for us.
J

Ted

--
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
________________________________________CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Pathology Medical Services P.C./Nebraska LabLinc therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission.

Message has been deleted

Bala

unread,
Sep 22, 2011, 2:34:25 AM9/22/11
to InterSystems: Ensemble in Healthcare
Thank you Ted and Janet

We have been using the version 2010.2.1.503, So I guess I need to move
to 2010.2.6.

Is there a hot fix available or should I uninstall and then install
the version 2010.2.6

I shall try using create="new" meanwhile.

Thank you,

Bala

On Sep 21, 8:51 pm, "Wallman, Janet" <Janet.Wall...@lablinc.com>
wrote:
> For more options, visit this group athttp://groups.google.com/group/Ensemble-in-Healthcare?hl=en

James MacKeith

unread,
Sep 22, 2011, 8:04:58 AM9/22/11
to ensemble-in...@googlegroups.com
Hi Bala

The correction Ted refers to is not available as a hot fix but you can
upgrade the existing instance without having to uninstall first.

I have my suspicions that some other issue might be at play here. If
upgrading doesn't address please do send in a test message and the dtl/BO
and we'll examine (naturally feel free to send in before)

Kind regards

James

>>e

anaya

unread,
Sep 24, 2014, 3:27:29 PM9/24/14
to Ensemble-in...@googlegroups.com, ensemble-in...@googlegroups.com, balakrishn...@gmail.com, t...@intersystems.com
Hello Ted,
 
I don't know if our problem is related to the one dicussed in this post but we are getting the following error when we process an HL7 message that is bigger than 100Kb

ERROR <Ens>ErrException: <STORE>%Destruct+5^EnsLib.HL7.Message.1 -- logged as '-' number - @' } Catch { Set sc=$$Error^%apiOBJ(5002,$zerror) }'

We are getting this error in the Routing Engin, one of the Lab message that is giving us an error is composed of 370 segments
1 MSH/SFT/PID/PV1
71 ORC segments
71 OBR segments
195 OBX segments
28 NTE segments
 
We are using Ensemble 2012.1
 
Thanks in advance for your help
 
Regards,
 
Glenda

Heloisa Ramalho

unread,
Sep 24, 2014, 6:09:55 PM9/24/14
to Ensemble-in...@googlegroups.com, Ensemble-in...@googlegroups.com, balakrishn...@gmail.com
Hello,

If you send a sample message and a sample production (or describe how you are processing the message), we may be able to help more easily.

I recommend that you open a WRC case for this issue though.  Please call or email Support.

One possibility is that you are encountering a bug that has already been resolved.  A problem was fixed by Ted as of Ensemble 2012.1.2 that might account for that.

Regards,

Heloisa

PS: Ted Peck left InterSystems early this year.
--
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
---
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare" group.
To unsubscribe from this group and stop receiving emails from it, send an email to Ensemble-in-Healt...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

glenda.ana...@ssss.gouv.qc.ca

unread,
Sep 26, 2014, 2:18:21 PM9/26/14
to Ensemble-in...@googlegroups.com

Thank you, I am going to ask our provider Quadramed.

Regards,

Glenda Anaya B.Ing Msc.Inf
Analyste en Informatique
Dossier Clinique Informatisé HÉLIOS
CSSS Jardins-Roussillon.

184, Salaberry Nord, bureau 200,
Châteauguay (Qc) J6J 4K9
Tél: 450-6992425 poste 6824
glenda.ana...@ssss.gouv.qc.ca


Inactive hide details for Heloisa Ramalho ---2014-09-24 18:10:14---Heloisa Ramalho <heloisa.ramalho@intersystems.com>@googlegroHeloisa Ramalho ---2014-09-24 18:10:14---Heloisa Ramalho <heloisa...@intersystems.com>@googlegroups.com


A


cc


Objet


    Re: [InterSystems-EnsHlth] Maximum no of segments for a HL7V2  message


---
You received this message because you are subscribed to a topic in the Google Groups "InterSystems: Ensemble in Healthcare" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/Ensemble-in-Healthcare/U3B1dRTCrO8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
Ensemble-in-Healt...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.


Reply all
Reply to author
Forward
0 new messages