Re: [HAPI-devel] HELP-OBX

2009-08-06 Thread Sharma, Niranjan K (GE Healthcare)
I have a custom model class factory which returns 2.6 version for any version as input. So my ORU_R01 is 2.6 version. Here is the code snippet for extracting values from ORU_R01 for OBX. public Message processMessage(Message theMessage, Map theMetadata) throws ReceivingApplicationException,

Re: [HAPI-devel] Field validation against regex

2009-08-06 Thread James Agnew
Hi Serbulent, Can you post the code you use to add the regex rule? Cheers, James On Tue, Aug 4, 2009 at 11:05 AM, Serbulent Unsal < [email protected]> wrote: > On Tuesday 04 August 2009 05:32:25 pm Serbulent Unsal wrote: > > Hi, > > > > I'm trying Hapi's message validation ex

Re: [HAPI-devel] Problem with misplaced NTE segment

2009-08-06 Thread James Agnew
Hi Johnny, You are probably running up against one of the more unusual features of the parser. If it detects a segment it doesn't expect, it will move to the end of the current group, and add a non standard segment there. Unfortunately, this often has the by-product of causing it to skip past the

Re: [HAPI-devel] HELP-OBX

2009-08-06 Thread James Agnew
That's odd. The following code works for me: ORU_R01 oru = new ORU_R01(); oru.getMSH().getEncodingCharacters().setValue("^~\\&"); oru.getMSH().getFieldSeparator().setValue("|"); oru.getMSH().getMessageType().getMessageCode().setValue("ORU"); oru.getMSH().ge

Re: [HAPI-devel] Problems in Conformance profiles created by Message Work Bench

2009-08-06 Thread Serbulent Unsal
On Wednesday 05 August 2009 05:16:11 pm James Agnew wrote: > Let me know how it works out! If the manual helps, I'll put a link in the > example page and maybe add an FAQ entry. Thanx I'll look at it. Regards -- Serbulent Unsal | Software Expert GSM : +90 555 697 50 46 | Tel : +90.312.478 48 00

Re: [HAPI-devel] Field validation against regex (SOLVED)

2009-08-06 Thread Serbulent Unsal
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