Hi,

I'm a newbie in HL7 and HAPi development. I'm trying to use the examples
by replacing:

"import ca.uhn.hl7v2.model.v24.message.ADT_A01;
import ca.uhn.hl7v2.model.v24.segment.MSH;
import ca.uhn.hl7v2.model.v24.segment.PID;"

to

"import ca.uhn.hl7v2.model.v26.message.ADT_A01;
import ca.uhn.hl7v2.model.v26.segment.MSH;
import ca.uhn.hl7v2.model.v26.segment.PID;"

but the API has changed and it doesn't work. About the date & time of
the message, I solved by replacing:

mshSegment.getDateTimeOfMessage().getTimeOfAnEvent().setValue("200701011539");

to

mshSegment.getDateTimeOfMessage().setValue("200701011539");

But I'm stalled in:

"mshSegment.getMessageType().getMessageType().setValue("ADT");"

It seems that the second getMessageType() method doesn't appear and I
don't know how to create an ADT message correctly.


Best regards,

Jaime


-- 
Tec. Eng. Jaime Martin Jimenez

Universidad Carlos III de Madrid
Dep. de Ingenieria Telematica
Av. Universidad, 30
E-28911 Leganes (Madrid), Spain
Tel:(+34) 91 624-5949
Fax: (+34) 91-624-8749
Email: [email protected]
Web: http://www.it.uc3m.es/jmartin/index.html

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to