ReferralCard
ComplexWork queues
<co-referral-card>ReferralCard summarizes an outgoing or incoming referral with status, reason, urgency, authorization and its status timeline.
import { ReferralCard } from 'health-components';
Examples
With Timeline
Statuses
Usage
<ReferralCard referral={ref} actions={<Button size="sm">Send Records</Button>} />
When to use
- Referral detail and queues.
When not to use
- Prior auth itself: PriorAuthTimeline.
Variants and states
| Variant | What it is |
|---|---|
| statuses | Draft, Sent, Received, Scheduled, Seen, Report Back, Declined, Needs Info. |
| timeline | Optional history. |
Accessibility
- Status word in a badge.
Do and don't
- Do: Close the loop: track Report Back.
- Don't: Lose referrals after Sent.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
referral * | ReferralData | — | {specialty, patient, to, status, reason, urgency, auth?, from, timeline?}; required |
actions | ReactNode | none | Buttons under the card body |
flat | boolean | false | Border instead of shadow |
padding | CardPadding | 'default' | 'default' | 'compact' (10px) | 'none' (edge-to-edge tables) |
footer | ReactNode | none | Footer content |
as | ElementType | 'section' | Root tag name |
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-referral-card>. 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-referral-card default-checked auto-focus [referral]="referral"></co-referral-card>
| Kind | Name | Description |
|---|---|---|
| property / JSON attribute | referral | {specialty, patient, to, status, reason, urgency, auth?, from, timeline?}; required |
| attribute | default-checked / defaultChecked | |
| property / JSON attribute | default-value / defaultValue | |
| attribute | auto-focus / autoFocus | |
| attribute | flat | Border instead of shadow; default false |
| attribute | padding | 'default' | 'compact' (10px) | 'none' (edge-to-edge tables); default 'default' |
| property / JSON attribute | as | Root tag name; default 'section' |
| slot | actions | Buttons under the card body; default none Plain text also works as the `actions` attribute. |
| slot | footer | Footer content; default none Plain text also works as the `footer` attribute. |