aggregate
Aggregate patient and admission metrics like counts or average age, optionally grouped by demographics such as gender or race.
Instructions
Aggregate patients or admissions by a fixed metric, optionally grouped by a fixed column. metric in {patient_count, avg_patient_age, admission_count}; group_by in {gender, admission_type, insurance, race} and must belong to the same table as metric.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| row_cap | Yes | ||
| truncated | Yes |