Metrics
Metrics are the outcomes you measure for a Workflow, the Validate step in Find, Automate, Validate. A metric is a number derived from a saved Find query: a count of matching patients or pathways, or an aggregation (sum or average) of a field. MedFlow collects each metric on a schedule and stores it as a daily series, so you can track movement over time.
Because metrics reuse the same queries as search, what you measure is exactly the population you act on. That closes the loop: Find selects a cohort, Automate runs pathways for it, and Metrics confirm the gap is closing.
Metrics are configured, not fixed
Section titled “Metrics are configured, not fixed”Metrics are defined per tenant and workflow, not hard-coded by MedFlow. For a workflow, you choose:
| You choose | Example |
|---|---|
| The query that defines the population or work items | Patients eligible for the workflow, or pathways completed this month |
| The aggregation | count, sum, or average |
| The cadence | Collected on a schedule (typically hourly), stored as daily periods (YYYY-MM-DD) |
You compose a set of metrics to measure a workflow end to end, and derive values across them, such as rates and rollups. As a workflow changes, you add, remove, and redefine metrics without any code change on your side.
Common patterns
Section titled “Common patterns”Workflows tend to track a few related series. These are examples of how tenants name and use them, not a fixed set.
| Pattern | Typical meaning |
|---|---|
*-eligible | Eligible population, or group size for the workflow |
*-completed | Patients tagged as completed for that workflow |
*-billed / *-charged / *-collected | Financial volumes from billing extracts |
Rollups (*-total, *-revenue) | Derived sums across related keys |
For example, a Cognitive Testing workflow might track cognitive-eligible, cognitive-completed, and cognitive-billed, then derive a rate from them (such as completed ÷ eligible). You define the metrics and derived values that matter for your workflow.
Reading metrics
Section titled “Reading metrics”Metrics are configured and viewed in the MedFlow product today. A read API for metric values over HTTP is in development. If programmatic access to metric values is on your roadmap, tell us through the contact form so we can factor your use case in.