def is_fieldmap_candidate(scan, scan_type):
    """
    Given a candidate scan, check whether it is of the correct type and is
    meant to be corrected
    """

    # First check if meant for fieldmaps
    try:
        use_fieldmaps = scan.get_spec("fieldmaps")
    except KeyError:
        use_fieldmaps = True

    match_type = scan.bids_type in scan_type

    if use_fieldmaps and match_type:
        return True
    else:
        return False