def to_field_value(field_list):
    """
    Return the first field value in a FieldList
    """
    try:
        return field_list.field_list[0].field_value
    except __HOLE__:
        return None
dataset/ETHPy150Open dimagi/commcare-hq/custom/dhis2/models.py/to_field_value