const { data: procedureCharge } = await clinik.chargeItems.create({
status: 'billable',
code: {
system: 'http://www.ama-assn.org/go/cpt',
code: '27447',
display: 'Total knee replacement',
},
patientId: 'pt_abc123',
encounterId: 'enc_surgery789',
occurrencePeriod: {
start: '2024-03-15T08:00:00Z',
end: '2024-03-15T11:30:00Z',
},
performer: [
{ function: 'Lead Surgeon', actorId: 'Practitioner/pract_surgeon01' },
{ function: 'Anesthesiologist', actorId: 'Practitioner/pract_anesthesia02' },
],
bodySite: ['Right knee'],
priceOverride: { value: 28500.00, currency: 'USD' },
overrideReason: 'Negotiated rate per contract',
accountIds: ['acct_billing789'],
});