Re: [HAPI-devel] HohClientSimple Exception (Missed putting the subject)

2016-02-24 Thread Davies, Brian
Hi James, It is possible, especially since it is happening during the decoding process and the messages actually get to the server. I will look into that possibility. Cheers, Brian. From: James Agnew [mailto:jamesag...@gmail.com] Sent: Wednesday, February 24, 2016 9:53 AM To: Davies, Brian

Re: [HAPI-devel] (no subject)

2016-02-23 Thread Davies, Brian
pe() == null) { throw new DecodeException("Content-Type not specified"); } Many thanks Brian. From: Mike Mills [mailto:m...@themills.id.au] Sent: Tuesday, February 23, 2016 1:42 PM To: Davies, Brian Cc: HAPI Devel List Subject: Re: [HAPI-devel] (no subject)

Re: [HAPI-devel] (no subject)

2016-02-23 Thread Davies, Brian
: Tuesday, February 23, 2016 1:42 PM To: Davies, Brian Cc: HAPI Devel List Subject: Re: [HAPI-devel] (no subject) Have you tried using initQuickstart() on the adt object? We only use std mllp (ie not over http) but having gone through the receive code for mllp, you must have MSH9 set, which is one of

[HAPI-devel] HohClientSimple Exception (Missed putting the subject)

2016-02-23 Thread Davies, Brian
Hi All, I am using the HAPI HohClientSimple client to send a simple HL7 message to some HTTP endpoint but have been encountering an issue with it. I constantly get an exception relating to the content-type of the message. Initially I had set up an embedded Jetty server and I got this message. I

[HAPI-devel] (no subject)

2016-02-23 Thread Davies, Brian
Hi All, I am using the HAPI HohClientSimple client to send a simple HL7 message to some HTTP endpoint but have been encountering an issue with it. I constantly get an exception relating to the content-type of the message. Initially I had set up an embedded Jetty server and I got this message. I

Re: [HAPI-devel] Fwd: (no subject)

2016-02-22 Thread Davies, Brian
tocol(llp); // Use the LLP in a HapiContext to get a client connection String host = "localhost"; int port = 5050; boolean tls = false; Connection connection = ctx.newClient(host, port, tls); From: Davies, Brian [mailto:

Re: [HAPI-devel] Fwd: (no subject)

2016-02-19 Thread Davies, Brian
message -- From: Mike Mills mailto:m...@themills.id.au>> Date: Sat, Feb 20, 2016 at 7:18 AM Subject: Re: [HAPI-devel] (no subject) To: "Davies, Brian" mailto:brian.dav...@mckesson.com>> Your client is sending to "Integer.parseInt(env.getProperty("http.port&q

[HAPI-devel] (no subject)

2016-02-19 Thread Davies, Brian
I am trying to test sending a message using a HAPI http client using the following configuration. The server starts and the message is sent but import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.an

Re: [HAPI-devel] Creating a Message with Repeating Segments that are not in a Group

2015-12-24 Thread Davies, Brian
Not to worry, I was able to solve this issue. From: Davies, Brian [mailto:brian.dav...@mckesson.com] Sent: Wednesday, December 23, 2015 3:43 AM To: hl7api-devel@lists.sourceforge.net Subject: [HAPI-devel] Creating a Message with Repeating Segments that are not in a Group Hi All, I am working

Re: [HAPI-devel] Custom Model Classes

2015-12-23 Thread Davies, Brian
eNames); hl7VersionPackageNamesMap.put("2.4", packageNames); hapiContext.setModelClassFactory(new CustomModelClassFactory(hl7VersionPackageNamesMap)); hapiContext.setValidationRuleBuilder(new NoValidationBuilder()); return hapiContext; } } From: Davies,

[HAPI-devel] Creating a Message with Repeating Segments that are not in a Group

2015-12-23 Thread Davies, Brian
Hi All, I am working with a vendor that needs repeating segments in a message that are not contained in a group. A typical message would look like the following: MSH|^~\&|Vendor||APP_RCV||20151109155046||RDS^R06|671-147754-932|P|2.5 PID|||671-147754-932||Patient_last_name^Patient_first_name^Pati

Re: [HAPI-devel] Custom Model Classes

2015-12-22 Thread Davies, Brian
R06.getPFG(RDS_R06.java:67) at com.mpls.lds.hl7.zxx.custommodel.v25.message.TestMessageCreation.testParseCustomRDS_R06Message(TestMessageCreation.java:46) at com.mpls.lds.hl7.zxx.custommodel.v25.message.TestMessageCreation.main(TestMessageCreation.java:88) From: Davies, Brian [mailto

[HAPI-devel] Custom Model Classes

2015-12-22 Thread Davies, Brian
Hi All, It seems to me that the custom model classes simply do not recognize the AbstractGroup types even when one tries to forcefully load the group from the custom model. I think Christian is absolutely right that the eventmap is the solution known to work for this issue. The problem for me

[HAPI-devel] Custom Model Update

2015-12-19 Thread Davies, Brian
After making some changes the RDS_R06 class is loaded but not the PFG custom Group. I tried different package arrangements for the PFG group but it never got loaded. I notice in Ian's example he extends from class ORU_ORMIS, whilst I'm extending from AbstractMessage. I see that as the most s

Re: [HAPI-devel] Custom Messages

2015-12-18 Thread Davies, Brian
ed against vs 2.4 of the standard HAPI libraries. Mostly we do this for convenience, and also because senders don't always update the values they send in the messages when they have updated the structure they use. Overall we push everything up to 2.4 because all our senders use versions belo

Re: [HAPI-devel] Custom Messages

2015-12-17 Thread Davies, Brian
to Mike and Damian from our team who deep-dived the HAPI source to work out exactly how this functions. Hope this helps Ian From: Davies, Brian [mailto:brian.dav...@mckesson.com] Sent: Friday, 18 December 2015 5:47 AM To: hl7api-devel@lists.sourceforge.net<mailto:hl7api-de

[HAPI-devel] Custom Messages

2015-12-17 Thread Davies, Brian
Hi All, I am aware that in order for custom messages to be loaded by a CustomModelFactory they need to be registered in the eventmap. However, I am only able to find the eventmap in ca.uhn.hl7v2.parser.eventmap with the associated 2.5.properties for version 2.5 say. Does it mean that I would ha

Re: [HAPI-devel] Escaping Encoded characters

2015-12-17 Thread Davies, Brian
help you. We have had a lot of success using it for many years now. Hope this helps Ian Vowles Department of Health Queensland Australia From: Davies, Brian [mailto:brian.dav...@mckesson.com] Sent: Thursday, 17 December 2015 7:19 AM To: hl7api-devel@lists.sourceforge.net<mailto:hl7api-deve

[HAPI-devel] Escaping Encoded characters

2015-12-16 Thread Davies, Brian
I want to be able to escaped the special encoding characters by using \S\ or \R\ but this doesn't seem to work for me. I also tried the code snippet below but it seems that using the quick start init method creates multiple repetitions of the message type, for example: ORR_O02 orr002=new

Re: [HAPI-devel] Please ignore, The message processed was messed up

2015-11-16 Thread Davies, Brian
From: Davies, Brian [mailto:brian.dav...@mckesson.com] Sent: Monday, November 16, 2015 2:00 PM To: hl7api-devel@lists.sourceforge.net Subject: [HAPI-devel] Is there a way to use fields which do not follow a linear sequence? I have a structure which follows the order in a segment MSH ZDD

[HAPI-devel] Is there a way to use fields which do not follow a linear sequence?

2015-11-16 Thread Davies, Brian
I have a structure which follows the order in a segment MSH ZDD Field Sequence Marital Status1 Age 3 DOB 4

Re: [HAPI-devel] ClassCastException when casting down

2015-11-16 Thread Davies, Brian
Thanks a lot Christian, really appreciated. From: Christian Ohr [mailto:christian@gmail.com] Sent: Monday, November 16, 2015 8:23 AM To: Davies, Brian Cc: hl7api-devel@lists.sourceforge.net Subject: Re: [HAPI-devel] ClassCastException when casting down In your case, nothing tells HAPI to

[HAPI-devel] Does the HAPI Library honor groups when extending MFN_M01?

2015-10-27 Thread Davies, Brian
I am extending the MFN_M01 message as this is provided by a 3rd party to an app that I am working on. I extended the MFN_M01 class for example: DCS,RXD and MTN extend AbstractGroup and in a package com.mypackage. sbs.v25.group. However, none of DCS,RXD or MTN are loaded in the custom model, e

[HAPI-devel] ClassCastException when casting down

2015-10-26 Thread Davies, Brian
Related to the previous issue, I get an exception when casting down to my object which extends the MFN_M01 message. I am extending MFN_M01 because this is specified in the message type field, so I'm unable to avoid it. I am using the v25 libraries and JDK1.7 Exception in thread "main" java.lang

[HAPI-devel] ClassCastException

2015-10-26 Thread Davies, Brian
I have the following 2 classes which seem to conform to the expected setup for a custom model. I stripped the jars referenced in the project to just the log4j and slf4j and the hapi-structures-v25-2.2.jar and hapi-base-2.2.jar. It is more or less the same code as in the examples. I tried doing t

[HAPI-devel] DefaultModelFacotry is being used in spite of specifying a CustomModelFactory

2015-10-22 Thread Davies, Brian
I am using the HAPI version 2.5 library. //instantiate a PipeParser, which handles the "traditional encoding" ModelClassFactory cfm=new CustomModelClassFactory("com.hss.customodel"); Parser pipeParser = new PipeParser(cfm); int count=0; HapiContext context=new DefaultHapiCon