Vectorized over x. For free text, uses RxNorm approximateTerm.
For NDC, uses findRxcuiById. For RxCUI, validates and returns properties.
Usage
resolve(
x,
type = c("auto", "name", "rxcui", "ndc"),
max_entries = 1,
show_progress = interactive()
)Arguments
- x
Character vector: drug string, RxCUI, or NDC (10/11-digit or hyphenated)
- type
One of c("auto","name","rxcui","ndc"). Default "auto" infers.
- max_entries
Integer, passed to approximateTerm for name queries.
- show_progress
Logical. Show a progress bar in interactive sessions. Progress is shown only when at least 5 inputs are supplied.
