From: Christian O. <chr...@gm...> - 2013-11-02 22:51:05
|
Hi, there is one old and one more recent thread about this topic. Hope these help: http://article.gmane.org/gmane.comp.medical.hl7/1269/match=qip http://article.gmane.org/gmane.comp.medical.hl7/474/match=qip cheers Christian 2013/11/1 Dayu Han <da...@st...> > Hi All > > I posted a message yesterday regarding how to generate QPD segment of > QBP^Q21. I'd like to make the case clear hoping somebody would give me some > help. This is the content I want to populate in the message: > > QPD|Q21^Get Demographics|221|@PID.3^987654321&ABC_Test| > > Here is the code I use, but run into trouble generating > @PID.3^987654321&ABC_Test > > QPD qpd = message.getQPD(); > qpd.getMessageQueryName().getIdentifier().setValue("Q21"); > qpd.getMessageQueryName().getText().setValue("Get Demographics"); > qpd.getQueryTag().setValue(formattedCurrentTime); > QIP qip = new QIP(message); > qip.getSegmentFieldName().setValue("@PID.3"); > qip.getValue1Value2Value3().setValue("987654321"); > qip.getQip2_Value1Value2Value3().setValue("ABC_Test"); > qpd.getUserParametersInsuccessivefields().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. > Dayu > -- > Dayu Han > Software Developer > Strata Health Solutions > Phone: +1 403 261 0855 ext 2102 > www.stratahealth.com > > > > > > > > > > > > > ------------------------------------------------------------------------------ > Android is increasing in popularity, but the open development platform that > developers love is also attractive to malware creators. Download this white > paper to learn more about secure code signing practices that can help keep > Android apps secure. > http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > |