const { data: eob } = await clinik.eobs.create({
status: 'active',
type: 'professional',
use: 'claim',
patientId: 'pt_abc123',
insurerId: 'org_ins_bluecross',
providerId: 'Practitioner/prac_dr456',
outcome: 'complete',
claimId: 'claim_xyz456',
claimResponseId: 'claimresp_abc789',
billablePeriod: {
start: '2024-03-15',
end: '2024-03-15',
},
insurance: [
{ focal: true, coverageId: 'cov_primary789' },
],
item: [
{
sequence: 1,
productOrService: '99214',
unitPrice: { value: 200.00, currency: 'USD' },
net: { value: 200.00, currency: 'USD' },
adjudication: [
{ category: 'submitted', amount: { value: 200.00, currency: 'USD' } },
{ category: 'eligible', amount: { value: 180.00, currency: 'USD' } },
{ category: 'benefit', amount: { value: 144.00, currency: 'USD' } },
{ category: 'copay', amount: { value: 36.00, currency: 'USD' } },
],
},
],
total: [
{ category: 'submitted', amount: { value: 200.00, currency: 'USD' } },
{ category: 'benefit', amount: { value: 144.00, currency: 'USD' } },
{ category: 'patient', amount: { value: 56.00, currency: 'USD' } },
],
payment: {
type: 'complete',
amount: { value: 144.00, currency: 'USD' },
date: '2024-04-01',
},
});