private void discontinueMedicationDoseInstance() { DiscontinueMedicationReasonValuesVo voReason = new DiscontinueMedicationReasonValuesVo(); if (form.ctnDetails().dyngrdDoses().getSelectedRow().getValue() instanceof MedicationDose) { MedicationDose voDose = (MedicationDose)form.ctnDetails().dyngrdDoses().getSelectedRow().getValue(); voReason.setStoppedDate(voDose.getIsStoppedDate()); voReason.setStoppedHCP(voDose.getIsStoppedHcp()); voReason.setStoppedReason(voDose.getIsStoppedReason()); voReason.setStoppedReasonDesc(voDose.getIsStoppedReasonText()); if ((voDose.getIsStoppedIsNotNull()) && (voDose.getIsStopped().booleanValue()) ) form.getGlobalContext().Clinical.setDiscontinueMedicationReasonValues(voReason); else form.getGlobalContext().Clinical.setDiscontinueMedicationReasonValues(null); } form.getLocalContext().setbDiscontinueDose(Boolean.TRUE); form.getLocalContext().setbDiscontinueMed(Boolean.FALSE); engine.open(form.getForms().Clinical.MedicationDiscontinue, "Discontinue Dose"); }
private void discontinueMedicationInstance() { DiscontinueMedicationReasonValuesVo voReason = new DiscontinueMedicationReasonValuesVo(); voReason.setStoppedDate(form.getLocalContext().getSelectedInstance().getIsDiscontinuedDate()); voReason.setStoppedHCP(form.getLocalContext().getSelectedInstance().getIsDiscontinuedHcp()); voReason.setStoppedReason(form.getLocalContext().getSelectedInstance().getIsDiscontinuedReason()); voReason.setStoppedReasonDesc(form.getLocalContext().getSelectedInstance().getIsDiscontinuedReasonText()); if ( (form.getLocalContext().getSelectedInstance().getIsDiscontinuedIsNotNull()) && (form.getLocalContext().getSelectedInstance().getIsDiscontinued().booleanValue()) ) form.getGlobalContext().Clinical.setDiscontinueMedicationReasonValues(voReason); else form.getGlobalContext().Clinical.setDiscontinueMedicationReasonValues(null); form.getLocalContext().setbDiscontinueDose(Boolean.FALSE); form.getLocalContext().setbDiscontinueMed(Boolean.TRUE); engine.open(form.getForms().Clinical.MedicationDiscontinue); }
protected void onBtnOKClick() throws ims.framework.exceptions.PresentationLogicException { DiscontinueMedicationReasonValuesVo voReason = new DiscontinueMedicationReasonValuesVo(); voReason.setStoppedDate(form.dteDate().getValue()); voReason.setStoppedHCP(form.qmbHCP().getValue()); voReason.setStoppedReason(form.cmbReasonDiscontinued().getValue()); voReason.setStoppedReasonDesc(form.txtReasonDesc().getValue()); voReason.setStoppedByType(form.cmbDiscontinuedByType().getValue()); form.getGlobalContext().Clinical.setDiscontinueMedicationReasonValues(voReason); engine.close(DialogResult.OK); }