trim_key {chlorpromazineR}R Documentation

Modify the names in a conversion key to only include the first word

Description

For parenteral (sai) and long-acting/depot (lai) antipsychotics, the name consists of the usual generic name (such as haloperidol) and a second word describing the formulation (e.g. haloperidol decanoate). Since to_cpz() and add_key() require exact matches to work properly, removing the second word may be required, but should be done with care as it can add ambiguity (e.g. fluphenazine enanthate and decanoate).

Usage

trim_key(key)

Arguments

key

the key to trim

Value

the key that was trimmed (a named list of 3 named lists)

See Also

Other key functions: add_key(), check_key()

Examples

trim_key(gardner2010)

[Package chlorpromazineR version 0.2.0 Index]