Opioid {OralOpioids}R Documentation

Get the Opioid content from Health Canada by using the DIN or NDC

Description

Opioid retrieves the Opioid content from the Opioid_Table.

Usage

Opioid(Drug_ID, Opioid_Table)

Arguments

Drug_ID

A numeric value for the DIN or NDC. Exclude all zeros in front.

Opioid_Table

Opioid dataset which can be loaded by using the load_HealthCanada_Opioid_Table() or load_FDA_Opioid_Table() function. The name you use to call the function should be input here.

Value

Opioid content

Examples


FDA_Opioid_Table <- load_Opioid_Table(no_download = TRUE, country="US")
HealthCanada_Opioid_Table <- load_Opioid_Table(no_download = TRUE, country="Canada")
Opioid(786535, HealthCanada_Opioid_Table)
Opioid("0093-0058", FDA_Opioid_Table)

[Package OralOpioids version 2.0.3 Index]