Observation Statistics
fhir_statsCompute count, min, max, and mean from numeric FHIR Observation values. Filter by LOINC code and patient for targeted clinical analysis.
Instructions
Compute statistics (count, min, max, mean) over numeric Observation values. Standard FHIR $stats (since R4). Only supports valueQuantity. Filter by patient and/or code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | LOINC code to filter Observations (e.g., '2339-0' for Glucose) | |
| patient | No | Patient reference filter (e.g., 'Patient/pt-1') |