Re: [HAPI-devel] Timeout on sendAndreceive

2008-01-26 Thread Torben Greiser
Hi Lucas, just set the initiator timeout value to as high as needed: int timeout = 3; System.setProperty("ca.uhn.hl7v2.app.initiator.timeout", Integer.toString(timeout)); Greets Torben Lucas Gonz schrieb: > Hello you all!! > > I am starting in this HL7 world and after a couples of day

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

Re: [HAPI-devel] Problem with message mapping

2007-11-23 Thread Torben Greiser
Hi Fabio, I'm quoting Bryan to answer you this: > There is one HAPI class for each message structure, but > multiple events can use the same structure (e.g. event A28 uses > structure ADT_A05). > > If you are creating a new message, use the structure that corresponds > to your event (this is give

Re: [HAPI-devel] HapiLog

2007-09-12 Thread Torben Greiser
Hi Sharon, you will need to make yourself familiar with commons logging and log4j. http://commons.apache.org/logging/ http://logging.apache.org/log4j/ An example (requires log4j and commons logging in classpath): Create a log4j.properties file in your classpath: log4j.rootLogger=INFO, A1 log4j

Re: [HAPI-devel] HL7 Listener

2007-08-02 Thread Torben Greiser
Hi Nick! PipeParser pp = new PipeParser(); // create a new SimpleServer that listens on port 1234 SimpleServer ss = new SimpleServer(1234, LowerLayerProtocol.makeLLP(), pp); // create and register some class that implements // ca.uhn.hl7v2.app.Application to handle incoming messages (ORU in // th

Re: [HAPI-devel] Missing messages

2007-08-01 Thread Torben Greiser
Hi Burke, take a look at ca/uhn/hl7v2/parser/eventmap/2.4.properties ADT_A28 ADT_A05 The ADT_A28 message is identical to the ADT_A05 message (except the MSH-9 of course). If I remember correctly the parser detects an incoming ADT_A28 as an ADT_A05 message, so you have to inspect MSH-9 to

Re: [HAPI-devel] question about entering data

2007-07-24 Thread Torben Greiser
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.get

Re: [HAPI-devel] Having Difficulty Extracting Data from a Segment using Terser

2007-05-08 Thread Torben Greiser
Hi Bob, well its obvious, because PID directly in ca.uhn.hl7v2.model.v22.message.ORU_R01 really does not exist. If you take a look at the source, you will need to get the group ORU_R01_PATIENT_RESULT first that contains a ORU_R01_PATIENT group that contains the PID segment. To fetch the PID you