def METHOD_NAME(patient_id):
    """
    Removes characters that cannot be used as part of file names.
    :param patient_id: patients ID
    return: cleaned up patient_id
    """
    invalid_characters = r'/\:*?"<>|'
    filename = ''
    for c in patient_id:
        if c not in invalid_characters:
            filename += c
    return filename