FileResult w Multiple OBR & OBX segments

FileResult w Multiple OBR & OBX segments

Postby TammyJo » Fri Jul 06, 2012 3:37 pm

I have a new lab result interface and the lab source sends out ORU messages with multiple ORC and OBR and OBX segments. So the situation is if multiple orders are placed for the same department they are sent out in the same message. So the ORC repeats altho the data in the fields is the same (no set id), however the OBR has set id |1| and |2| etc and the OBX segments also have that but they don't seem to have anything to tie it to the OBR it goes with?
So wondering how I build this in ConnectR? Do I use switches? Do I need to build additional Segments in Message Definition? Help. Here's a small example:

ORC|RE||0705:BB00001R||||||201207051630<13>
OBR|1|11866.001|11866.001^B6203^201207|Type and Screen^Type and Screen^BBK^00005504^TS^Type and Screen|||201207051537|||JS853||||201207051537||1851323901^BELLAMY^BRIAN^^^^^^^^^^PN||||||201207051633||BLB|F|||1851323901^BELLAMY^BRIAN^^^^MD^^^^^^PN<13>
OBX|1|ST|BLD TYPE^Blood Type^BLD TYPE|1|A POSITIVE|||N|||F|||201207051632||JS853^SRCH^JEAN<13>
OBX|2|ST|ABS^Antibody Screen^ABS|1|POSITIVE|||N|||F|||201207051632||JS853^SRCH^JEAN<13>
ORC|RE||0705:BB00001R||||||201207051630<13>
OBR|2|11866.001|11866.001^B6203^201207|Antibody Identification^Antibody Identification^BBK^00005504^ABID^Antibody Identification|||201207051537|||JS853||||201207051537||1851323901^BELLAMY^BRIAN^^^^^^^^^^PN||||||201207051633||BLB|F|||1851323901^BELLAMY^BRIAN^^^^MD^^^^^^PN<13>
OBX|1|ST|....(the sending source I get from now is not configured to send the OBX to me so they are fixing that and I'll get a better sample after that but there would be more OBX segments here resulting the Antibody Identification test. There could be many more ORC/OBR/OBX segments as well depending on how many orders were placed for that department. They all share the Placer ID)
<28><13>


Thanks for any assistance.
TammyJo
 
Posts: 4
Joined: Thu Aug 11, 2011 12:25 pm

Re: FileResult w Multiple OBR & OBX segments

Postby rlape » Sat Jul 07, 2012 2:52 pm

You will need to utilize switches to handle the repeating segments. You will need to define the segments that repeat and the exception field within that segment that is different with each new instance of that segment. This tells ConnectR to make another stored procedure call each time a different value is found in the repeating segment.

In your case you will have a switch for the OBR segment with an exception of OBR4 and a switch for the OBX segment with an exception of OBX3. You will likely not need one for ORC. Here is an example of the switches on a typical lab result interface.

Switches.JPG
You do not have the required permissions to view the files attached to this post.
Ray Lape | Senior Consultant
Galen Healthcare Solutions
ray.lape@galenhealthcare.com
rlape
 
Posts: 40
Joined: Wed Mar 30, 2011 12:34 pm
Location: Burlington, KY

Re: FileResult w Multiple OBR & OBX segments

Postby TammyJo » Mon Jul 09, 2012 2:05 pm

Thanks. I will give that a try.
TammyJo
 
Posts: 4
Joined: Thu Aug 11, 2011 12:25 pm


Return to Order/Result

Who is online

Users browsing this forum: No registered users and 1 guest

cron