Codes with attributes indicating the medication contains a statin ingredient
CHILDREN_STATIN_SUBSTANCE=CHILDREN("372912004 << Substance with 3-hydroxy-3-methylglutaryl-coenzyme A reductase inhibitor mechanism of action (substance) >>")HAS_INGREDIENT=CODES("127489000 << Has active ingredient (attribute) >> | 762949000 << Has precise active ingredient (attribute) >> | 10362801000001104 << Has specific active ingredient (attribute) >>")HAS_STATIN_SUBSTANCE=HAS_ATTRIBUTES(CHILDREN_STATIN_SUBSTANCE, relationship =HAS_INGREDIENT)RESULT=HAS_STATIN_SUBSTANCE
Codelist
Code
# display interactive table with button to download as a csv filehtmltools::browsable(tagList(tags$button(tagList(fontawesome::fa("download"), "Download as CSV"), onclick ="Reactable.downloadDataCSV('codelist-download', 'statins.csv')"),reactable::reactable(RESULT, filterable =TRUE, searchable =TRUE, resizable =TRUE, paginationType ="jump", showPageSizeOptions =TRUE, pageSizeOptions =c(10, 25, 50, 100, 200), elementId ="codelist-download")))