webdiet_calculo_energetico_write_create
Create / update energy expenditure calculations in WebDiet. Actions: create (new calculation), save (update existing calculation). Supports 24+ formulas: Harris-Benedict 1919/1984, FAO/WHO 2004, EER/IOM 2005, EER 2023, Katch-McArdle 1996, Cunningham 1980, Mifflin-St Jeor 1990, and more. Activity factors: 1.0 (none), 1.2 (sedentary), 1.375 (light), 1.55 (moderate), 1.725 (intense), 1.9 (very intense). Injury factors: 1.0 (none) up to 2.0 (burns 70-90%).
[Flattened action: create]
Bulk support: accepts patient_ids, calculo_ids for batched execution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mlg | No | ||
| nome | No | Cálculo Energético | |
| peso | No | ||
| altura | No | ||
| account | No | ||
| formula | No | ||
| calculo_id | No | ||
| patient_id | Yes | ||
| calculo_ids | No | ||
| patient_ids | No | ||
| fator_injuria | No | 1.000 | |
| fator_atividade | No | 1.200 |