CPTPicker
ComplexOrders and notes
<co-cpt-picker>CPTPicker adds CPT or HCPCS codes as lines with modifiers, units and diagnosis pointers.
import { CPTPicker } from 'health-components';
Examples
Telehealth Lines
Empty
Usage
<CPTPicker options={cpt} lines={[{ code: "99214", label: "Office visit", mods: "25" }]} telehealth />
When to use
- Coding a visit before the claim.
When not to use
- Full claim editing: ClaimForm.
Variants and states
| Variant | What it is |
|---|---|
| lines | Code rows with modifier, units, pointer. |
| telehealth | Modifier 95 reminder. |
Accessibility
- Inputs named per code.
Do and don't
- Do: Show the 95 rule for telehealth.
- Don't: Units above the MUE without a warning.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
options * | CPTOption[] | — | Array<{code, label, meta?}>: the codes to search. Required |
lines | CPTLine[] | [] | Array<{code, label, mods?, units?, dx?}>: initial lines (uncontrolled) |
value | CPTLine[] | undefined (uncontrolled) | Controlled lines |
onChange | (lines: CPTLine[]) => void | none | Called with all lines after a line is added, edited or removed |
telehealth | boolean | false | Shows the modifier 95 reminder for telehealth visits |
label | string | "Procedure (CPT / HCPCS)" | Field label |
placeholder | string | "Code or words, such as 99214" | Placeholder of the search input |
Also accepts native attributes, including defaultChecked, autoFocus, onInput, plus className and event handlers on the root element.
Angular, Vue and HTML
Register the elements once (Angular guide), then use <co-cpt-picker>. 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-cpt-picker telehealth label="…" [options]="options" (co-change)="onChange($event.detail)"></co-cpt-picker>
| Kind | Name | Description |
|---|---|---|
| property / JSON attribute | options | Array<{code, label, meta?}>: the codes to search. Required |
| property / JSON attribute | lines | Array<{code, label, mods?, units?, dx?}>: initial lines (uncontrolled); default [] |
| property / JSON attribute | value | Controlled lines; default undefined (uncontrolled) |
| attribute | telehealth | Shows the modifier 95 reminder for telehealth visits; default false |
| attribute | label | Field label; default "Procedure (CPT / HCPCS)" |
| attribute | placeholder | Placeholder of the search input; default "Code or words, such as 99214" |
| attribute | default-checked / defaultChecked | |
| attribute | auto-focus / autoFocus | |
| event | co-change | Called with all lines after a line is added, edited or removed; default none (React: onChange) |
| event | co-input | (React: onInput) |