return getValueDrug().getFullName(locale); } else { ConceptName codedName = getValueCodedName(); } else if (getValueCoded() != null) { if (getValueDrug() != null) { return getValueDrug().getFullName(locale); } else { ConceptName valudeCodedName = getValueCodedName();
public static String valueAsStringHelper(Object value) { if (value == null) return null; if (value instanceof Concept) return ((Concept) value).getName(Context.getLocale()).getName(); else if (value instanceof Date) return Format.format((Date) value); else if (value instanceof Drug) { return "" + ((Drug) value).getFullName(Context.getLocale()); } else return value.toString(); }