Accounts
Accounts (FHIRAccount) track billing and financial information for patients — insurance coverage, guarantors, service periods, and account status.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Track billing accounts, insurance coverage, and guarantors.
Account) track billing and financial information for patients — insurance coverage, guarantors, service periods, and account status.
const { data: account } = await clinik.accounts.create({
status: 'active',
type: 'patient',
name: 'Jane Doe - Primary Account',
patientId: 'pt_abc123',
servicePeriod: { start: '2025-01-01', end: '2025-12-31' },
ownerId: 'org_sunrise_medical',
coverage: [
{ coverageId: 'cov_bcbs_001', priority: 1 },
{ coverageId: 'cov_dental_001', priority: 2 },
],
guarantor: [{
partyId: 'Patient/pt_abc123',
onHold: false,
}],
description: 'Primary billing account for outpatient services',
});
| Status | Description |
|---|---|
active | Account is in use |
inactive | Account is closed |
on-hold | Account is temporarily suspended |
const { data: subAccount } = await clinik.accounts.create({
status: 'active',
type: 'expense',
name: 'Cardiology Services',
patientId: 'pt_abc123',
partOfId: account.id,
});
const { data } = await clinik.accounts.search({
patientId: 'pt_abc123',
status: 'active',
});