From: Dayu H. <da...@st...> - 2013-11-01 20:28:56
|
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 |