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, ...)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"