Hi Giorgio,
the "how to" depends on what data you want to set. If you would like to
enter data into "name of coding system" of the "units" field (OBX-6:
Units (CE)) you would call:
obx.getUnits().getNameOfCodingSystem().setValue("L");
Setting responsible observer fields could look like:
obx.getResponsibleObserver().getFamilyName().setValue("Univ");
obx.getResponsibleObserver().getGivenName().setValue("Giorgio");
Another way is to use the Terser class by specifying terse locations:
ORU_R01 oru_r01 = new ORU_R01();
Terser t = new Terser(oru_r01);
// obxMapping is defined earlier somewhere in my own application.
// just adjust to your needs
t.set("/.OBX-3-1", obxMapping[0]);
t.set("/.OBX-3-2", obxMapping[1]);
Greets
Torben
giorgio univ schrieb:
> Dear all,
> i am developing an application where i have to create some hl7 messages: the
> question that i want to post is how to enter data in an OBX segment.
> I tried to do :
>
> OBX obx=
> oru.getPIDPD1NK1NTEPV1PV2ORCOBRNTEOBXNTECTI().getORCOBRNTEOBXNTECTI().getOBXNTE().getOBX();
> obx.getObservationValue(0).setData(),,,,,,,but here i don't know how
> to continue..
> can you help me?
> thanks in advance,
> Giorgio
>
> _________________________________________________________________
> Windows Live Messenger 8.1: Chat, videochat, giochi, blog, e-mail e
> condivisione files GRATIS! http://www.messenger.it/
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Hl7api-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel