Re: [HAPI-devel] How to build an ORU v23 message

2008-04-14 Thread Albert Hajnalka
Hi, I'm using the followings to get the v2.3.1 segments you mentioned: PID pid = oruMsg.getPIDPD1NK1NTEPV1PV2ORCOBRNTEOBXNTECTI().getPIDPD1NK1NTEPV1PV2().getPID(); PV1 pv1Segment = oruMsg.getPIDPD1NK1NTEPV1PV2ORCOBRNTEOBXNTECTI().getPIDPD1NK1NTEPV1PV2().getPV1PV2().getPV1() OBR obrSegment

[HAPI-devel] parsed message

2008-04-14 Thread Martin
Hi, I am looking for sample code to view the segments of an ORU_R01 message. I can parse my message fine, but when I try to view the message segments, I can't get anything out of it. Any ideas what is the problem here ? I've tried with both V24.Message.ORU_R01 and V23. eg. ORU_R01 ORUR01; ORUR0

Re: [HAPI-devel] Help- ORU and PID

2008-04-14 Thread Daniel Nebot
ca.uhn.hl7v2.model.v23.message.ORU_R01 kk = new ca.uhn.hl7v2.model.v23.message.ORU_R01(); ca.uhn.hl7v2.model.v23.segment.PID pid = kk.getRESPONSE(0).getPATIENT().getPID(); and pid.getX(..) Hope that helps Daniel Nebot Lucas Gonz <[EMAIL PROTECTED]> wrote: Hello, I am working on th

[HAPI-devel] How to build an ORU v23 message

2008-04-14 Thread Lucas Gonz
Hello, I am trying to build an ORU message v23 and I must be missing something coz I cant find out the way to join PID, PV1, OBR and OBX segments to ORU message. Here is my code: (I'll put only the section of PID segment but I'd like to know the same for the rest) ca.uhn.hl7v2.model.v23.messag

Re: [HAPI-devel] Help- ORU and PID

2008-04-14 Thread Lucas Gonz
Hello, I am working on the same, building an ORU message v23 and I wonder the same I have to use the segments: MSH, PID, PV1, OBR and OBX, here is my code but the links between the ORU message and the segments are missing all but the MSH segment, that's why segmentes are pointing null, coz I cant