Skip to main content

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​

Storybook

Empty​

Storybook

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​

VariantWhat it is
linesCode rows with modifier, units, pointer.
telehealthModifier 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​

PropTypeDefaultDescription
options *CPTOption[]—Array<{code, label, meta?}>: the codes to search. Required
linesCPTLine[][]Array<{code, label, mods?, units?, dx?}>: initial lines (uncontrolled)
valueCPTLine[]undefined (uncontrolled)Controlled lines
onChange(lines: CPTLine[]) => voidnoneCalled with all lines after a line is added, edited or removed
telehealthbooleanfalseShows the modifier 95 reminder for telehealth visits
labelstring"Procedure (CPT / HCPCS)"Field label
placeholderstring"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>
KindNameDescription
property / JSON attributeoptionsArray<{code, label, meta?}>: the codes to search. Required
property / JSON attributelinesArray<{code, label, mods?, units?, dx?}>: initial lines (uncontrolled); default []
property / JSON attributevalueControlled lines; default undefined (uncontrolled)
attributetelehealthShows the modifier 95 reminder for telehealth visits; default false
attributelabelField label; default "Procedure (CPT / HCPCS)"
attributeplaceholderPlaceholder of the search input; default "Code or words, such as 99214"
attributedefault-checked / defaultChecked
attributeauto-focus / autoFocus
eventco-changeCalled with all lines after a line is added, edited or removed; default none (React: onChange)
eventco-input (React: onInput)