protected final void setcmbStatusLookupValue(int id) { ims.core.vo.lookups.PreActiveActiveInactiveStatus instance = ims.core.vo.lookups.LookupHelper.getPreActiveActiveInactiveStatusInstance( this.domain.getLookupService(), id); if (instance != null) this.form.ctnDetails().lyrPrimaryTumour().tabTumourDetails().cmbStatus().setValue(instance); }
private void removePreactiveOrActiveLookup() { PreActiveActiveInactiveStatus status = form.cmbStatus().getValue(); form.cmbStatus().clear(); PreActiveActiveInactiveStatusCollection lookupColl = LookupHelper.getPreActiveActiveInactiveStatus(domain.getLookupService()); for (int i = 0; lookupColl != null && i < lookupColl.size(); i++) { if (isStatusActive() && lookupColl.get(i).equals(PreActiveActiveInactiveStatus.PREACTIVE)) continue; if (isStatusInactive() && (lookupColl.get(i).equals(PreActiveActiveInactiveStatus.PREACTIVE) || lookupColl.get(i).equals(PreActiveActiveInactiveStatus.ACTIVE))) continue; // WDEV-17376 if ((form.getLocalContext().getSelectedTriageProtocol() == null || form.getLocalContext().getSelectedTriageProtocol() != null && form.getLocalContext().getSelectedTriageProtocol().getActiveStatusIsNotNull() && form.getLocalContext() .getSelectedTriageProtocol() .getActiveStatus() .equals(PreActiveActiveInactiveStatus.PREACTIVE)) && lookupColl.get(i).equals(PreActiveActiveInactiveStatus.INACTIVE)) { continue; } form.cmbStatus() .newRow( lookupColl.get(i), lookupColl.get(i).toString(), lookupColl.get(i).getImage(), lookupColl.get(i).getColor()); } form.cmbStatus().setValue(status); }
protected final void bindcmbIDTypeLookup() { this.form.cmbIDType().clear(); ims.core.vo.lookups.PatIdTypeCollection lookupCollection = ims.core.vo.lookups.LookupHelper.getPatIdType(this.domain.getLookupService()); for (int x = 0; x < lookupCollection.size(); x++) { this.form .cmbIDType() .newRow( lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor()); } }
protected final void bindcmbReasonDelayedLookup() { this.form.cmbReasonDelayed().clear(); ims.core.vo.lookups.ReasonForAptDelayCollection lookupCollection = ims.core.vo.lookups.LookupHelper.getReasonForAptDelay(this.domain.getLookupService()); for (int x = 0; x < lookupCollection.size(); x++) { this.form .cmbReasonDelayed() .newRow( lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor()); } }
private void bindColType( ims.RefMan.forms.daycaseadmissiondialog.GenForm.grdIdentifiersRow row, boolean isNew) { row.getcolIdType().clear(); PatIdTypeCollection collTypes = LookupHelper.getPatIdType(domain.getLookupService()); for (int i = 0; i < collTypes.size(); i++) { if (ConfigFlag.DOM.HEARTS_REPLICATE_PATIENTS.getValue()) { if (isNew) { if (collTypes.get(i).equals(PatIdType.HOSPNUM) || collTypes.get(i).equals(PatIdType.PKEY)) continue; } } row.getcolIdType().newRow(collTypes.get(i), collTypes.get(i).getText()); } }
protected final void bindcmbChartReceivedLookup() { this.form.cmbChartReceived().clear(); ims.core.vo.lookups.YesNoCollection lookupCollection = ims.core.vo.lookups.LookupHelper.getYesNo(this.domain.getLookupService()); for (int x = 0; x < lookupCollection.size(); x++) { this.form .cmbChartReceived() .newRow( lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor()); } }
protected final void bindcmbFrequencyLookup() { this.form.cmbFrequency().clear(); ims.core.vo.lookups.MedicationFrequencyCollection lookupCollection = ims.core.vo.lookups.LookupHelper.getMedicationFrequency(this.domain.getLookupService()); for (int x = 0; x < lookupCollection.size(); x++) { this.form .cmbFrequency() .newRow( lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor()); } }
protected final void bindcmbReferralSourceLookup() { this.form.cmbReferralSource().clear(); ims.core.vo.lookups.SourceOfReferralCollection lookupCollection = ims.core.vo.lookups.LookupHelper.getSourceOfReferral(this.domain.getLookupService()); for (int x = 0; x < lookupCollection.size(); x++) { this.form .cmbReferralSource() .newRow( lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor()); } }
protected final void bindcmbDischMethodLookup() { this.form.cmbDischMethod().clear(); ims.core.vo.lookups.DischargeMethodCollection lookupCollection = ims.core.vo.lookups.LookupHelper.getDischargeMethod(this.domain.getLookupService()); for (int x = 0; x < lookupCollection.size(); x++) { this.form .cmbDischMethod() .newRow( lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor()); } }
protected final void bindgrdDetailscolPrintCentralLookup() { this.form.grdDetails().colPrintCentralComboBox().clear(); ims.core.vo.lookups.YesNoCollection lookupCollection = ims.core.vo.lookups.LookupHelper.getYesNo(this.domain.getLookupService()); for (int x = 0; x < lookupCollection.size(); x++) { this.form .grdDetails() .colPrintCentralComboBox() .newRow( lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor()); } }
protected final void bindcmbStatusLookup() { this.form.cmbStatus().clear(); ims.core.vo.lookups.PreActiveActiveInactiveStatusCollection lookupCollection = ims.core.vo.lookups.LookupHelper.getPreActiveActiveInactiveStatus( this.domain.getLookupService()); for (int x = 0; x < lookupCollection.size(); x++) { this.form .cmbStatus() .newRow( lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor()); } }
private void loadAllCombos() { HcpDisTypeCollection coll = LookupHelper.getHcpDisType(domain.getLookupService()); // Hcp Type Filter && Hcp Select Type TreeNode[] rootNodes = coll.getRootNodes(); ArrayList<?> childColl; HcpDisType lookupInstance = null; for (int i = 0; i < rootNodes.length; i++) { HcpDisType lk = (HcpDisType) rootNodes[i]; form.lyrDetails().tabSelectHcpType().cmbSelectHcpType().newRow(lk, lk.getText()); if (lk.equals(HcpDisType.THERAPY)) { childColl = lk.getChildInstances(); for (int j = 0; j < childColl.size(); j++) { lookupInstance = (HcpDisType) childColl.get(j); form.lyrDetails() .tabTherapist() .cmbTherapistType() .newRow(lookupInstance, lookupInstance.getText()); } } else if (lk.equals(HcpDisType.NURSING)) { childColl = lk.getChildInstances(); for (int j = 0; j < childColl.size(); j++) { lookupInstance = (HcpDisType) childColl.get(j); form.lyrDetails() .tabNurse() .cmbNurseType() .newRow(lookupInstance, lookupInstance.getText()); } } else if (lk.equals(HcpDisType.MEDICAL)) { childColl = lk.getChildInstances(); for (int j = 0; j < childColl.size(); j++) { lookupInstance = (HcpDisType) childColl.get(j); form.lyrDetails() .tabMedic() .cmbMedicType() .newRow(lookupInstance, lookupInstance.getText()); } } else if (lk.equals(HcpDisType.OTHER)) { childColl = lk.getChildInstances(); for (int j = 0; j < childColl.size(); j++) { lookupInstance = (HcpDisType) childColl.get(j); form.lyrDetails().tabHcp().cmbHcpType().newRow(lookupInstance, lookupInstance.getText()); } } } }
private void open() { form.grdChannelTypes().getRows().clear(); ims.core.vo.lookups.ChannelTypeCollection lookupCollection = ims.core.vo.lookups.LookupHelper.getChannelType(this.domain.getLookupService()); for (int x = 0; x < lookupCollection.size(); x++) { if (lookupCollection.get(x) != null && lookupCollection.get(x).isActive()) { ims.admin.forms.demographicscomunicationchannelsconfigdialog.GenForm.grdChannelTypesRow row = form.grdChannelTypes().getRows().newRow(); row.setColChannelType(lookupCollection.get(x).getText()); row.setColSelect(false); row.setValue(lookupCollection.get(x)); } } }
protected final void bindcmbSpecialtyLookup() { this.form.lyrMappings().tabExternal().cmbSpecialty().clear(); ims.core.vo.lookups.SpecialtyCollection lookupCollection = ims.core.vo.lookups.LookupHelper.getSpecialty(this.domain.getLookupService()); for (int x = 0; x < lookupCollection.size(); x++) { this.form .lyrMappings() .tabExternal() .cmbSpecialty() .newRow( lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor()); } }
protected final void setcmbReasonDelayedLookupValue(int id) { ims.core.vo.lookups.ReasonForAptDelay instance = ims.core.vo.lookups.LookupHelper.getReasonForAptDelayInstance( this.domain.getLookupService(), id); if (instance != null) this.form.cmbReasonDelayed().setValue(instance); }
protected final void setcmbReferralSourceLookupValue(int id) { ims.core.vo.lookups.SourceOfReferral instance = ims.core.vo.lookups.LookupHelper.getSourceOfReferralInstance( this.domain.getLookupService(), id); if (instance != null) this.form.cmbReferralSource().setValue(instance); }
protected final void setcmbSpecialtyLookupValue(int id) { ims.core.vo.lookups.Specialty instance = ims.core.vo.lookups.LookupHelper.getSpecialtyInstance(this.domain.getLookupService(), id); if (instance != null) this.form.lyrMappings().tabExternal().cmbSpecialty().setValue(instance); }
protected final void setcmbChartRequiredByTriageLookupValue(int id) { ims.core.vo.lookups.YesNo instance = ims.core.vo.lookups.LookupHelper.getYesNoInstance(this.domain.getLookupService(), id); if (instance != null) this.form.cmbChartRequiredByTriage().setValue(instance); }
protected final void setcmbStatusLookupValue(int id) { ims.core.vo.lookups.EmergencyAdmissionStatus instance = ims.core.vo.lookups.LookupHelper.getEmergencyAdmissionStatusInstance( this.domain.getLookupService(), id); if (instance != null) this.form.cmbStatus().setValue(instance); }
protected final void setcmbFrequencyLookupValue(int id) { ims.core.vo.lookups.MedicationFrequency instance = ims.core.vo.lookups.LookupHelper.getMedicationFrequencyInstance( this.domain.getLookupService(), id); if (instance != null) this.form.cmbFrequency().setValue(instance); }
protected final void setcmbDischMethodLookupValue(int id) { ims.core.vo.lookups.DischargeMethod instance = ims.core.vo.lookups.LookupHelper.getDischargeMethodInstance( this.domain.getLookupService(), id); if (instance != null) this.form.cmbDischMethod().setValue(instance); }
protected final void setcmbAlertLookupValue(int id) { ims.core.vo.lookups.AlertType instance = ims.core.vo.lookups.LookupHelper.getAlertTypeInstance(this.domain.getLookupService(), id); if (instance != null) this.form.cmbAlert().setValue(instance); }
protected final void setcmbStatusSearchLookupValue(int id) { ims.core.vo.lookups.PreActiveActiveInactiveStatus instance = ims.core.vo.lookups.LookupHelper.getPreActiveActiveInactiveStatusInstance( this.domain.getLookupService(), id); if (instance != null) this.form.cmbStatusSearch().setValue(instance); }