const { data } = await clinik.familyHistory.create({
status: 'completed',
patientId: 'pt_jane_doe',
date: '2025-01-15',
name: 'Robert Doe',
relationship: 'father',
sex: 'male',
deceasedBoolean: true,
deceasedDate: '2020-06-10',
condition: [
{
code: 'Type 2 Diabetes Mellitus',
onsetString: 'Age 45',
note: 'Managed with metformin',
},
{
code: 'Coronary Artery Disease',
contributedToDeath: true,
onsetString: 'Age 60',
outcome: 'Fatal myocardial infarction',
},
],
note: 'Father had significant cardiovascular risk factors',
});