Skip to contents

Renders a patient_card as a single-line character summary. print() shows exactly this string, so the two cannot drift apart.

Usage

# S3 method for class 'patient_card'
format(x, ...)

Arguments

x

A patient_card object.

...

These dots are for future extensions and must be empty.

Value

A length-1 character vector.

Examples

card <- sdt_patient_card(
  "P01", 34, "m", 4L, TRUE, "thorax", "red", "DCS", 1L
)
format(card)
#> [1] "<patient_card> P01: 34y m, thorax, triage red, therapy DCS, life 4, ventilated"