webdiet_preconsulta_get_response
Read pre-consultation questionnaires (Pré-consulta) in WebDiet. Actions:
list_templates → list all questionnaire templates the nutritionist publishes. Each item returns nome, descricao, perguntas[] (decoded), modelo, codigo, "link" (the public short URL https://nutr.se/ to share with patients) and "preview_url" (panel preview). USE THIS when the user asks for "o link do questionário de pré-consulta" / "link do formulário".
list_responses → list patient submissions to ANY template. Each response has id, id_code, template_nome, origem (anamnese | questionario), respondedor {nome, telefone, nascimento}, data, texto (decoded plain Q/A), texto_html (original HTML), pdf_url. Use filtros tipo (template name) and nome (responder name) to narrow.
get_response → fetch one response by id (or id_code/codigo). For LINKING a response to an existing patient (vincular), use webdiet_preconsulta_write action=link_to_patient.
[Flattened action: get_response]
Bulk support: accepts response_ids for batched execution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nome | No | ||
| tipo | No | ||
| limit | No | ||
| offset | No | ||
| account | No | ||
| response_id | No | ||
| response_ids | No |