Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
xihang-chen committed Jun 11, 2024
1 parent a387c4d commit 01c45f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/drugCodes.R
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,11 @@ getDrugIngredientCodes <- function(cdm,
dplyr::select(!"ancestor_concept_id")
}

names(ingredientCodes)[[i]] <- workingName
names(ingredientCodes)[[i]] <- paste0(names(ingredientCodes)[i], "_", workingName)
}

names(ingredientCodes) <- nonDuplicateEntries(names(ingredientCodes))

if(isFALSE(withConceptDetails)){
ingredientCodes <- omopgenerics::newCodelist(ingredientCodes)
}
Expand Down

0 comments on commit 01c45f5

Please sign in to comment.