From: Christian O. <chr...@gm...> - 2013-10-19 18:49:51
|
Check your linebreaks (must be \r to be valid segment separators. And try Parser p = new PipeParser(); ADT_A39 m = (ADT_A39)p.parse(message); String id = m.getPATIENT().getMRG().getPriorPatientIdentifierList()[0].getID().getValue(); cheers Christian 2013/10/19 Jhonson P <jho...@gm...> > Hi, > > I have been trying to get MRG data from ADT A40 message which is parsed by > HAPI. When i parse the ADT A40(v2.4) Message using HAPI Version 2.1, It is > binding to ADT A39 class. > > I am getting 'null' value if i try to get MRG' > priorPpatientIdentificationList from this ADT A39 class. > > Please help me on how to get the priorPpatientIdentificationList data from > the parsed ADT A39 message. > > Sample: > MSH|^~\&|ADM||||201307031749||ADT^A40|686627|D|2.4|||AL|NE| > EVN||201307031749|||MTVANJOH00^Rensburg^JJ^van|201307031747| > PID|1||FP00000610^^^^MR^FPH~132144587^^^^SS^FPH~T1-20130703174055869^^^^PI^FPH~T00000549^^^^HUB^FPH||Joe^Jose^^^^^L||19520101|M||OT|16 > ^^^^||(919)909-8888^^^te...@wh...|||||FA00000807|132144587| > > PV1|1|O|DIET||||^^^^^^^^^^^^XX|||||||||||CLI||U|||||||||||||||||||FPH||REG|||201307031747|201309031747 > PV2|||||||||||1|||||||||||||||||||||||||N| > ROL|1|AD|AT|^^^^^^^^^^^^XX| > DRG|31| > MRG|FP00000611^^^^MR| > > Thanks > John > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > |