therapy_timeline: Display an HTML antimicrobial therapy timeline

therapy_timelineR Documentation

Display an HTML antimicrobial therapy timeline

Description

Display an HTML antimicrobial therapy timeline

Usage

therapy_timeline(x, ...)

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

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

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

## S4 method for signature '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


ramses-antibiotics/ramses-package documentation built on Feb. 13, 2024, 1:01 p.m.