es
Cc: HAPI Devel List
Subject: Re: [HAPI-devel] How to parse NK1 segment in HL7 v2.1
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
mailto
>>
>> HapiContext hapiContext = new DefaultHapiContext();
>> hapiContext.setValidationRuleBuilder(new NoValidationBuilder());
>>
>> final PipeParser pipeParser = hapiContext.getPipeParser();
>> final Message hapiMessage = pi
= pipeParser.parse(msg);
>
> System.out.println("hapiMsg.printStructure() = " +
> hapiMessage.printStructure());
> Structure[] nk1Segments = hapiMessage.getAll("NK1");
> System.out.println("There are " + nk1Segments.length + "
.getPipeParser();
final Message hapiMessage = pipeParser.parse(msg);
System.out.println("hapiMsg.printStructure() = " +
hapiMessage.printStructure());
Structure[] nk1Segments = hapiMessage.getAll("NK1");
System.out.println("There are " +
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 Solutions
5 matches
Mail list logo