This endpoint requires authentication. Include your API key in the request headers as X-API-Key.
This endpoint retrieves detailed information about a specific metric.
Path Parameters
ID of the metric to retrieve
Response Fields
Unique identifier of the metric
Description of what the metric measures
Unit of measurement for the metric
Array of strings representing the formula used to calculate the metric
ID of the variable used to filter patients for this metric
The threshold below which quality is considered low
The threshold above which quality is considered high
Whether higher values indicate better quality
Number of patient values associated with this metric
Example Response
{
"id": 1,
"name": "Blood Pressure Control",
"description": "Percentage of patients with controlled blood pressure",
"unit": "%",
"calculation_formula": [
"count(patients where bp < 140/90) / count(patients) * 100"
],
"filter_variable_id": 1,
"low_quality_threshold": 50.0,
"high_quality_threshold": 85.0,
"is_ascending": true,
"patient_values_count": 150
}
Error Responses
Authentication failed. Invalid or missing API key.
Metric not found. The specified metric ID does not exist.
Unique identifier of the metric
Array of strings representing the formula used to calculate the metric
Number of patients with values for this metric
Description of what the metric measures
Unit of measurement for the metric
ID of the variable used to filter patients for this metric
The threshold below which quality is considered low
The threshold above which quality is considered high
Whether higher values indicate better quality