Im sorry.. I just don’t know how to do this and I am against the wall .. can someone please help me.. it is really simple..

I need to take each test I have and create a OBX segment for it under the OBR.

I have a mapping table that maps my internal java model objects to things like OBX-X-Y for a given lab that I am sending an order to .

Maybe Terser is not set up for this .. maybe there is another mechanism. I am trying to use the terser.set() and passing in obx(repeatCount)-X-Y where repeatCount is a 1 the 2 then… , and getting a

ca.uhn.hl7v2.HL7Exception: Can't create repetition #1 of Structure OBX - this Structure is non-repeating

but OBX is a repeating segment..

how do I use a bunch of  /.SegmentName-X-Y type things to create an HL7 Order..

I don’t have things like

168         ST observationIdentifier = obx.getObservationIdentifier().getIdentifier();

169         observationIdentifier.setValue("88304");

170         ST extraSubcomponent = new ST(message);

171         extraSubcomponent.setValue("MDT");

172         observationIdentifier.getExtraComponents().getComponent(0).setData(extraSubcomponent );

In my mapping table..

Sorry this is a simple questions and being rushed and frustrated.. is.. clouding my judgement maybe..
------------------------------------------------------------------------------
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

Reply via email to