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
Controlled
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
| Variant | What it is |
|---|---|
| groups | Office visits, procedures, labs, by specialty. |
| selected | Highlighted rows, total. |
Accessibility
- Real checkboxes with labels.
Do and don't
- Do: Use the practice fee schedule.
- Don't: Hardcode fees.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
groups * | SuperbillGroup[] | — | Fee sheet sections. Required |
selected | string[] | undefined (uncontrolled) | Controlled selected codes |
defaultSelected | string[] | [] | Initially selected codes when uncontrolled |
onSelectedChange | (codes: string[]) => void | — | Called with the new list of selected codes |
subtitle | string | none | Line under the title (patient, date, specialty) |
onPrint | () => void | none | Called when Print is pressed |
onSend | (codes: string[]) => void | none | Called 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>
| Kind | Name | Description |
|---|---|---|
| property / JSON attribute | groups | Fee sheet sections. Required |
| property / JSON attribute | selected | Controlled selected codes; default undefined (uncontrolled) |
| property / JSON attribute | default-selected / defaultSelected | Initially selected codes when uncontrolled; default [] |
| attribute | subtitle | Line under the title (patient, date, specialty); default none |
| attribute | default-checked / defaultChecked | |
| property / JSON attribute | default-value / defaultValue | |
| attribute | auto-focus / autoFocus | |
| event | co-selected-change | Called with the new list of selected codes (React: onSelectedChange) |
| event | co-print | Called when Print is pressed; default none (React: onPrint) |
| event | co-send | Called with the selected codes when Send to Billing is pressed; default none (React: onSend) |