import re


def get_value(entry):
    """For a data entry, get the value.
    Args: 
        entry: an entry from the WHO indicator api
    Returns:
        value as a string and the statType as a string
    """
    value = entry.get("NumericValue")
    statType = "measuredValue"
    if value is None:
        statType = "measurementResult"
        value = entry.get("Value", "")
        if value:
            value = value.replace(',', '').replace('\n', '')
            if not re.findall('\w', value):
                value = ''
            if "[" in value:
                value = f"'{value}'"
    return value, statType