const { data } = await clinik.carePlans.create({
status: 'active',
intent: 'plan',
patientId: 'pt_abc123',
title: 'Diabetes Management Plan',
description: 'Comprehensive care plan for Type 2 diabetes management',
category: ['diabetes-management'],
authorId: 'prac_dr456',
activity: [
{
description: 'HbA1c test every 3 months',
status: 'scheduled',
code: 'lab-test',
scheduledString: 'Every 3 months',
},
{
description: 'Dietary consultation',
status: 'not-started',
performerId: 'prac_dietitian789',
},
],
goalIds: ['goal_target_a1c'],
note: 'Patient motivated to improve glycemic control',
});