AfterVisitSummary
<co-after-visit-summary>AfterVisitSummary is the plain-language discharge summary a patient takes home: why they were here, last results, new, changed, continued and stopped medicines, appointments, home care and warning signs.
import { AfterVisitSummary } from 'health-components';
Examples
Showcase
Second Language
Usage
<AfterVisitSummary patient="Grace Okafor" reason="Your heart was not pumping well..." meds={meds} followups={appts} warnings={redFlags} />
When to use
- Printed at discharge and sent to the patient portal.
When not to use
- Clinician discharge summary for the next provider; that is a note.
Variants and states
| Variant | What it is |
|---|---|
| medicine groups | New, Changed, Keep taking, Stop, each shown only if present. |
| results | Last values with range so the patient can compare at follow-up. |
| other language | Info alert that a translated copy prints too. |
| warnings | Red box with when to call 911. |
Clinical values
Every number goes through the clinical value rules: tabular digits, unit always shown, fixed precision per measure (temperature 0.1 °C, potassium 0.1 mmol/L, creatinine 0.01 mg/dL, heart rate whole bpm), the reference range in the tooltip and H, L, H! or L! flags. Doses drop trailing zeros and keep a leading zero (0.5 mg, 5 mg).
Accessibility
- Headings for each section so screen readers can jump.
- Written at about a sixth-grade reading level; no abbreviations like BID.
Do and don't
- Do: Say what changed and why in one line per medicine.
- Don't: Print "q12h" or "PRN" to a patient.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
patient | string | none | Patient name |
dates | string | none | Stay dates |
reason * | string | — | Why they were in the hospital, in plain words; required |
meds | AfterVisitMed[] | [] | Array of { name, dose, unit, route, freq, action: new | changed | continue | stop, note } |
results | InpatientMeasureValue[] | [] | Array of { measure, value, range } |
followups | AfterVisitFollowup[] | [] | Array of { when, with, where } |
instructions | string[] | none | string[]: home care |
warnings | string[] | none | string[]: warning signs |
language | string | 'English' | Language of the printed copy; a language other than English adds a note |
onPrint | () => void | none | Called by Print |
onSendToPortal | () => void | none | Called by Send to Portal |
rangeContext | RangeContextId | 'inpatient' when no global context is set | Which shared reference range flags use; the lab range on a result still wins |
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-after-visit-summary>. 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.
<co-after-visit-summary patient="…" dates="…" [meds]="meds" (co-print)="onPrint($event.detail)"></co-after-visit-summary>
| Kind | Name | Description |
|---|---|---|
| attribute | patient | Patient name; default none |
| attribute | dates | Stay dates; default none |
| attribute | reason | Why they were in the hospital, in plain words; required |
| property / JSON attribute | meds | Array of { name, dose, unit, route, freq, action: new | changed | continue | stop, note }; default [] |
| property / JSON attribute | results | Array of { measure, value, range }; default [] |
| property / JSON attribute | followups | Array of { when, with, where }; default [] |
| property / JSON attribute | instructions | string[]: home care; default none |
| property / JSON attribute | warnings | string[]: warning signs; default none |
| attribute | language | Language of the printed copy; a language other than English adds a note; default 'English' |
| attribute | range-context / rangeContext | Which shared reference range flags use; the lab range on a result still wins; default 'inpatient' when no global context is set |
| attribute | default-checked / defaultChecked | |
| property / JSON attribute | default-value / defaultValue | |
| attribute | auto-focus / autoFocus | |
| event | co-print | Called by Print; default none (React: onPrint) |
| event | co-send-to-portal | Called by Send to Portal; default none (React: onSendToPortal) |