def get_id(rec):
    """ Return ID for given record item
    """
    possible_fields = [
        'MeasureCode', 'CodeCatalogue', 'catalogueCode'
    ]

    for field in possible_fields:
        if rec.get(field):
            return rec[field]

    return None