protected void onFormOpen() throws ims.framework.exceptions.PresentationLogicException { initialize(); //wdev-13392 form.setMode(FormMode.VIEW); form.dyngrdSecs().setSelectable(true); populateParameterCombo(null); SECSVoCollection tempVoCol = domain.getSecsColection(); SECSVo tempVo = null; if(tempVoCol != null && tempVoCol.size() > 0) { tempVo = tempVoCol.get(0); if(tempVoCol.size() > 1) engine.showMessage("There are more than one SECS Configuration records in database"); } populateScreenFromData(tempVo); //------------------- //open(); }
private void populateScreenFromData(SECSVo secs) { clear(); if(secs != null) { form.getLocalContext().setSelectedInstance(secs); form.intTotalScore().setValue(secs.getEWSTriggerScore()); if(secs.getEWSProtocolIsNotNull()) form.txtProtocol().setValue(secs.getEWSProtocol().getName()); populateGridFromData(secs.getConfiguration()); form.btnNew().setEnabled(false); form.btnUpdate().setEnabled(true); } else { form.btnNew().setEnabled(true); form.btnUpdate().setEnabled(false); } }
private void populateScreenFromData(SECSVo secs) { clear(); if(secs != null) { form.getLocalContext().setSelectedInstance(secs); form.cmbOBSProtocolType().setValue(secs.getOBSProtocolType());//WDEV-20237 form.lblTotalScore().setValue("Score which triggers " + form.cmbOBSProtocolType().getValue()!=null ? form.cmbOBSProtocolType().getValue().getText() : "MEWS" + " Protocol:");//WDEV-20237 form.intTotalScore().setValue(secs.getEWSTriggerScore()); if(secs.getEWSProtocolIsNotNull()) form.txtProtocol().setValue(secs.getEWSProtocol().getName()); populateGridFromData(secs.getConfiguration()); form.btnNew().setEnabled(false); form.btnUpdate().setEnabled(true); } else { form.btnNew().setEnabled(true); form.btnUpdate().setEnabled(false); } }
public void newInstance() throws ims.framework.exceptions.PresentationLogicException { if (allowNew()) { form.getLocalContext().setSelectedInstance(new SECSVo()); form.intTotalScore().setValue(null); form.txtProtocol().setValue(null); clearConfigInstanceControls(); form.dyngrdSecs().setValue(null); form.setMode(FormMode.EDIT); } }
/** * There will only be one secs record */ public SECSVo getSecs() //wdev-13392 { List secs = getDomainFactory().find("from SECS as s1_1 order by s1_1.systemInformation.creationDateTime desc "); SECSVoCollection secsVoColl = SECSVoAssembler.createSECSVoCollectionFromSECS(secs); //wdev-13392 if(secsVoColl != null && secsVoColl.size() > 0) return secsVoColl.get(0); return null; }
public SECSVo saveSECS(SECSVo voSecs) throws StaleObjectException,UniqueKeyViolationException { if(voSecs == null) throw new CodingRuntimeException("voSecs parameter is null in method saveSECS"); if(!voSecs.isValidated()) throw new CodingRuntimeException("voSecs has not been validated"); DomainFactory factory = getDomainFactory(); //wdev-13392 if(voSecs.getID_SECS() == null) { SECSVoCollection list = getSecsConfiguration(); if(list != null && list.size() > 0) { throw new UniqueKeyViolationException("A SECS Configuration already exists."); } } //--------------- SECS doSecs = SECSVoAssembler.extractSECS(factory, voSecs); factory.save(doSecs); return SECSVoAssembler.create(doSecs); }
public void newInstance() throws ims.framework.exceptions.PresentationLogicException { if (allowNew()) { form.getLocalContext().setSelectedInstance(new SECSVo()); form.intTotalScore().setValue(null); form.txtProtocol().setValue(null); clearConfigInstanceControls(); form.dyngrdSecs().setValue(null); form.setMode(FormMode.EDIT); form.cmbOBSProtocolType().setValue(OBSProtocolType.MEWS); //WDEV-20237 } }
public SECSVo getSecs() //wdev-13392 { List secs = getDomainFactory().find("from SECS as s1_1 order by s1_1.systemInformation.creationDateTime desc "); SECSVoCollection secsVoColl = SECSVoAssembler.createSECSVoCollectionFromSECS(secs); //wdev-13392 if(secsVoColl != null && secsVoColl.size() > 0) return secsVoColl.get(0); return null; }
private void populateDataFromScreen(SECSVo voSecs) { voSecs.setEWSTriggerScore(form.intTotalScore().getValue()); voSecs.setConfiguration(populateConfigurationDataFromScreen(voSecs.getConfiguration())); }
public SECSVo getSecs() { SECSConfig impl = (SECSConfig) getDomainImpl(SECSConfigImpl.class); return impl.getSecs(); }
public ims.clinical.vo.SECSVo getSecs() { SECSConfig impl = (SECSConfig) getDomainImpl(SECSConfigImpl.class); return impl.getSecs(); }
private void populateDataFromScreen(SECSVo voSecs) { voSecs.setOBSProtocolType(form.cmbOBSProtocolType().getValue()); //WDEV-20237 voSecs.setEWSTriggerScore(form.intTotalScore().getValue()); voSecs.setConfiguration(populateConfigurationDataFromScreen(voSecs.getConfiguration())); }
public SECSVo getSecs() { VitalSignsObservationProtocol impl = (VitalSignsObservationProtocol) getDomainImpl(VitalSignsObservationProtocolImpl.class);//WDEV-20237 return impl.getSecs(); }
public SECSVo getSECS() { VitalSignsAll vs = (VitalSignsAll)getDomainImpl(VitalSignsImpl.class); return vs.getSecs(); }
/** private InpatientEpisode getCurrentInpatientEpisode(DomainFactory factory, CareContext careContext) { if (careContext == null || careContext.getPasEvent() == null) return null; String hql = "select inpat from InpatientEpisode inpat left join inpat.pasEvent as pevent where pevent.id = :PAS_EVENT"; DomainObject inpatDO = factory.findFirst(hql, "PAS_EVENT", careContext.getPasEvent().getId()); return inpatDO instanceof InpatientEpisode ? (InpatientEpisode) inpatDO : null; }*/ //WDEV-20311 public SECSVo getSECSConfig() { VitalSignsObservationProtocol impl = (VitalSignsObservationProtocol) getDomainImpl(VitalSignsObservationProtocolImpl.class);//WDEV-20237 return impl.getSecs(); }