const { data: plan } = await clinik.carePlans.create({
status: 'active',
intent: 'plan',
patientId: 'pt_abc123',
title: 'Post-Surgical Recovery Plan',
description: 'Recovery plan following knee replacement surgery',
category: ['post-surgical'],
authorId: 'prac_surgeon456',
period: {
start: '2024-03-15',
end: '2024-06-15',
},
activity: [
{
description: 'Physical therapy sessions — 3x per week',
status: 'scheduled',
code: 'physical-therapy',
scheduledString: 'Mon/Wed/Fri at 10:00 AM',
performerId: 'prac_pt789',
},
{
description: 'Wound care assessment',
status: 'not-started',
scheduledString: 'Weekly for first 4 weeks',
},
{
description: 'Pain management follow-up',
status: 'not-started',
scheduledString: '2 weeks post-op',
performerId: 'prac_surgeon456',
},
],
note: 'Patient is motivated and has good family support at home',
});