webdiet_patient_write_create
Create or update patients in WebDiet. Actions: create (nome + nascimento required — returns patient_id), update (partial fields). IMPORTANT: nascimento (birth date DD/MM/YYYY) is REQUIRED for create — WebDiet uses it to calculate age in prescriptions. Without it, metodoPlanning.php crashes with a Fatal Error. For destructive removal use webdiet_patient_delete.
[Flattened action: create]
Bulk support: accepts patient_ids for batched execution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cep | No | ||
| cpf | No | ||
| nome | No | ||
| No | |||
| bairro | No | ||
| cidade | No | ||
| estado | No | ||
| genero | No | ||
| numero | No | ||
| account | No | ||
| apelido | No | ||
| endereco | No | ||
| telefone | No | ||
| No | |||
| boasvindas | No | ||
| nascimento | No | ||
| patient_id | No | ||
| complemento | No | ||
| patient_ids | No |