From: Sharma, N. K (GE Healthcare) <nir...@me...> - 2009-08-04 14:23:33
|
Not sure...what type of object msg is .. If it is Message or ORU_R01 in both cases it does not find the methods you have used. Help. Thanks. Regards -Niranjan. -----Original Message----- From: Johnny2R [mailto:gr...@jm...] Sent: Tuesday, August 04, 2009 7:01 AM To: hl7...@li... Subject: Re: [HAPI-devel] How to find Repeating Segments Something like this should work: int obxCount = msg.getORDER().getORDER_DETAIL().getOBSERVATIONReps(); for (int i = 0; i < obxCount; i++) { OBX obx = msg.getORDER().getORDER_DETAIL().getOBSERVATION(i).getOBX(); //use your terser here String id = terser.get(obx, 1, 0, 1, 1); String value = terser.get(obx, 5, 0, 1, 1); } -- View this message in context: http://www.nabble.com/How-to-find-Repeating-Segments-tp24700999p24808110 .html Sent from the hl7api-devel mailing list archive at Nabble.com. ------------------------------------------------------------------------ ------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Hl7api-devel mailing list Hl7...@li... https://lists.sourceforge.net/lists/listinfo/hl7api-devel |