private void populatePlannedProceduresGrid(SurgicalAuditPreOpChecksVo record) { PatientProcedureForSurgicalAuditPreOpChecksVoCollection collProcedure = domain.listProcedures(record); if (collProcedure == null) return; if( collProcedure.size() > 0) { for(int i = 0; i < collProcedure.size();i++) { PatientProcedureForSurgicalAuditPreOpChecksVo tempVo = collProcedure.get(i); if( tempVo != null) { grdPlannedProceduresRow row = form.grdPlannedProcedures().getRows().newRow(); row.setColumnProcedures(tempVo.getProcedureDescription()); row.setTooltipForColumnProcedures(tempVo.getProcedureDescription()); row.setColumnPrimary(tempVo.getIsPrimaryIsNotNull() ? (tempVo.getIsPrimary().equals(Boolean.TRUE)? Boolean.TRUE:Boolean.FALSE):Boolean.FALSE); row.setValue(tempVo); } } } }
private void populateProcedureGrid(SurgicalAuditPreOpChecksVo surgicalAuditPreOpChecks) { PatientProcedureForSurgicalAuditPreOpChecksVoCollection collProcedure = domain.listProcedures(surgicalAuditPreOpChecks); if (collProcedure == null) return; for (int i = 0; i < collProcedure.size(); i++) { addRowToProcedureGrid(collProcedure.get(i), Boolean.TRUE); //wdev-15831 } }
public SurgicalAuditPreOpChecksVo saveSurgicalAuditPreOpChecks(SurgicalAuditPreOpChecksVo surgAuditPreOpChecksToSave) throws StaleObjectException { if (surgAuditPreOpChecksToSave == null ) { throw new CodingRuntimeException("Cannot get SurgicalAuditOperationDetailVo on null Id "); } DomainFactory factory = getDomainFactory(); SurgicalAuditPreOpChecks domainSurgicalAuditPreOpChecks = SurgicalAuditPreOpChecksVoAssembler.extractSurgicalAuditPreOpChecks(factory, surgAuditPreOpChecksToSave); factory.save(domainSurgicalAuditPreOpChecks); return SurgicalAuditPreOpChecksVoAssembler.create(domainSurgicalAuditPreOpChecks); }
private void populateScreenFromData(SurgicalAuditOperationDetailVo surgAuditOpDet) { clearInstanceControls(); form.ccAlerts().refresh(); form.ccAllergies().refresh(); if (surgAuditOpDet == null || surgAuditOpDet.getPreOpChecks() == null) return; SurgicalAuditPreOpChecksVo surgAuditPreOpChecks = surgAuditOpDet.getPreOpChecks(); populateProcedureGrid(surgAuditPreOpChecks); form.ccConsultant().setValue(surgAuditPreOpChecks.getConsultant()); form.dtimPatientSentFor().setValue(surgAuditPreOpChecks.getSentForTime()); form.dtimArrival().setValue(surgAuditPreOpChecks.getArrivalTime()); form.dtimLeave().setValue(surgAuditPreOpChecks.getLeaveHoldingTime()); // Accompanying Nurse form.chkAccompanyingLocum().setValue(surgAuditPreOpChecks.getAccompanyingLocumBool()); form.txtAccompanyingLocumNurse().setValue(surgAuditPreOpChecks.getAccompanyingLocumNurse()); form.ccNurse().setValue(surgAuditPreOpChecks.getAccompanyingNurse()); ArrayList<?> transferedFrom = form.cmbTransferredFrom().getValues(); if (transferedFrom != null && surgAuditPreOpChecks.getTransferredFromIsNotNull() && !transferedFrom.contains(surgAuditPreOpChecks.getTransferredFrom())) form.cmbTransferredFrom().newRow(surgAuditPreOpChecks.getTransferredFrom(), surgAuditPreOpChecks.getTransferredFrom().getName()); form.cmbTransferredFrom().setValue(surgAuditPreOpChecks.getTransferredFrom()); form.cmbAsaGrade().setValue(surgAuditPreOpChecks.getASAGrade()); form.groupConsentReceived().setValue(surgAuditPreOpChecks.getConsentReceived().equals(ims.core.vo.lookups.YesNo.YES) ? groupConsentReceivedEnumeration.rdoYesConsentReceived : groupConsentReceivedEnumeration.rdoNoConsentReceived); if (surgAuditPreOpChecks.getConsentAuthByIsNotNull()) { form.txtConsentAuthBy().setValue(surgAuditPreOpChecks.getConsentAuthBy()); } if (surgAuditPreOpChecks.getBMIIsNotNull() && surgAuditPreOpChecks.getBMI().getMetricsIsNotNull()) { form.decWeight().setValue(surgAuditPreOpChecks.getBMI().getMetrics().getWeightValueIsNotNull() ? surgAuditPreOpChecks.getBMI().getMetrics().getWeightValue() : null); form.decHeight().setValue(surgAuditPreOpChecks.getBMI().getMetrics().getHeightValueIsNotNull() ? surgAuditPreOpChecks.getBMI().getMetrics().getHeightValue() : null); form.decBMI().setValue(surgAuditPreOpChecks.getBMI().getMetrics().getBMIIsNotNull() ? surgAuditPreOpChecks.getBMI().getMetrics().getBMI() : null); } form.groupSiteMarked().setValue(surgAuditPreOpChecks.getSiteMarked().equals(ims.core.vo.lookups.YesNo.YES) ? groupSiteMarkedEnumeration.rdoYesSiteMarked : groupSiteMarkedEnumeration.rdoNoSiteMarked); if (surgAuditPreOpChecks.getActionTakenIsNotNull()) { form.cmbAction().setValue(surgAuditPreOpChecks.getActionTaken()); } form.groupPreOpChecksDone().setValue(surgAuditPreOpChecks.getPreOpCheckDone().equals(ims.core.vo.lookups.YesNo.YES) ? groupPreOpChecksDoneEnumeration.rdoPreOpChecksYes : groupPreOpChecksDoneEnumeration.rdoPreOpChecksNo); form.groupConfirmPatDet().setValue(surgAuditPreOpChecks.getConfirmPatientDetails().equals(ims.core.vo.lookups.YesNo.YES) ? groupConfirmPatDetEnumeration.rdoConfirmPatDetYes : groupConfirmPatDetEnumeration.rdoConfirmPatDetNo); //wdev-15769 //wdev-15750 form.ccTheatreNurse().setValue(surgAuditPreOpChecks.getTheatreNurse()); form.chkTheatreNurse().setValue(surgAuditPreOpChecks.getTheatreNurseLocumBool()); form.txtTheatreNurse().setValue(surgAuditPreOpChecks.getTheatreNurseLocumNurse()); // }