def confirm_symptom()

in lambda/src/gather_symptom_bot.py [0:0]


def confirm_symptom(session_attributes, intent_name, slots, symptom_name, body_part=None, modifier=None):
    message = 'You said you '

    message += find_descriptor_for_symptom(symptom_name)
    if body_part:
        if body_part in BODY_PART_PREPOSITION:
            message += f' {BODY_PART_PREPOSITION[body_part]} '
        else:
            message += ' in your '
        if modifier:
            message += '{} {}'.format(modifier, body_part)
        else:
            message += '{}'.format(body_part)
    message += '. Right?'
    return helper.confirm_intent(session_attributes, intent_name, slots, message_content=message,
                                 message_type='PlainText')