[HAPI-devel] Where is input file "message_file.txt" in example SendLotsOfMessages?

2012-07-23 Thread Derek Mahar
Where may I find input file "message_file.txt" in example SendLotsOfMessages ( https://hl7api.svn.sourceforge.net/svnroot/hl7api/releases/2.0/hapi-examples/src/main/java/ca/uhn/hl7v2/examples/SendLotsOfMessages.java )? Thank you, Derek -- Derek Mahar Senior Software Developer Inteler

[HAPI-devel] Default values for required message fields?

2012-07-25 Thread Derek Mahar
Does HAPI have some facility to set default field values for required fields within message segments? For example, does it provide a way to set MSH-1 to "|" and MSH-2 to "^~\\&" by default? Thank you, Derek -- Derek Mahar Senior Software Developer Intelerad Medical Sys

[HAPI-devel] Timeout of socket connection in ConnectionFactory

2012-07-26 Thread Derek Mahar
states that configuration could set this value. Must our application provide a custom SocketFactory that sets the default timeout according to some configured value in the application? Thank you, Derek -- Derek Mahar Senior Software Developer Intelerad Medical Systems Incorporated 895 de la

[HAPI-devel] Why does HAPI embed "&" instead of "^' in the Principal Result Interpreter (OBR-32) field?

2012-07-26 Thread Derek Mahar
e" ); obr.getTranscriptionist( 0 ) .getOPName() .getGivenName() .setValue( "Transcriptionist0GivenName" ); obr.getTranscriptionist( 0 ) .getOPName() .getFamilyName() .setValue( "Transcriptionist0LastName" ); o

Re: [HAPI-devel] Why does HAPI embed "&" instead of "^' in the Principal Result Interpreter (OBR-32) field?

2012-07-26 Thread Derek Mahar
I should add that this test code uses the PipeParser: Parser parser = new PipeParser(); String encodedMessage = parser.encode( orm ); Derek On Thu, Jul 26, 2012 at 12:57 PM, Derek Mahar wrote: > Why does HAPI embed ampersands ("&") instead of carets ("^&

Re: [HAPI-devel] Timeout of socket connection in ConnectionFactory

2012-07-26 Thread Derek Mahar
uses the Initiator to send HL7 messages to a server. See http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendAndReceiveAMessage.html for an example that uses Initiator. Derek On Thu, Jul 26, 2012 at 12:16 PM, Derek Mahar wrote: > What is approach do you recommend to set

Re: [HAPI-devel] Why does HAPI embed "&" instead of "^" in the Principal Result Interpreter (OBR-32) field?

2012-07-26 Thread Derek Mahar
Given Name and Family Name. They are separated by > AMPERSAND. > > On Jul 26, 2012, at 10:01 AM, Derek Mahar wrote: > > I should add that this test code uses the PipeParser: > > Parser parser = new PipeParser(); > String encodedMessage = parser.encode( o

[HAPI-devel] How do I retrieve the contents of a response to a QRY_A19 query?

2012-07-31 Thread Derek Mahar
Thank you, Derek -- Derek Mahar Senior Software Developer Intelerad Medical Systems Incorporated 895 de la Gauchetiere W. Suite 400 Montreal, QC, Canada, H3B 4G1 Tel: 514.931.6222 x7754 Fax: 514.931.4653 derek.ma...@intelerad.com www.intelerad.com -- This email or any attachments may contain confi

Re: [HAPI-devel] How do I retrieve the contents of a response to a QRY_A19 query?

2012-07-31 Thread Derek Mahar
cture. How may I extract these segments using the more abstract Group or Structure interfaces? Derek On Tue, Jul 31, 2012 at 5:33 PM, Derek Mahar wrote: > Given a QRY_A19 query message, what approach do you recommend to decompose > the contents of the response Message from > "Initi

Re: [HAPI-devel] How do I retrieve the contents of a response to a QRY_A19 query?

2012-08-01 Thread Derek Mahar
ess your required segments > > 2012/8/1 Derek Mahar > >> I've just learned that the message that the remote system sends in >> response to QRY_A19 does not conform to the HL7 standard and includes >> invalid segments QRD, PID, PV1, ORC, OBR, ORC2, and OBR2. Fortunately,

Re: [HAPI-devel] How do I retrieve the contents of a response to a QRY_A19 query?

2012-08-01 Thread Derek Mahar
gs have ended up: > System.out.println(ack.printStructure()); > "Message.printStructure()" is very helpful because it explicitly identifies those segments that HAPI considers non-standard. Derek -- Derek Mahar Senior Software Developer Intelerad Medical Systems Incorporated 895 de la Gauchetie

[HAPI-devel] Mock ConnectionHub.attach() with Mockito

2012-08-03 Thread Derek Mahar
// The initiator is used to transmit unsolicited messages to a server. Initiator initiator = connection.getInitiator(); ... Any ideas? Derek -- Derek Mahar Senior Software Developer Intelerad Medical Systems Incorporated 895 de la Gauchetiere W. Suite 400 Montreal, QC, Canada, H3B 4

[HAPI-devel] Does HAPI require commons-cli?

2012-08-03 Thread Derek Mahar
Does HAPI require commons-cli? The HAPI binary distribution includes commons-cli-1.2, but I see no reason why HAPI would need it except to parse arguments in a main method in some HAPI utility class. For what purpose does HAPI require commons-cli? Thank you, Derek -- Derek Mahar Senior

Re: [HAPI-devel] Mock ConnectionHub.attach() with Mockito

2012-08-06 Thread Derek Mahar
nectionHub CONNECTION_HUB = mock( ConnectionHub.class, withSettings().verboseLogging() ); @Override public ConnectionHub newConnectionHub() { return CONNECTION_HUB; } } Derek On Fri, Aug 3, 2012 at 12:56 PM, Derek Mahar wrote: > How does one mock ConnectionHub.attach() using Mock

[HAPI-devel] Comparing messages

2012-08-08 Thread Derek Mahar
Are there any plans to implement methods equals() and hashCode() in messages and segments? Derek -- Derek Mahar Senior Software Developer Intelerad Medical Systems Incorporated 895 de la Gauchetiere W. Suite 400 Montreal, QC, Canada, H3B 4G1 Tel: 514.931.6222 x7754 Fax: 514.931.4653 der

Re: [HAPI-devel] Comparing messages

2012-08-08 Thread Derek Mahar
t; > actualSeg.field(j).getComp(k + 1).getSubcomp(l + > > 1).toString()); > > > > } > > } else { > > assertEquals("Comparing " + segmentName + "[" + i + "]." > + >

Re: [HAPI-devel] Validation of messages with "custom" components

2012-08-09 Thread Derek Mahar
ing the processing of these messages. Nevertheless, we would like to > have a means to overcome this issue. > -- Derek Mahar Senior Software Developer Intelerad Medical Systems Incorporated 895 de la Gauchetiere W. Suite 400 Montreal, QC, Canada, H3B 4G1 Tel: 514.931.6222 x7754 F

[HAPI-devel] System property "ca.uhn.hl7v2.llp.charset"

2013-04-30 Thread Derek Mahar
a PipeParser method apply the encoding? I'm trying to pin-point in a HAPI client application which HAPI method call is translating UTF-8 character "0xc3 0xa9" ('é') to "0xe9 0x5c" on output. Thank you, Derek -- Derek Mahar | Research and Development - Intelera

Re: [HAPI-devel] System property "ca.uhn.hl7v2.llp.charset"

2013-04-30 Thread Derek Mahar
By the way, to select character encoding "UTF-8", do I set system property "ca.uhn.hl7v2.llp.charset" to "UTF-8", "UTF_8", "UTF8", or other string? Derek -- This email or any attachments may contain confidential or legally privileged information intended for the sole use of the addressees. Any

Re: [HAPI-devel] System property "ca.uhn.hl7v2.llp.charset"

2013-04-30 Thread Derek Mahar
er 0xE9 (my previous message mistakenly stated 0xE9 and 0x5C) in place of "0xc3 0xa9", I can't confirm whether HAPI method "Message.printStructure()" applies the encoding or SLF4J and Logback are using an encoding different from UTF-8. Derek On Tue, Apr 30, 2013 at 1:26 PM

Re: [HAPI-devel] System property "ca.uhn.hl7v2.llp.charset"

2013-04-30 Thread Derek Mahar
some > alternate ways of specifying the charset. Personally I hate using system > properties.. > > > http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/HandlingCharacterEncodings.html > Thank you for the reference. I was hoping there was another option available to set the