Re: [HAPI-devel] help required!

2014-02-05 Thread Venkatesh Sundaramoorthy
Great Jens... It works .. thanks a lot.. Thanks, Venkatesh S On Wed, Feb 5, 2014 at 8:18 PM, Jens Villadsen < [email protected]> wrote: > Hi Venkatesh > > - Initialize your DefaultHapiContext with the DefaultValidationWithoutTN > > - Then you should be rolling :) > > > On 5 Februa

Re: [HAPI-devel] help required!

2014-02-05 Thread Sreenath Gadipally
Ya its really helpful to us..Thanks sourceforge Thanks & Regards Sreenath From: Jens Villadsen [mailto:[email protected]] Sent: 05 February 2014 14:49 To: Venkatesh Sundaramoorthy Cc: HAPI Devel List Subject: Re: [HAPI-devel] help required! Hi Venkatesh - Initialize

Re: [HAPI-devel] help required!

2014-02-05 Thread Jens Villadsen
Hi Venkatesh - Initialize your DefaultHapiContext with the DefaultValidationWithoutTN - Then you should be rolling :) On 5 February 2014 04:12, Venkatesh Sundaramoorthy wrote: > Beautiful. I am about to reply to this with the same. You have replied > it.. Thanks James. Once again thanks for yo

Re: [HAPI-devel] help required!

2014-02-04 Thread Venkatesh Sundaramoorthy
Beautiful. I am about to reply to this with the same. You have replied it.. Thanks James. Once again thanks for your prompt response. I'm really excited about this.. thanks for this Now I am encountering the below error w.r.t phone number. If I remove the number it works fine but if the phone

Re: [HAPI-devel] help required!

2014-02-04 Thread James Agnew
Hi Venkatesh, Your message string is missing segment delimiters (\r) at the end of each line. Change "[...]2.3.1" to "[...]2.3.1\r" and so on for each line and that code should work. Cheers, James On Tue, Feb 4, 2014 at 8:46 PM, Venkatesh Sundaramoorthy wrote: > Hi, > > > > I am new to HL7, I

Re: [HAPI-devel] help required!

2014-02-04 Thread Pablo Pazos
Look at your message, the exception is telling you the problem: 2.3.1" +"RF1 On Tue, Feb 4, 2014 at 11:46 PM, Venkatesh Sundaramoorthy wrote: > Hi, > > > > I am new to HL7, I am trying to process a sample HL7 message using HAPI > API I am getting the following exception and I am unabl

[HAPI-devel] help required!

2014-02-04 Thread Venkatesh Sundaramoorthy
Hi, I am new to HL7, I am trying to process a sample HL7 message using HAPI API I am getting the following exception and I am unable to proceed further. Please, assist me on how to resolve this issue. Appreciate your help. FYI: I added all the jar files provided under lib folder onto my clas

Re: [HAPI-devel] Help to parse HL7 message

2013-01-02 Thread Rahul Somasunderam
HAPI does not support batch messages, i.e. FHS... R, rahul On Dec 28, 2012, at 9:14 PM, Mann wrote: > Hi, > > > I am new to HL7 parsing,I need to submit in 2 days the parsing code. > > I can not parse the HL7 message which is starting from FHS segment. > Please HELP. > > FHS|^~\&|Medical-Ob

[HAPI-devel] Help to parse HL7 message

2012-12-28 Thread Mann
Hi, I am new to HL7 parsing,I need to submit in 2 days the parsing code. I can not parse the HL7 message which is starting from FHS segment. Please HELP. FHS|^~\&|Medical-Objects|Test Message capricorn BHS|^~\&|Medical-Objects|Test Message capricorn MSH|^~\&|EQUATORDXTRAY^EQUATORDXTRAY:2.20.2 B

Re: [HAPI-devel] HELP-OBX

2012-06-21 Thread tcervantez
I figured out how to get and set multiple OBX segments using terser. hapiMsg = p.parse(sourceMessage); Terser terser = new Terser(hapiMsg); terser.get("/.OBSERVATION(2)/.OBX-2-1"); terser.set("/.OBSERVATION(2)/.OBX-2-1", "CE"); This is equivelent to: OBX obx = message.getPATIENT_RESULT().getORD

Re: [HAPI-devel] HELP-OBX

2012-06-21 Thread tcervantez
I figured out how to get and set multiple OBX segments using terser. hapiMsg = p.parse(sourceMessage); Terser terser = new Terser(hapiMsg); terser.get("/.OBSERVATION(2)/.OBX-2-1"); terser.set("/.OBSERVATION(2)/.OBX-2-1", "CE"); This is equivelent to: OBX obx = message.getPATIENT_RESULT().getORD

Re: [HAPI-devel] HELP: how to get the number of repetitions for MFN_M15

2010-06-09 Thread christian ohr
Hi Mark, MSH-9 is slightly misformatted - this causes HAPI to skip creating the MSH segment and therefore no MFN_M15 but a ca.uhn.hl7v2.model.GenericMessage$V25 is created and you get the ClassCastException. Simply replace |MFN^M15^MFN M15| with |MFN^M15^MFN_M15| (note the underscore instead of

Re: [HAPI-devel] HELP-OBX

2009-08-06 Thread Sharma, Niranjan K (GE Healthcare)
// generates an // appropriate ACK ret Val = DefaultApplication.makeACK((Segment) theMessage.get("MSH")); } catch (IOException e) { throw new HL7Exception(e); } return retVal; } From: James Agnew [mailto:j

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] HELP-OBX

2009-08-03 Thread nksharma0624
I am having the similar problem... I have tried all and nothing works... I have tried the code segment like below: Terser t = new Terser(theMessage); String str= t.get("/PATIENT_RESULT/ORDER_OBSERVATION/OBSERVATION/OBX-3-1"); // ORU_R01 ORU_R01Message = (ORU_R01)theMessag

[HAPI-devel] HELP-OBX

2009-04-23 Thread Kumud Patel
Hi , I am new in HL7 and want to create ORU message, In that we need to create multiple OBX segment for pass text data in OBX-5. Ex. Like this... MSH|^~\&|MTS001||DMCRES||19951013155723||ORU^R01|MTS0011995101315572338| P|2.2NE PID|||N98765 ||PYLE^KENNETH|5631||M OBR|||J3AOJ012

Re: [HAPI-devel] Help- ORU

2009-04-15 Thread James Agnew
Hi Kumud, There is some example code for creating an ORU message, as well as sending and receiving messages, on the example page of the HAPI website. You can find it here: http://hl7api.sourceforge.net/devbyexample.html Cheers, James On Wed, Apr 15, 2009 at 12:33 PM, Kumud Patel wrote: > Hi,

[HAPI-devel] Help- ORU

2009-04-15 Thread Kumud Patel
Hi, I am new to HAPI and HL7, I have received message(ADT) from the client but I do not know how to send ORU. So, please help me how to send ORU. And please provide the sample code,API for all the segment ,if any. Thanks --

Re: [HAPI-devel] Help- ORU and PID

2008-04-14 Thread Daniel Nebot
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.getX(..) Hope that helps Daniel Nebot Lucas Gonz <[EMAIL PROTECTED]> wrote: Hello, I am working on th

Re: [HAPI-devel] Help- ORU and PID

2008-04-14 Thread Lucas Gonz
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

Re: [HAPI-devel] Help- ORU and PID

2007-12-19 Thread Torben Greiser
Hi Daniel, take a look at the source: ORU_R01 -> ORU_R01_PATIENT_RESULT -> ORU_R01_PATIENT -> PID So in your Java code: your_oru_r01_msg.getPATIENT_RESULT().getPATIENT().getPID() Greets Torben Daniel Fuertes Severo schrieb: > Hi! > I'm new to HAPI and HL7 and I've found a problem, maybe some

[HAPI-devel] Help- ORU and PID

2007-12-18 Thread Daniel Fuertes Severo
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 getPatie

[HAPI-devel] Help

2007-04-23 Thread SLC_Utes
I'm trying to evaluate the HAPI API for a project that I"m currently working on. I'm having difficulty understanding how to get the information out of the ca.uhn.hl7v2.model.Message object. It's resulting class is a ca.uhn.hl7v2.model.v231.message.ORU_R01 here is a code exerpt ... --