Ejemplo n.º 1
0
  /**
   * Get the concept description that is tied to the concept name that was used when making this
   * observation
   *
   * @return ConceptDescription the description used
   */
  public ConceptDescription getConceptDescription() {
    // if we don't have a question for this concept,
    // then don't bother looking for a description
    if (getConcept() == null) return null;

    // ABKTOD: description in which locale?
    return concept.getDescription();
  }
  /**
   * @deprecated
   * @return Returns the description.
   */
  @Deprecated
  public String getDescription() {
    if (concept != null) {
      ConceptDescription description = concept.getDescription();
      if (description != null) return description.getDescription();
    }

    return null;
  }