@Override protected DrugEditor getNewEditor() { return new DrugEditor(); }
return ed.getValue(); } else if (Drug.class.equals(clazz)) { DrugEditor ed = new DrugEditor(); ed.setAsText(string); return ed.getValue(); } else if (PersonAttributeType.class.equals(clazz)) { PersonAttributeTypeEditor ed = new PersonAttributeTypeEditor();
return ed.getValue(); } else if (Drug.class.isAssignableFrom(clazz)) { DrugEditor ed = new DrugEditor(); ed.setAsText(val); return ed.getValue(); } else if (Patient.class.isAssignableFrom(clazz)) { PatientEditor ed = new PatientEditor();
wdb.registerCustomEditor(ConceptNumeric.class, new ConceptNumericEditor()); wdb.registerCustomEditor(ConceptSource.class, new ConceptSourceEditor()); wdb.registerCustomEditor(Drug.class, new DrugEditor()); wdb.registerCustomEditor(Encounter.class, new EncounterEditor()); wdb.registerCustomEditor(Form.class, new FormEditor());