private void loadCmbExternalCode() { form.cmbExternalCode().clear(); TaxonomyTypeCollection coll = LookupHelper.getTaxonomyType(domain.getLookupService()); for (int i = 0; i < coll.size(); i++) { TaxonomyType inst = coll.get(i); if ((inst.equals(TaxonomyType.READ3) || inst.equals(TaxonomyType.SNOMED) || inst.equals(TaxonomyType.ICD10) || inst.equals(TaxonomyType.NAT_SPEC_CODE) || inst.equals(TaxonomyType.NAT_TREAT_CODE) || inst.equals(TaxonomyType.OPCS4) || inst.equals(TaxonomyType.VTM) || inst.equals(TaxonomyType.VMP) || inst.equals(TaxonomyType.AMP)) && inst.isActive()) { form.cmbExternalCode().newRow(inst, inst.getText()); } } }
private void loadCmbExternalCode() { form.cmbExternalCode().clear(); TaxonomyTypeCollection coll = LookupHelper.getTaxonomyType(domain.getLookupService()); for (int i = 0; i < coll.size(); i++) { TaxonomyType inst = coll.get(i); if ((inst.equals(TaxonomyType.READ3) || inst.equals(TaxonomyType.SNOMED) || inst.equals(TaxonomyType.ICD10) || inst.equals(TaxonomyType.NAT_SPEC_CODE) || inst.equals(TaxonomyType.NAT_TREAT_CODE) || inst.equals(TaxonomyType.OPCS4) || inst.equals(TaxonomyType.VTM) || inst.equals(TaxonomyType.VMP) || inst.equals(TaxonomyType.AMP) || inst.equals(TaxonomyType.NAT_LOC_CODE) || inst.equals(TaxonomyType.NAT_GP_CODE) || inst.equals(TaxonomyType.CCG)) && inst.isActive()) { form.cmbExternalCode().newRow(inst, inst.getText()); } } }
private TaxonomyType getExtSystemInstance(String extSystem) { TaxonomyTypeCollection coll = LookupHelper.getTaxonomyType(this.domain.getLookupService()); for (int x = 0; x < coll.size(); x++) { TaxonomyType inst = coll.get(x); if (inst.getText().equals(extSystem)) return inst; } return null; }
private TaxonomyType getExtSystemInstance(String extSystem) { TaxonomyTypeCollection coll = LookupHelper.getTaxonomyType(getLookupService()); for (int x = 0; x < coll.size(); x++) { TaxonomyType inst = coll.get(x); if (inst.getText().equals(extSystem)) return inst; } return null; }