const { data: assessment } = await clinik.assessments.create({
status: 'completed',
code: 'initial-assessment',
patientId: 'pt_abc123',
encounterId: 'enc_xyz789',
practitionerId: 'prac_def456',
summary: 'Patient presents with well-controlled hypertension.',
findings: [
{ code: 'I10', text: 'Essential hypertension — well controlled', basis: 'BP 128/82' },
{ text: 'No signs of end-organ damage' },
],
investigations: [
{ name: 'Lab panel', itemIds: ['obs_cmp_001', 'obs_cbc_001'] },
],
problemIds: ['cond_hypertension_001'],
prognosis: [{ text: 'Good — well controlled with current regimen' }],
note: 'Follow up in 3 months.',
});