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

2013-10-30 Thread 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 Software Developer Strata Health Solutions Phone: +1 403 261 0855 ext 2102 www.stratahealth

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

2013-10-31 Thread Dayu Han
ulate the content ? Thanks Dayu On 2013-10-31, at 7:51 AM, Christian Ohr wrote: > 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 trou

Re: [HAPI-devel] Trouble Generating QBP^Q21

2013-11-01 Thread Dayu Han
rametersInsuccessivefields().setData(qip); However, statement qip.getQip2_Value1Value2Value3().setValue("ABC_Test") will override the content qip.getValue1Value2Value3().setValue("987654321") and output gives: QPD|Q21^Get Demographics|221|@PID.3^ABC_Test| Thanks for any help. Day

Re: [HAPI-devel] HAPI Logging

2014-05-29 Thread Dayu Han
Hello Just wonder if HAPI has any logging, if yes, how to turn it on. Thanks Dayu -- Dayu Han Software Developer Strata Health Solutions Phone: +1 403 261 0855 ext 2102 www.stratahealth.com -- Time is money

Re: [HAPI-devel] HAPI Logging

2014-05-29 Thread Dayu Han
eed > to add the appropriate SLF4j adapter JAR. > > Cheers, > James > > > On Thu, May 29, 2014 at 9:17 AM, Dayu Han wrote: > Hello > > Just wonder if HAPI has any logging, if yes, how to turn it on. > > Thanks > Dayu > -- > Dayu Han > S

Re: [HAPI-devel] Parsing phone number in ORM^O01 message

2015-08-12 Thread Dayu Han
at I did wrong here. Thanks -- Dayu Han Software Developer Strata Health Solutions Office: +1.403.261.0855 x2102 Website <http://www.stratahealth.com/> | Overview Video <http://youtu.be/5wHGcurxMyY> | Resources <http://www.stratah

Re: [HAPI-devel] How to parse NK1 segment in HL7 v2.1

2016-05-16 Thread Dayu Han
Hello In processing HL7 ADT message v2.1, I use the following code to parse NK1 segment: Structure[] nk1Segments = message.getAll("NK1”); However, this returns no element. My question is how to get ALL NK1 segments directly ? Thanks Dayu -- Dayu Han Software Developer Strata Health Solu

Re: [HAPI-devel] How to parse NK1 segment in HL7 v2.1

2016-05-17 Thread Dayu Han
1-^^Phone^^^888^111-|||DISABLED\r"; > > HapiContext hapiContext = new DefaultHapiContext(); > hapiContext.setValidationRuleBuilder(new NoValidationBuilder()); > > final PipeParser pipeParser = hapiContext.getPipeParser(); > final Message hapiMessage

Re: [HAPI-devel] How to parse NK1 segment in HL7 v2.1

2016-05-17 Thread Dayu Han
Hi Ian I solved the issue by using printStructure, content in segment NK1 is actually translated into segment NK12. No idea why, but it works now. Thanks Dayu > On May 17, 2016, at 8:06 AM, Dayu Han wrote: > > Thanks for the reply Ian. This is what I have tried. > > With

[HAPI-devel] DEBUG ca.uhn.hl7v2.parser.DefaultModelClassFactory - No user-defined packages for version 2.1

2008-11-24 Thread Dayu Han
Hello I developed a simple application using HAPI, however, when the application starts, we have the following errors: DEBUG ca.uhn.hl7v2.parser.DefaultModelClassFactory - No user-defined packages for version 2.1 DEBUG ca.uhn.hl7v2.parser.DefaultModelClassFactory - No user-defined package

[HAPI-devel] Why ADT_A08 message is NOT in package ca.uhn.hl7v2.model.v25.message

2008-11-25 Thread Dayu Han
Hi All I try to create a ADT_A08 message of v2.5 and find that it is not even in the package: ca.uhn.hl7v2.model.v25.message. Is there a reason for this ? Any workaround if available ? Any other suggestions ? Many thanks HL7 Champion. --

[HAPI-devel] If Anyone Knows about the Exception

2008-12-16 Thread Dayu Han
Hi All I've come to this exception when sending an ADT message. I wonder if anyone knows what it means and how to fix it. ca.uhn.hl7v2.llp.LLPException: Message violates the minimal lower layer protocol: no start of message indicator received. at ca.uhn.hl7v2.llp.MinLLPReader.getMessa

[HAPI-devel] How to Set Value on Field OBX-5

2009-02-24 Thread Dayu Han
no way just to set a value on the field. Anyone has any idea what goes wrong here. Many thanks -- Dayu Han Software Developer Strata Health Solutions Phone: 403.261.0855 ext 2102 http://www.stratahealth.com -- Open

Re: [HAPI-devel] How to Set Value on Field OBX-5

2009-02-25 Thread Dayu Han
lue(string); obx.getObservationValue(0).setData(st); DefaultModelClassFactory factory = new DefaultModelClassFactory(); Varies.fixOBX5(obx, factory); On Tue, Feb 24, 2009 at 3:26 PM, Dayu Han wrote: Hi All I have trouble to populate a value on OBX-5 field using HAPI (HL7 2.5). This is what I am tr