Skip to main content

AfterVisitSummary

ComplexInpatient flow<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​

Storybook

Second Language​

Storybook

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​

VariantWhat it is
medicine groupsNew, Changed, Keep taking, Stop, each shown only if present.
resultsLast values with range so the patient can compare at follow-up.
other languageInfo alert that a translated copy prints too.
warningsRed 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​

PropTypeDefaultDescription
patientstringnonePatient name
datesstringnoneStay dates
reason *string—Why they were in the hospital, in plain words; required
medsAfterVisitMed[][]Array of { name, dose, unit, route, freq, action: new | changed | continue | stop, note }
resultsInpatientMeasureValue[][]Array of { measure, value, range }
followupsAfterVisitFollowup[][]Array of { when, with, where }
instructionsstring[]nonestring[]: home care
warningsstring[]nonestring[]: warning signs
languagestring'English'Language of the printed copy; a language other than English adds a note
onPrint() => voidnoneCalled by Print
onSendToPortal() => voidnoneCalled by Send to Portal
rangeContextRangeContextId'inpatient' when no global context is setWhich 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.

Angular template
<co-after-visit-summary patient="…" dates="…" [meds]="meds" (co-print)="onPrint($event.detail)"></co-after-visit-summary>
KindNameDescription
attributepatientPatient name; default none
attributedatesStay dates; default none
attributereasonWhy they were in the hospital, in plain words; required
property / JSON attributemedsArray of { name, dose, unit, route, freq, action: new | changed | continue | stop, note }; default []
property / JSON attributeresultsArray of { measure, value, range }; default []
property / JSON attributefollowupsArray of { when, with, where }; default []
property / JSON attributeinstructionsstring[]: home care; default none
property / JSON attributewarningsstring[]: warning signs; default none
attributelanguageLanguage of the printed copy; a language other than English adds a note; default 'English'
attributerange-context / rangeContextWhich shared reference range flags use; the lab range on a result still wins; default 'inpatient' when no global context is set
attributedefault-checked / defaultChecked
property / JSON attributedefault-value / defaultValue
attributeauto-focus / autoFocus
eventco-printCalled by Print; default none (React: onPrint)
eventco-send-to-portalCalled by Send to Portal; default none (React: onSendToPortal)