const { data: assessment } = await clinik.assessments.create({
status: 'completed',
code: 'initial-assessment',
patientId: 'pt_abc123',
encounterId: 'enc_xyz789',
practitionerId: 'prac_def456',
description: 'Annual wellness assessment',
summary: 'Patient presents with well-controlled hypertension and type 2 diabetes. '
+ 'No signs of end-organ damage. Continue current medication regimen. '
+ 'Recommend dietary counseling and increased physical activity.',
findings: [
{ code: 'I10', text: 'Essential hypertension — well controlled on lisinopril 10mg', basis: 'BP readings over 3 months' },
{ code: 'E11.9', text: 'Type 2 diabetes mellitus — HbA1c 6.8%, at goal', basis: 'Lab panel from today' },
{ text: 'BMI 28.5 — overweight, recommend weight management' },
{ text: 'No peripheral neuropathy on exam' },
],
investigations: [
{ name: 'Lab panel', itemIds: ['obs_cmp_001', 'obs_hba1c_001'] },
{ name: 'Vitals', itemIds: ['obs_bp_001', 'obs_bmi_001'] },
],
problemIds: ['cond_hypertension', 'cond_diabetes'],
prognosis: [
{ text: 'Good — well controlled with current regimen' },
{ code: 'favorable', text: 'Favorable with continued compliance' },
],
note: 'Follow up in 3 months. Order HbA1c and CMP at next visit.',
effectiveDateTime: '2025-01-15T10:00:00Z',
});