nHapi
nHapi copied to clipboard
HL7 2.4 ORM_O01 only supports single OBR
Affected Version: 2.5.0.6
I am only able to get a single OBR from the parsed ORM_O01 object for HL7 v2.4. I looped through the ORM_O01_ORDER collection and found that each object of this type has a single ORDER_DETAIL object which contains a single OBR object. My understanding is that there should be support for one or more OBR segments for a given ORC, but the object structures in nHapi don't appear to support more than one.
Looks like these people had a similar issue: https://sourceforge.net/p/nhapi/discussion/569648/thread/fc57a720/
Test Message:
MSH|^~\&|HIS|MedCenter|LIS|MedCenter|20060307110114||ORM^O01|MSGID20060307110114|P|2.4
PID|||12001||Jones^John^^^Mr.||19670824|M|||123 West St.^^Denver^CO^80020^USA|||||||
PV1||O|OP^PAREG^||||2342^Jones^Bob|||OP|||||||||2|||||||||||||||||||||||||20060307110111|
ORC|NW|20060307110114
OBR|1|20060307110114||003038^Urinalysis^L|||20060307110114
OBR|2|20060307110114||003050^BloodCount^L|||20060307110114
Issue confirmed. Will update the detail record to allow multiple OBRs.