Skip to main content

ProblemList

ComplexClinical<co-problem-list>

ProblemList is the coded problem list with ICD-10 codes, onset, chronic and HCC tags, filtered by Active, Resolved or All.

import { ProblemList } from 'health-components';

Examples​

All Problems​

Storybook

Resolved​

Storybook

Empty​

Storybook

Read Only​

Storybook

Usage​

<ProblemList items={problems} icdOptions={icd10} />

When to use​

  • Chart Problems section; assessment review.

When not to use​

  • Encounter diagnoses on a claim: ClaimForm.

Variants and states​

VariantWhat it is
active / resolved / allFilter.
chronicInfo tag.
HCCOutline tag for risk adjustment.
readOnlyHides the add picker.

Accessibility​

  • Code and words both shown.

Do and don't​

  • Do: Keep resolved problems for history.
  • Don't: Free-text problems without a code.

Props​

PropTypeDefaultDescription
items *ProblemItem[]—Array<{code, label, onset?, by?, chronic?, hcc?, status?}>; required
icdOptionsProblemCodeOption[][]Array<{code,label}> for the Add problem picker
readOnlybooleanfalseHides the Add problem picker
filterProblemFilterundefined (uncontrolled)Status filter (controlled): 'active' | 'resolved' | 'all'
defaultFilterProblemFilter'active'Initial status filter (uncontrolled)
onFilterChange(filter: ProblemFilter) => voidnoneCalled when the filter changes
onAddICD10SelectnoneCalled with the code picked in Add problem

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-problem-list>. 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-problem-list read-only filter="…" [items]="items" (co-filter-change)="onFilterChange($event.detail)"></co-problem-list>
KindNameDescription
property / JSON attributeitemsArray<{code, label, onset?, by?, chronic?, hcc?, status?}>; required
property / JSON attributeicd-options / icdOptionsArray<{code,label}> for the Add problem picker; default []
attributeread-only / readOnlyHides the Add problem picker; default false
attributefilterStatus filter (controlled): 'active' | 'resolved' | 'all'; default undefined (uncontrolled)
attributedefault-filter / defaultFilterInitial status filter (uncontrolled); default 'active'
attributedefault-checked / defaultChecked
property / JSON attributedefault-value / defaultValue
attributeauto-focus / autoFocus
eventco-filter-changeCalled when the filter changes; default none (React: onFilterChange)
eventco-addCalled with the code picked in Add problem; default none (React: onAdd)