stdzDose: Standardize Dose Entity

View source: R/stdzDose.R

stdzDoseR 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'))

EHR documentation built on Dec. 28, 2022, 1:31 a.m.