Skip to main content

SuperbillTable

ComplexRevenue<co-superbill-table>

SuperbillTable is the tick-box fee sheet grouped by visit type with fees and a running total.

import { SuperbillTable } from 'health-components';

Examples​

Empty​

Storybook

Controlled​

Storybook

Usage​

<SuperbillTable groups={feeSheet} defaultSelected={["99214"]} onSend={sendToBilling} />

When to use​

  • Paper-style coding at checkout in small practices.

When not to use​

  • Full claim edit: ClaimForm.

Variants and states​

VariantWhat it is
groupsOffice visits, procedures, labs, by specialty.
selectedHighlighted rows, total.

Accessibility​

  • Real checkboxes with labels.

Do and don't​

  • Do: Use the practice fee schedule.
  • Don't: Hardcode fees.

Props​

PropTypeDefaultDescription
groups *SuperbillGroup[]—Fee sheet sections. Required
selectedstring[]undefined (uncontrolled)Controlled selected codes
defaultSelectedstring[][]Initially selected codes when uncontrolled
onSelectedChange(codes: string[]) => void—Called with the new list of selected codes
subtitlestringnoneLine under the title (patient, date, specialty)
onPrint() => voidnoneCalled when Print is pressed
onSend(codes: string[]) => voidnoneCalled with the selected codes when Send to Billing is pressed

Also accepts native attributes, including defaultChecked, defaultValue, autoFocus, plus className and event handlers on the root element.

Angular, Vue and HTML​

Register the elements once (Angular guide), then use <co-superbill-table>. Attributes take strings; arrays and objects are set as properties (Angular [prop], Vue :prop) or as JSON attributes. Callbacks are DOM events with the value in event.detail.

Angular template
<co-superbill-table subtitle="…" default-checked [groups]="groups" (co-selected-change)="onSelectedChange($event.detail)"></co-superbill-table>
KindNameDescription
property / JSON attributegroupsFee sheet sections. Required
property / JSON attributeselectedControlled selected codes; default undefined (uncontrolled)
property / JSON attributedefault-selected / defaultSelectedInitially selected codes when uncontrolled; default []
attributesubtitleLine under the title (patient, date, specialty); default none
attributedefault-checked / defaultChecked
property / JSON attributedefault-value / defaultValue
attributeauto-focus / autoFocus
eventco-selected-changeCalled with the new list of selected codes (React: onSelectedChange)
eventco-printCalled when Print is pressed; default none (React: onPrint)
eventco-sendCalled with the selected codes when Send to Billing is pressed; default none (React: onSend)