Re: [HAPI-devel] Having Difficulty Extracting Data from a Segment using Terser

2007-05-08 Thread Dilworth, Bob
Hi Jeff! Thanks I previously tried using the ("/.PID-5-1") syntax which did work. I also wanted to try the other way of extracting the data using the (pid,5,0,1,1) syntax but couldn't get it to work. Thanks Again!! Bob D. -Original Message- From: Jeff Gunther [mailto:

Re: [HAPI-devel] Having Difficulty Extracting Data from a Segment using Terser

2007-05-08 Thread Jeff Gunther
Hi Bob, Try using the code snippet below. Jeff Gunther Intalgent 100 10th Street NE, Suite 303 Charlottesville, VA 22902 T: (434) 977-5152 ext. 100 F: (866) 812-5291 [EMAIL PROTECTED] String [] theHL7; FileInputStream is = new FileInputStream("t:/ci/hl7testdata/pwlraworu- testside.dat"); theHL7

Re: [HAPI-devel] Having Difficulty Extracting Data from a Segment using Terser

2007-05-08 Thread Dilworth, Bob
Hi Torben! Your suggestion worked wonderfully!! Thank you very much. Plus, I learned some more about HAPI - which is a good thing!! Danke! Bob D. -Original Message- From: Torben Greiser [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007 2:09 PM To: Dilworth, Bob Cc: hl7api-devel@

Re: [HAPI-devel] Having Difficulty Extracting Data from a Segment using Terser

2007-05-08 Thread Torben Greiser
Hi Bob, well its obvious, because PID directly in ca.uhn.hl7v2.model.v22.message.ORU_R01 really does not exist. If you take a look at the source, you will need to get the group ORU_R01_PATIENT_RESULT first that contains a ORU_R01_PATIENT group that contains the PID segment. To fetch the PID you

[HAPI-devel] Having Difficulty Extracting Data from a Segment using Terser

2007-05-08 Thread Dilworth, Bob
Hi All! I'm trying to extract data from field 5 in the PID segment of an ORU R01 message using Terser. I receive the error: Exception in thread "main" ca.uhn.hl7v2.HL7Exception: PID does not exist in the group ca.uhn.hl7v2.model.v22.message.ORU_R01 when I run my code. It's a really simple li