Display an HTML antimicrobial therapy timeline

therapy_timeline(x, ...)

# S4 method for Patient
therapy_timeline(
  x,
  date1 = NULL,
  date2 = NULL,
  load_timevis_dependencies = FALSE
)

# S4 method for Encounter
therapy_timeline(x, load_timevis_dependencies = FALSE)

# S4 method for TherapyEpisode
therapy_timeline(x, load_timevis_dependencies = FALSE)

# S4 method for MedicationRequest
therapy_timeline(x, load_timevis_dependencies = FALSE)

Arguments

x

an object of class Patient, Encounter, or TherapyEpisode

...

other arguments (not in use)

date1

(optional, only used for x of class Patient) a Date or POSIXct window minimum to focus the timeline on by default

date2

(optional, only used for x of class Patient) a Date or POSIXct window maximum to focus the timeline on by default

load_timevis_dependencies

if TRUE, jQuery and Bootstrap will be loaded (default is FALSE). See timevis for detail.

Value

a timevis object