Hi,
I have what seems like should be a simple question but I am really struggling
with this.
I have an ORM message like this:
MSH|^~\&|TEST|TEST|LAB|HH Lab|20120209095111||ORM^O01|240679|P|2.3|||NE|NE
PID|||9476||J^M^A||19711229|M||A
PV1|||||||^N.N.
ORC|NW|240679|||||^^^^^R^Y||20120209095111
OBR|1|240679||PXUAMACR|||201202090945||||O||||Urine^^01||||||||||||^^^^^R^Y
OBR|2|240679||BNZUR|||201202090945||||O||||Urine^^01||||||||||||^^^^^R^Y
CTI|205631|SCR|D001
I'm trying to parse this and pull out the two OBR's but I'm having a tough time
getting to the two OBR's. Only the first OBR seems to be visibile. I've tried
changing the 2.3 to 2.4,2.5,2.6 etc.
When I do a printStructure on the message, I see the following.
<snip>
ORDER (start)
{
ORC - ORC|NW|240679|||||^^^^^R^Y||20120209095111
ORDER_DETAIL (start)
[
OBR -
OBR|1|240679||PXUAMACR|||201202090945||||O||||Urine^^01||||||||||||^^^^^R^Y
[ { OBR2 } ] (non-standard) -
OBR|2|240679||BNZUR|||201202090945||||O||||Urine^^01||||||||||||^^^^^R^Y
<snip>
]
ORDER_DETAIL (end)
<snip>
This seems to match the 2.3-2.6 HAPI structure API's. However, in the HL7 spec,
I see:
MESSAGE ORM - ORDER MESSAGE
MSH
<snip>
{
ORC
[
[
{
ANY OF OBR, ODS, ODT, RQD AND RXO
}
]
[ RQ1 ]
]
<snip>
}
Which makes me think that the OBR should be repeatable.
I feel like I am missing or am misunderstanding something. I would really
appreciate any help I can get.
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel