darwin-eu / darwin-eu/CodelistGenerator

summariseCodeUse()

Open
#222 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
R
Stars
18
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Error in summariseCodeUse() - conflict between "SQL_Latin1_General_CP1_CI_AS" and "SQL_Latin1_General_CP1_CI_AI" in UNION ALL operator.

**To Reproduce**
codes <- getCandidateCodes(cdm = cdm,
keywords = c("asthma", "eczema"),
exclude = "occupation",
domains = c("Condition", "Procedure", "Drug"),
standardConcept = "Standard",
searchInSynonyms = TRUE,
searchNonStandard = FALSE,
includeDescendants = TRUE,
includeAncestor = FALSE)

event_count <- summariseCodeUse(list("cd" = codes$concept_id),
cdm = cdm)

**Screenshots**
![Uploading image.png…](
summariseCodeUse
)

ODBC failed with error 42000 from [Microsoft][ODBC SQL Server Driver][SQL Server].
x Implicit conversion of varchar value to varchar cannot be performed because the collation of the value is unresolved due to a collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "SQL_Latin1_General_CP1_CI_AI" in UNION ALL operator.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.