To find the repeating OBX segment..Here is the code snippet:
To get at the OBX:
ORU_R01 ORU_R01Message = (ORU_R01) theMessage;
for (int PATIENT_RESULTRep = 0;
PATIENT_RESULTRephttp://p.sf.net/sfu/bobj-july
___
Hl7api-devel maili
Thanks Johnny..For note here...
I was doing the same but I did not realized that I was not passing the
values with parameterized strings.
It works.
Here is the snapshot.
ORU_R01 ORU_R01Message = (ORU_R01) theMessage;
for (int i = 0; imailto:[email protected]]
Sent: Tuesday, Aug
On Tuesday 04 August 2009 05:32:25 pm Serbulent Unsal wrote:
> Hi,
>
> I'm trying Hapi's message validation example [1] but I couldn't get regex
> rule exception as far as I change field values to non-valid ones. i.e in
> the example I change the validMessage as below;
>
> String validMessage = "MS
Sorry, you're right, I was assuming an ORM O01 message (which I've been
burying my head in recently). The same principle applies with an ORU_R01
message, though. Try:
int obxCount =
msg.getPATIENT_RESULT().getORDER_OBSERVATION().getOBSERVATIONReps();
for (int i = 0; i < obxCount; i++) {
Hi,
I'm trying Hapi's message validation example [1] but I couldn't get regex rule
exception as far as I change field values to non-valid ones. i.e in the example
I change the validMessage as below;
String validMessage = "MSH|^~\\&|MedSeries|CAISI_1-2|PLS|3910|something wrong
here ||ADT^A31^AD
Not sure...what type of object msg is ..
If it is Message or ORU_R01 in both cases it does not find the methods
you have used.
Help.
Thanks.
Regards
-Niranjan.
-Original Message-
From: Johnny2R [mailto:[email protected]]
Sent: Tuesday, August 04, 2009 7:01 AM
To: [email protected]
I've run into a strange problem with an NTE segment in an HL7 message which I
think is malformed (but which I still have to be able to deal with). The
messages I'm receiving have an NTE segment after the PD1 segment, whereas I
think it should be after the MSH segment. HAPI chokes on it somewhat, i
Something like this should work:
int obxCount = msg.getORDER().getORDER_DETAIL().getOBSERVATIONReps();
for (int i = 0; i < obxCount; i++) {
OBX obx =
msg.getORDER().getORDER_DETAIL().getOBSERVATION(i).getOBX();
//use your terser here
String id = terser.get(obx, 1, 0, 1, 1);
8 matches
Mail list logo