Re: [HAPI-devel] String ca.uhn.hl7v2.model.primitive.CommonTS.toHl7TSFormat(GregorianCalendar arg0) throws DataTypeException

2013-09-23 Thread ldh
Hello,I think Christian was talking about the version of HAPI, not the HL7 version you happen to parse out.

Re: [HAPI-devel] Generic class for ADT message

2013-06-18 Thread LDH
I am not aware of one in 1.x... I don't know 2.x well enough yet. I am on the road, but I can send out later the type of code I have used to be adt generic. ___ Laurent Hasson (via my BlackBerry) email: [email protected] cell: 646-283-2186 twitter: @ldhas

Re: [HAPI-devel] reading HL7 generically

2013-01-10 Thread LDH
I think that you (and I in another email) argue that it IS possible to have an ADT superstructure. I think it would be very useful, as a union of all segments. Such a superstructure and a more permissing getSegment feature (without the exception throwing everywhere when missing) would be welcome

Re: [HAPI-devel] Processing Incoming Messages on Multiple ports.

2012-12-18 Thread LDH
Our issue is a bit different. We used to process an aggregated feed, so we have smart logic that can already process a variety of feeds intelligently with our handler. Running 2 instances of the server would work but would not perform well enough as we do not have a multi-process caching strate

Re: [HAPI-devel] Catastrophic failure...

2012-12-03 Thread LDH
s like its a proper solution for you. 2012/12/2 LDH I have performed some stress testing this weekend. One test is to kill our database, which causes our HAPI code that ingests messages to fail. Our strategy so far was simply to return a NACK, but we discovered that the system that is sending us

Re: [HAPI-devel] Catastrophic failure...

2012-12-03 Thread LDH
tion - that makes the HAPI thread choke and nothing will be returned and the entire framework still lives on. That sounds like its a proper solution for you. 2012/12/2 LDH mailto:[email protected]>> I have performed some stress testing this weekend. One test is

[HAPI-devel] Catastrophic failure...

2012-12-02 Thread LDH
I have performed some stress testing this weekend. One test is to kill our database, which causes our HAPI code that ingests messages to fail. Our strategy so far was simply to return a NACK, but we discovered that the system that is sending us messages is taking ANY response as a success ind

Re: [HAPI-devel] Testing if a segment is actually in a message

2012-11-09 Thread LDH
austed. If you know where the segment is located within the message, check if msg.currentReps(segmentName) equals to 0. This call should not create the segment if it does not exist cheers Christian LDH-2 wrote: If i do Msg.getNames(), i get a list of all valid segments for that message. Howeve

[HAPI-devel] Testing if a segment is actually in a message

2012-11-08 Thread LDH
If i do Msg.getNames(), i get a list of all valid segments for that message. However, i'd like to have a list only of the segments that were actually there. The get("SEGMENT") method will create a default segment if it's not there. Is that possible? -

Re: [HAPI-devel] ACK performance

2012-11-08 Thread LDH
er-the-hood cleanups have been made, and they will require a fair bit of testing before we trust them enough to release them publicly. Naturally, you can always build from source if you wanted to check it out early. Cheers, James On Thu, Nov 8, 2012 at 4:20 PM, LDH <mailto:l...@360fre

Re: [HAPI-devel] ACK performance

2012-11-08 Thread LDH
s On Thu, Nov 8, 2012 at 9:52 AM, LDH <mailto:[email protected]>> wrote: Is there a reason why creating an ACK is so slow? I am calling DefaultApplication.makeACK(_Msh); This takes almost as long as the parsing of the full message coming in which se

[HAPI-devel] ACK performance

2012-11-08 Thread LDH
Is there a reason why creating an ACK is so slow? I am calling DefaultApplication.makeACK(_Msh); This takes almost as long as the parsing of the full message coming in which seems counter intuitive. I am on V1.2. -- ---

[HAPI-devel] Customized NACK for badly formatted incoming messages

2012-11-08 Thread LDH
Hello, I have written a class that extends ca.uhn.hl7v2.app.Application. I have implemented the ProcessMessage() method. I initialize everything as follows: LowerLayerProtocol llp = LowerLayerProtocol.makeLLP(); // The transport protocol PipeParser parser = new PipeParser(new C

Re: [HAPI-devel] Get the port of the application

2012-03-20 Thread LDH
1. Get the port of the application (Ram) 2. Re: generate custom datatype (Gabriel Euzet) 3. Re: Get the port of the application (LDH) 4. Re: generate custom datatype (Gabriel Euzet) -- Message: 1 Date: Mon, 12 Mar 201

Re: [HAPI-devel] [newbie] casting incoming message to the right type

2012-03-16 Thread LDH
I created simple wrapper classes around message types and do the following: public HL7MSH(Message Msg) throws DataTypeException, HL7Exception { _Msh = (MSH) Msg.get("MSH"); _Version = _Msh.getVersionID().getVersionID().getValue(); _Code = _Msh.getMsh9_Messag

Re: [HAPI-devel] Get the port of the application

2012-03-12 Thread LDH
I am not sure how to read the port. An easy answer to your problem though is to create three Applications (one for each port), and in the processMessage() method, delegate to a common class for all three. That way, you can send in any additional configuration you may wish, including the port #.

Re: [HAPI-devel] Hl7api-devel Digest, Vol 68, Issue 1

2012-03-06 Thread LDH
ics: 1. Re: "Path" expressions? (LDH) 2. How to get the Port of the current connection (Ram) 3. Re: How to get the Port of the current connection (LDH) -- Message: 1 Date: Mon, 20 Feb 2012 23:29:58 -

Re: [HAPI-devel] How to get the Port of the current connection

2012-03-05 Thread LDH
Sorry but i am not sure i understand your message clearly. If you are talking about creating a listener and ingesting messages, this is the kind of code i have. When your application starts, you have to create a listener on a port. int PORT= 12345; // Generally through some configuratio

Re: [HAPI-devel] "Path" expressions?

2012-02-20 Thread LDH
TEPV1PV2IN1IN2IN3GT1AL1/PV1PV2"; String orcTerse = "/ORCOBRRQDRQ1ODSODTRXONTEDG1RXRRXCNTEOBXNTECTIBLG"; String obrTerse = orcTerse + "/OBRRQDRQ1ODSODTRXONTEDG1RXRRXCNTEOBXNTE"; if (!mobileStationName.equalsIgnoreCase("unknown")) { terser.set(

[HAPI-devel] "Path" expressions?

2012-02-16 Thread LDH
I just worked on a project which used Mirth, and in the mapping code, we'd do something like var PatientGivenName = msg['PID.5.2'].toString(); I have been searching the docs and samples online to find a way to access values from "path expressions" like the above, but without success. A q