Re: [HAPI-devel] extracting OBX-content from a ORF^R04 message

2010-05-21 Thread Fatih Topal
Hi Christian, wow, that was a very quick and helpful answer. :) Thank you very much! If anyone is interested in how to get the number of repetitions, this is how i made it: ORF_R04 orf = (ORF_R04) mess; int query_reps = orf.getQUERY_RESPONSEReps(); int order_reps = orf.getQUERY_RESPONSE().getO

Re: [HAPI-devel] extracting OBX-content from a ORF^R04 message

2010-05-21 Thread christian ohr
Hi Fatih, the Terser syntax very closely follows the structure in the HAPI structure objects. Therefore one can derive the syntax by navigating to the desired field beginning in ca.uhn.hl7v2.model.v25.message.ORF_R04 In your case (using the recent HAPI version): Terser t = ne

[HAPI-devel] extracting OBX-content from a ORF^R04 message

2010-05-20 Thread Fatih Topal
Hi all, I get a response message of ORF^R04 type and want to extract the contained OBX segments for further processing. This seems to be a common problem, but I didnt find a solution. The message looks like: MSH|^~\&|EKG||CDB||198905201201||ORF^R04|X981672|P|2.5| MSA|AA|CDB2|P| QRD|1989041