const { data: measure } = await clinik.measures.create({
status: 'active',
name: 'diabetes-hba1c-control',
title: 'Diabetes: HbA1c Poor Control (>9%)',
description: 'Percentage of patients aged 18-75 with diabetes whose most recent HbA1c level is greater than 9.0%',
purpose: 'Track glycemic control in diabetic patient population',
scoring: 'proportion',
type: ['outcome'],
topic: ['Diabetes', 'Quality Measure', 'CMS'],
rationale: 'Poor glycemic control leads to increased complications including retinopathy, nephropathy, and cardiovascular disease',
clinicalRecommendationStatement: 'ADA recommends HbA1c target of <7% for most adults with diabetes',
guidance: 'Use most recent HbA1c result within the measurement period',
group: [{
code: 'hba1c-control',
description: 'Patients with diabetes and HbA1c > 9%',
}],
});