Problem with HL7 repeated fields

7 messages Options
Embed this post
Permalink
neeleem

Problem with HL7 repeated fields

Reply Threaded More More options
Print post
Permalink
Hello,

I am new to this forum and to open esb.

My current work involves handling an incoming ORU^R01 HL7 message (observation report). I am having some problems when processing the PID segment of the message. The problem is with the PID.3 field. It is the field that contains identifiers for a patient. According to the schema it is allowed to repeat so I assume seperating the repeating sections with ~ should work fine. A test PID.3 is below

12345678^^^^PI~5635262572^^^^NHS~3087269^^^^RADIS


When I process it 12345678^^^^PI becomes PID.3, 5635262572^^^^NHS becomes PID.4 and 3087269^^^^RADIS becomes PID.5. But that is not correct as it should be repeating PID.3 fields.

In my wsdl for the input hl7 port I have the encoding characters specified as ^~\&.

Please can anyone shed any light on what might be causing this behaviour.

Thanks in advance,
Neeleem.
Sean Keane

Re: Problem with HL7 repeated fields

Reply Threaded More More options
Print post
Permalink
Neeleem,

That does not sound correct.  I use multiple identifiers in PID3 in my
projects - which version of HL7 are you using, and which version of Open
ESB?

Sean Keane

neeleem wrote:

> Hello,
>
> I am new to this forum and to open esb.
>
> My current work involves handling an incoming ORU^R01 HL7 message
> (observation report). I am having some problems when processing the PID
> segment of the message. The problem is with the PID.3 field. It is the field
> that contains identifiers for a patient. According to the schema it is
> allowed to repeat so I assume seperating the repeating sections with ~
> should work fine. A test PID.3 is below
>
> 12345678^^^^PI~5635262572^^^^NHS~3087269^^^^RADIS
>
> When I process it 12345678^^^^PI becomes PID.3, 5635262572^^^^NHS becomes
> PID.4 and 3087269^^^^RADIS becomes PID.5. But that is not correct as it
> should be repeating PID.3 fields.
>
> In my wsdl for the input hl7 port I have the encoding characters specified
> as ^~\&.
>
> Please can anyone shed any light on what might be causing this behaviour.
>
> Thanks in advance,
> Neeleem.
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

neeleem

Re: Problem with HL7 repeated fields

Reply Threaded More More options
Print post
Permalink
Sean,

Thanks for replying.

The message is v2.3 of HL7. I don't see the schema causing problems because it says min occurs =1 and max occurs = unbounded for PID.3. So not sure why this is being caused.

I use JCAPS6 - so I think it includes version 2 of Glassfish esb. I installed the hl7 encoder etc following Michael Czapski's document on writing a hl7 processor.

Thanks,
Neeleem.

Sean Keane wrote:
Neeleem,

That does not sound correct.  I use multiple identifiers in PID3 in my
projects - which version of HL7 are you using, and which version of Open
ESB?

Sean Keane
Sean Keane

Re: Problem with HL7 repeated fields

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Neeleem,

Can you send your test data?

Sean Keane

neeleem wrote:
Sean,

Thanks for replying.

The message is v2.3 of HL7. I don't see the schema causing problems because
it says min occurs =1 and max occurs = unbounded for PID.3. So not sure why
this is being caused.

I use JCAPS6 - so I think it includes version 2 of Glassfish esb. I
installed the hl7 encoder etc following Michael Czapski's document on
writing a hl7 processor.

Thanks,
Neeleem.


Sean Keane wrote:
  
Neeleem,

That does not sound correct.  I use multiple identifiers in PID3 in my 
projects - which version of HL7 are you using, and which version of Open 
ESB?

Sean Keane



    

  
--------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email]
neeleem

Re: Problem with HL7 repeated fields

Reply Threaded More More options
Print post
Permalink
Here goes:

MSH|^~\&|RGH^Radiology|RGH^RAD^I|||20091026150658||ORU^R01|3155922|P|2.3|1|||||||
PID|A|B|M302456^^^^PI~4235165463^^^^NHS~3087269^^^^RADIS|M|TEST2^RADIS||19690409|M||||||||||||||||||||||N
PV1||O|RGH^Royal Glamorgan Hospital|||||BAS^SULLIVAN^B^.A.^^DR~UNKNOWN^^^^^^^GMP|||||||||||||||||||||||||||||||||||||||||||V|
OBR|1||4004944|CTNECK^CT NECK^RADIS||20090916080000|20090922080000||||||""|||BAS^SULLIVAN^B.A.^DR||20||4004944||20091026150654||CT2|Y||ROUTINE|||||HSWSUP^HSWSUP^HSWSUP^HSW|||||||||||||
OBX|1|TX|XTRAY^XTRAY||testmklajajgiajgijaegruo||||||F||||||

Sean Keane wrote:
Neeleem,

Can you send your test data?
neeleem

Re: Problem with HL7 repeated fields

Reply Threaded More More options
Print post
Permalink
Still having this problem... Is any one able to help at all?

Many thanks,
Neeleem.
Raghunadh Teegavarapu

Re: Problem with HL7 repeated fields

Reply Threaded More More options
Print post
Permalink
Hi Neeleem,

As you mentioned that the repeating field values should not go into the
other fields, especially PID3 in your case.

The expected behavior should be,
PID 3 value :  M302456^^^^PI~4235165463^^^^NHS~3087269^^^^RADIS

After parsing :
<PID.3>
<CX.1>M302456</CX.1>
<CX.5>PI</CX.5>
</PID.3>
<PID.3>
<CX.1>4235165463</CX.1>
<CX.5>NHS</CX.5>
</PID.3>
<PID.3>
<CX.1>3087269</CX.1>
<CX.5>RADIS</CX.5>
</PID.3>

I couldn't see the behavior what your facing now and hl7 encoders are
parsing the message correctly.

Please find the attached project for your reference.
1. Create the CA using the attached project.
2 deploy the project.
3. Place the attached input file (HL7Message.txt) at c:/temp.
you will get HL7Message.xml message as expected.

You have not yet released hl7bc or hl7 encoders along with Glassfish ESB
2. I think you have downloaded from nightly builds.

Anyway just try to deploy the attached project in your environment and
see still getting the same issue or not.
If yes, please send me the links from where you have take HL7 encoder,so
that I can try with that.

Since I am going to take off  for next two days, will reply to you on
Monday based on your status.

Thanks
Raghunadh

neeleem wrote:
> Still having this problem... Is any one able to help at all?
>
> Many thanks,
> Neeleem.
>  




---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

SampleHL7ORUR01.zip (174K) Download Attachment
Temp.zip (2K) Download Attachment