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.getXXXXXXXXX(..)
Hope that helps
Daniel Nebot
Lucas Gonz <[EMAIL PROTECTED]> wrote:
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 find any
ORU.getPID(); or something like that the same way it's used for MSH segment,
HELP! ;)
//Menssaje de peticion de prueba+demograficos+datosPrueba
ca.uhn.hl7v2.model.v23.message.ORU_R01 ORU= new
ca.uhn.hl7v2.model.v23.message.ORU_R01();
/*
* CREACION DEL SEGMENTO MSH
*/
ca.uhn.hl7v2.model.v23.segment.MSH mshSegmentORU = ORU.getMSH();
mshSegmentORU.getFieldSeparator().setValue("|");
mshSegmentORU.getEncodingCharacters().setValue("^~\\&");
mshSegmentORU.getDateTimeOfMessage().getTimeOfAnEvent().setValue(
"200801051200");
mshSegmentORU.getSendingApplication().getNamespaceID().setValue(
"CPO_EMR");
mshSegmentORU.getReceivingApplication().getNamespaceID().setValue("CARDIOSOFT");
mshSegmentORU.getSequenceNumber().setValue("20040327110218");
mshSegmentORU.getMessageType().getMessageType().setValue("ORU");
mshSegmentORU.getMessageControlID().setValue("20040327110218001");
mshSegmentORU.getProcessingID().getProcessingMode().setValue("P");
mshSegmentORU.getVersionID().setValue("2.3");
mshSegmentORU.getAcceptAcknowledgementType().setValue("NE");
/*
* CREACION DEL SEGMENTO PID
*/
ca.uhn.hl7v2.model.v23.segment.PID pidSegmentORU = null;
pidSegmentORU.getSetIDPatientID().setValue("1");
pidSegmentORU.getPatientIDInternalID(1);//comprobar
pidSegmentORU.getRace().setValue("W");
//OPCIONAL//pidSegmentORU.getDateOfBirth()
pidSegmentORU.getSex().setValue("M");
/*
* CREACION SEGMENTO PV1
*/
ca.uhn.hl7v2.model.v23.segment.PV1 pv1SegmentORU = null;
pv1SegmentORU.getSetIDPatientVisit().setValue("1");
pv1SegmentORU.getAssignedPatientLocation().getRoom().setValue("14");
pv1SegmentORU.getAttendingDoctor(99);//EXAMINAR estos dos porque
deberiamos de meter
pv1SegmentORU.getReferringDoctor(999);//nombres de doctores en vez de
numeros
/*
* CREACION SEGMENTO OBR
*/
ca.uhn.hl7v2.model.v23.segment.OBR obrSegmentORU = null;
obrSegmentORU.getSetIDObservationRequest().setValue("1");
obrSegmentORU.getUniversalServiceIdentifier().getText().setValue("R_ECG");
obrSegmentORU.getRequestedDateTime().getTimeOfAnEvent().setValue("20080410100000");
obrSegmentORU.getOrderingProvider(1);
/*
* CREACION SEGMENTO OBX
*/
ca.uhn.hl7v2.model.v23.segment.OBX obxSegmentORU = null;
.......
..........
Daniel Fuertes Severo wrote:
>
>
> Hi!
> I'm new to HAPI and HL7 and I've found a problem, maybe somebody could
> help.
>
> I'm trying to build an ORU message with some unsolicited info. I suppose I
> have to send some information about the patient (PID, Patient ID), but
> there are no fields about PID for ORU messages!! (can't do getPatientName
> or setValue).
>
> I reckon I'm missing something.... How can I solve this problem??
>
> Thank you in advance
>
> Daniel
>
>
> _________________________________________________________________
> TecnologÃa, moda, motor, viajes,â¦suscrÃbete a nuestros boletines para
> estar siempre a la última
> http://newsletters.msn.com/hm/maintenanceeses.asp?L=ES&C=ES&P=WCMaintenance&Brand=WL&RU=http%3a%2f%2fmail.live.com
> -------------------------------------------------------------------------
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> Hl7api-devel mailing list
> Hl7api-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>
>
--
View this message in context:
http://www.nabble.com/Help--ORU-and-PID-tp14395991p16671679.html
Sent from the hl7api-devel mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel