def get_note_detail(notes):
    """
    Iterate over note details from response and prepare RiskSense context.

    :param notes: note details from the response.
    :return: List of note elements that include required fields from resp.
    """
    return [{
        'UserID': note.get('user', {}).get('id', ''),
        'UserName': note.get('user', {}).get('name', ''),
        'Note': note.get('note', ''),
        'Date': note.get('date', '')
    } for note in notes]