Menu

#217 PV1 issue

2.3
closed-rejected
nobody
2
2014-07-10
2014-07-10
ankit
No

Hi There

I am using .Net 2.0 console application to parse HL7 v2.3 message.
I am getting error currently as my client decided to move from v2.2 to v2.3.

In .Net before we do anything, we parse the whole message to it's DLL (file: NHapi.Model.V23.dll). This takes care of parsing it correctly and we can get what we need later.

I do get an error when I have more than one Item in PV1. Funny thing is when I parse whole message ( all 8-12) line message via DLL at first, it throws an error. It looks like DLL is not expecting repeated value even HL7 standard allow it.

I have looked at following link and thought somebody might have some solution.
http://sourceforge.net/p/hl7api/mailman/message/3793683/

My .Net Code
Dim oruMessage As NHapi.Model.V23.Message.ORU_R01 = CType(p.parse(currentMessage), NHapi.Model.V23.Message.ORU_R01)

Where currentMessage is:
MSH|^~\&|CERNERPM|ALF|DGATE|ALF|20140665859657||ORU^R01|CR01Ca0704115105513|P|2.3
PID|1||1123362^^^71376^PI~C-U^^^HIC^MC||TEST^TEST^TEST^^MR^^L||19900411|M||2|1-5 ALEXIA ST^^BRUNSWICK^VIC^3056^""^H^^""||0459 521 447^PRN^""||01|O|UNK||||||2303||0|""|""|""||N
PV1|1|O|CD:168553726^^^ALF^^^ALF|""|||LJ542^Someone^Maynon^:CLAYTON\E\PCOOK Medical Centre|||""|""|""|""|""|""|""|201329EW^Someone^Maynon^:CLAYTON\E\PCOOK Medical Centre^^^^^^^^^COMMUNITY DR NBR^""~LJ542^Someone^Maynon^:CLAYTON\E\PCOOK Medical Centre^^^^^^^^^ORGANIZATION DOCTOR^""~LJ542^Someone^Maynon^:CLAYTON\E\PCOOK Medical Centre^^^^^^^^^External Identifier^""||2890578|UNK||""||||||||||||||""|""|""|ALF||A|||20140624091353
ORC|RE
OBR|1|159140330^HNAM_ORDERID||Differential^DIFF^Differential|||20140624081600|||||||20140624091900|BL&Blood^^^^^Venous Draw|LJ542^Someone^Maynon^:CLAYTON\E\PCOOK Medical Centre||||000002014175006687^HNA_ACCN~26832^HNA_ACCNID||20140624093556||LA|F||1^^^20140624081600^^RT~^^^^^RT|||||||||20140624081600
OBX|1|NM|Neutrophils^Neutrophils^Neutrophils||3.53|10\S\9/L^10\S\9/L|1.90-8.00|N||UNKNOWN|F|||20140624093555||^A/Prof Barak Boon|^^^HH DxH 1
ZBX|1|MESSAGE|SOURCE_ID|Q151309415T237769517

I have tried to decode this message. Anyway, you will get some idea with this.

ASAP help will really help. Thanks.

Discussion

  • James Agnew

    James Agnew - 2014-07-10

    Hello,

    This is actually the tracker/website for the Java version of HAPI. You would need to submit this question to the NHapi website.

    Cheers,
    James

     
  • James Agnew

    James Agnew - 2014-07-10
    • status: open --> closed-rejected
     

Log in to post a comment.