Hi All,
I am a java developer, Currently I am working the HL7 messages. Construct and parsing the HL72.5.1 messages using jaxb.
I have different type of OBX segments contained ORU_R01 hl7 messages. I used the Pipeparser to parse the HL7 message and encode it. I got an XML.
After Unmarshalling while retreiving the data for all values no issue. But OBX5 segment I can not get it.
Working Scenario :
Parser will check the OBX-2 element. based on the second element only we get the OBX-5 data.
Sample:
OBX|1|NM|30341-2^Colonoscopic polypectomy^LN^815117^ESR^99USI^^^Colonoscopic polypectomy||100|mm/h^millimeter per hour^UCUM|0 to 17|H|||C|||20110331140551-0800|||||20110331150551-0800||||Century Hospital^^^^^NIST-AA-1&2.16.840.1.113883.3.72.5.30.1&ISO^XX^^^987|2070 Test Park^^Los Angeles^CA^90067^USA^B^^06037|2343242^Knowsalot^Phil^J.^III^Dr.^^^NIST-AA-1&2.16.840.1.113883.3.72.5.30.1&ISO^L^^^DN
It will check the second element as 'NM' - numeric. I got the OBX is "100"
Issue:
Other than the numeric data type in OBX-2, I could not get the OBX-5 values
like SN,CWE,ED,CE.
Sample OBX:
OBX|1|CWE|22314-9^Hepatitis A virus IgM Ab [Presence] in Serum^LN^HAVM^Hepatitis A IgM antibodies (IgM anti-HAV)^L||260385009^Negative (qualifier value)^SCT^NEG^NEGATIVE^L^^^Negative (qualifier value)||Negative|N|||F|||20120628070100|||||20120628100500||||XXX Hospital Laboratory^^^^^NIST HCAA-1&2.16.840.1.113883.3.72.5.30.1&ISO^XX^^^34D4567890|123 High Street^^Princeton^NJ^08540^USA^O^^34021|^Martin^Steven^M^^Dr.
I expect the result a List :
[260385009,Negative (qualifier value),SCT,NEG,NEGATIVE,L,Negative (qualifier value)]
but I got the output List as
[ ,[CWE.1:null],,[CWE.2:null],,[CWE.3:null],,[CWE.4:null],,[CWE.5:null],,[CWE.6:null],,[CWE.7:null]]
Why the null values come? I need the data in the list. Also anyone clearly explain the "varies" datatype.
OBX-5 extends Varies
Previously I read the posts and made the changes in xsd
varies data type used mixed="1"
I got getContent() instead of getAny().
jaxb latest version
HAPI 2.1
Hl7 2.5.1
I would expect the solution as soon as possible
Thanks and Regards
Rafi
Hi Rafi,
I'm not clear on what the issue is here. Can you please attach a test case to this case which demonstrates your issue?
James
Hi James,
Thanks for the reply and Sorry for the confusion.
I have done the unmarshall to get the values from HL7 (v2.5.1)files using jaxb java classes(ORU_R01). I have been attached it (test.hl7)
and using the java code attached (Unmarshall.java) to unmarshall it and get the OBX values.
While get the OBX-5 values I got issue.
OBX-5th element I got null values.
Kindly check the attachments and let me know as soon as possible.
This is really very important field in my project.
Thanks and Regards
Rafi
Hi James,
Thanks for the reply and Sorry for the confusion.
I have done the unmarshall to get the values from HL7 (v2.5.1)files using jaxb java classes(ORU_R01). I have been attached it (test.hl7)
and using the java code attached (Unmarshall.java) to unmarshall it and get the OBX values.
While get the OBX-5 values I got issue.
OBX-5th element I got null values.
Kindly check the attachments and let me know as soon as possible.
This is really very important field in my project.
Thanks and Regards
Rafi
Could you please provide an update for this.
Regards
Rafi
Hi All,
I am java developer. I have the same kind of issue while creating the HL7 OBR R01 message. When i try to create OBX segment , there is no setter method provided to set the value for OBX5. so how do i set that segment? as it is required segment.
Please let me know if you have set those values and generated OBX segment.
Regards,
Rajan