Re: [HAPI-devel] Insert segment repetition

2013-10-31 Thread Andrew Bowden
Hi Christian, I am relying on the untyped message, however I have tested by casting the message back to a typed message and I found the same result: ((ca.uhn.hl7v2.model.v231.message.ADT_A01)msg).insertNK1(2); // ca.uhn.hl7v2.HL7Exception: Invalid index: 2, structure NK1 must be between 0 and 1

[HAPI-devel] Using Hl7InputStreamMessageIterator

2013-10-31 Thread Ian Vowles
As the use of HAPI extends deeper into our work practices, building test cases has encouraged us to use example message files. Saving them with the package, and bringing them in as resource streams is the manner we have adopted. Today I stumbled across the Hl7InputStreamMessageIterator, which l

Re: [HAPI-devel] How to populate QPD.3 in message QBP^Q22

2013-10-31 Thread Dayu Han
Hi All In particular, how do I generate a content like @PID.3^1234567&ABC, which element should I set a value on. It's not clear to me how to populate QPD.3 segment, for example: qpd.getQpd3_UserParametersInsuccessivefields() returns a Varies type. How do I use this Varies to populate the conte

Re: [HAPI-devel] HAPI TestPanel rejects message

2013-10-31 Thread John Ruggentaler
James, I downloaded the source to take a look. I imported the test panel project into Eclipse but the dependencies/class path points to JARs and projects that are not in the repository. I set M2_REPO to the root of the source tree but that didn't work. Where can I find the required JARs? Below ar

[HAPI-devel] Equivalent of this page: http://hl7api.sourceforge.net/devbyexample.html for hapi-base-2.0

2013-10-31 Thread Justin
Hi all, Is there an equivalent page to: http://hl7api.sourceforge.net/devbyexample.html but which illustrates the examples using hapi-base-2.0. More specifically, I am trying to to make unit tests while setting up a server in the test. However, I have to use hapi-base-2.0 and the following cannot

Re: [HAPI-devel] Insert segment repetition

2013-10-31 Thread Christian Ohr
hi, do you rely on working on an untyped message (i.e. AbstractMessage)? In this case, adding a segment (repetition) can be ambiguous as it is not clear where in the message the segment should actually be added. Messages of different types and versions usually have a dedicated structure definition

Re: [HAPI-devel] How to populate QPD.3 in message QBP^Q22

2013-10-31 Thread Christian Ohr
What kind of trouble? How does your code look like? What do you get compared to what you expect? cheers Christian 2013/10/30 Dayu Han > Hello > > I have trouble generating QPD.3 with content like @PID.3^1234567&ABC. Any > help is greatly appreciated. > > Thanks > Dayu > > -- > Dayu Han > Softw