stdzDose {EHR} | R Documentation |
Standardize Dose Entity
Description
This function standardizes the dose entity.
Usage
stdzDose(x)
Arguments
x |
character vector of extracted dose values |
Details
Some dose strings may include multiple values and additional interpretation may be needed. For example ‘2-1’ likely indicates a dose of 2 followed by a dose of 1. Currently it would be converted to the average of 1.5.
Value
numeric vector
Examples
stdzDose(c('one tablet', '1/2 pill', '1-3 tabs'))
[Package EHR version 0.4-11 Index]