def filter_by_energy_structure(record):
    """
    Include only records that have an 'energyratestructure' field defined.
    True: filter out
    False: keep
    :param record:
    :return:
    """
    if "energyratestructure" not in record.keys():
        return True
    else:
        return False