Learn R Programming

EHR (version 0.4-11)

stdzDose: Standardize Dose Entity

Description

This function standardizes the dose entity.

Usage

stdzDose(x)

Value

numeric vector

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.

Examples

Run this code
stdzDose(c('one tablet', '1/2 pill', '1-3 tabs'))

Run the code above in your browser using DataLab