private void loadCarePlans() { CarePlanTitleCollection coll = form.getLocalContext().getCarePlans(); if (coll != null) { form.gridCarePlan().getRows().clear(); GenForm.gridCarePlanRow row; for (int i = 0; i < coll.size(); i++) { CarePlanTitle title = coll.get(i); row = form.gridCarePlan().getRows().newRow(); row.setcolCarePlan(title.getTitle()); if(isClinicalNotesCarePlanDetailsAlias() && form.getGlobalContext().COE.getCarePlanIsNotNull()) { if(title.equals(form.getGlobalContext().COE.getCarePlan())) { row.setcolSelect(true); } } row.setValue(title); } } }
private void populateCarePlans() { // Populate the careplan selected column with data from database if (form.getLocalContext().getClinicalNote().getCarePlans() != null) { CarePlanTitleCollection dataColl = form.getLocalContext().getClinicalNote().getCarePlans(); if (dataColl != null) { GenForm.gridCarePlanRow row; for (int i = 0; i < dataColl.size(); i++) { CarePlanTitle title = dataColl.get(i); row = form.gridCarePlan().getRowByValue(title); if (row != null) row.setcolSelect(true); } } } }
private void loadCarePlans(boolean bActiveOnly) { CarePlanTitleCollection coll = form.getLocalContext().getCarePlans(); if (coll != null) { form.gridCarePlan().getRows().clear(); GenForm.gridCarePlanRow row; for (int i = 0; i < coll.size(); i++) { CarePlanTitle title = coll.get(i); if ( bActiveOnly && (title.getCurrentCarePlanStatusIsNotNull() && title.getCurrentCarePlanStatus().getStatusIsNotNull() && ! title.getCurrentCarePlanStatus().getStatus().equals(ims.nursing.vo.lookups.CarePlanStatus.ACTIVE)) ) continue; row = form.gridCarePlan().getRows().newRow(); row.setcolCarePlan(title.getTitle()); row.setcolStatus(title.getCurrentCarePlanStatusIsNotNull() && title.getCurrentCarePlanStatus().getStatusIsNotNull() ? title.getCurrentCarePlanStatus().getStatus().getText() : ""); row.setValue(title); } } }
private void populateCarePlans() { if (form.getLocalContext().getSelectedClinicalNoteIsNotNull() && form.getLocalContext().getSelectedClinicalNote().getCarePlans() != null) { CarePlanTitleCollection dataColl = form.getLocalContext().getSelectedClinicalNote().getCarePlans(); if (dataColl != null) { GenForm.gridCarePlanRow row; for (int i = 0; i < dataColl.size(); i++) { CarePlanTitle title = dataColl.get(i); row = form.gridCarePlan().getRowByValue(title); if (row != null) row.setcolSelect(true); } } } }
public CarePlanTitle getCarePlan() { return carePlan; }
public void setCarePlan(CarePlanTitle carePlan) { this.carePlan = carePlan; }