Skip to content

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 defined per tenant and workflow, not hard-coded by MedFlow. For a workflow, you choose:

You chooseExample
The query that defines the population or work itemsPatients eligible for the workflow, or pathways completed this month
The aggregationcount, sum, or average
The cadenceCollected 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.

Workflows tend to track a few related series. These are examples of how tenants name and use them, not a fixed set.

PatternTypical meaning
*-eligibleEligible population, or group size for the workflow
*-completedPatients tagged as completed for that workflow
*-billed / *-charged / *-collectedFinancial 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.

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.