Define a dose object to be passed to the Rx Studio API
dose(datetime, dose, tinf = NULL, route = c("IV", "oral"))
datetime | date and time of the administered dose |
---|---|
dose | Dose Amount (number in mg) |
tinf | optional Infusion Time (number in hours) |
route | Route of Administration, e.g. |
list
dose(Sys.time(), 2000, 2) #> $DATETIME #> [1] "2021-11-26 10:34:10 UTC" #> #> $DOSE #> [1] 2000 #> #> $TINF #> [1] 2 #> #> $set #> [1] "HISTDOSE" #> dose(Sys.time(), 2000, route = 'oral') #> $DATETIME #> [1] "2021-11-26 10:34:11 UTC" #> #> $DOSE #> [1] 2000 #> #> $set #> [1] "HISTORALDOSE" #>