Skip to content

Commit 6b19b33

Browse files
authored
Merge pull request #218 from darwin-eu/v3.2
cran v3.2.0
2 parents 7e1e4c2 + d5fa8b5 commit 6b19b33

File tree

10 files changed

+97
-9
lines changed

10 files changed

+97
-9
lines changed

DESCRIPTION

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
Package: CodelistGenerator
22
Title: Identify Relevant Clinical Codes and Evaluate Their Use
3-
Version: 3.1.0.900
3+
Version: 3.2.0
44
Authors@R: c(
55
person("Edward", "Burn", email = "[email protected]",
66
role = c("aut", "cre"),
77
comment = c(ORCID = "0000-0002-9286-1128")),
88
person("Marti", "Catala", email = "[email protected]",
99
role = c("ctb"),
1010
comment = c(ORCID = "0000-0003-3308-9905")),
11-
person("Xihang", " Chen", email = "[email protected]",
12-
role = c("ctb"),
11+
person("Xihang", "Chen", email = "[email protected]",
12+
role = c("aut"),
1313
comment = c(ORCID = "0009-0001-8112-8959")),
14+
person("Nuria", "Mercade-Besora", email = "[email protected]",
15+
role = c("aut"), comment = c(ORCID = "0009-0006-7948-3747")),
1416
person("Mike", "Du", email = "[email protected]",
1517
role = c("ctb"),
1618
comment = c(ORCID = "0000-0002-9517-8834")),

NAMESPACE

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Generated by roxygen2: do not edit by hand
22

33
export("%>%")
4+
export(availableATC)
5+
export(availableICD10)
6+
export(availableIngredients)
47
export(codesFromCohort)
58
export(codesFromConceptSet)
69
export(codesInUse)

R/summariseAchillesCodeUse.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,6 @@ fetchAchillesCounts <- function(cdm, analysisId, conceptId = NULL){
189189
# the same code might appear in multiple tables so we will sum them
190190
analyses %>%
191191
dplyr::group_by(.data$concept_id) |>
192-
dplyr::summarise(n = sum(n, na.rm = TRUE)) |>
192+
dplyr::summarise(n = sum(.data$n, na.rm = TRUE)) |>
193193
dplyr::mutate(n = as.integer(.data$n))
194194
}

R/vocabUtilities.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,10 +518,10 @@ filterOnDoseForm <- function(concepts, conceptDoseForms, doseForm){
518518
}
519519

520520
addIngredientCount <- function(cdm, concepts) {
521-
522521
ingredient_ancestor <- cdm$concept_ancestor %>%
523522
dplyr::inner_join(cdm$concept %>%
524-
dplyr::filter(.data$concept_class_id == "Ingredient") %>%
523+
dplyr::filter(.data$concept_class_id == "Ingredient",
524+
.data$standard_concept == "S") %>%
525525
dplyr::select("concept_id"),
526526
by = c("ancestor_concept_id" = "concept_id"))
527527

_pkgdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ reference:
2828
- matches("codesInUse|compareCodelists|subsetToCodesInUse|restrictToCodesInUse|subsetOnRouteCategory|stratifyByRouteCategory|stratifyByDoseUnit|stratifyByConcept|subsetOnDoseUnit")
2929
- subtitle: Vocabulary utility functions
3030
- contents:
31-
- matches("getVocabVersion|getVocabularies|getConceptClassId|getDomains|getDescendants|getDoseForm|doseFormToRoute|getRouteCategories|getRoutes|getDoseUnit|getRelationshipId|getMappings|sourceCodesInUse")
31+
- matches("getVocabVersion|getVocabularies|getConceptClassId|getDomains|getDescendants|getDoseForm|doseFormToRoute|getRouteCategories|getRoutes|getDoseUnit|getRelationshipId|getMappings|sourceCodesInUse|availableATC|availableICD10|availableIngredients")
3232
- subtitle: Create a mock dataset that contains vocabulary tables
3333
- contents:
3434
- matches("mockVocabRef")

cran-comments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
## R CMD check results
22

3-
This is a new release.
3+
This release addresses a breaking change in a dependency.

man/CodelistGenerator-package.Rd

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/availableATC.Rd

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/availableICD10.Rd

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/availableIngredients.Rd

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)