// Mother
await clinik.familyHistory.create({
status: 'completed',
patientId: 'pt_jane_doe',
name: 'Susan Doe',
relationship: 'mother',
sex: 'female',
ageString: '72 years old',
condition: [
{ code: 'Breast Cancer', onsetString: 'Age 55', outcome: 'In remission' },
{ code: 'Osteoporosis', onsetString: 'Age 65' },
],
});
// Maternal grandmother
await clinik.familyHistory.create({
status: 'completed',
patientId: 'pt_jane_doe',
name: 'Helen Smith',
relationship: 'maternal grandmother',
sex: 'female',
deceasedBoolean: true,
deceasedDate: '2010-03-20',
condition: [
{ code: 'Breast Cancer', contributedToDeath: true, onsetString: 'Age 62' },
],
});