Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: ROMOPMappingTools
Title: Tools for Working with OMOP CDM Mappings
Version: 2.0.3
Version: 2.0.4
Authors@R:
person("Javier", "Gracia-Tabuenca", , "javier.graciatabuenca@tuni.fi", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-2455-0598"))
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# ROMOPMappingTools 2.0.4

- Added missing domainId combinations to the usagi file validation

# ROMOPMappingTools 2.0.3

- Added download button to vocabulary and database status tables
Expand Down
7 changes: 6 additions & 1 deletion R/validateUsagiFile.R
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,17 @@ validateUsagiFile <- function(
# recalculate domains
dplyr::mutate(recalcualted_domainId = dplyr::case_when(
recalcualted_domainId == "Condition Device" ~ "Condition/Device",
recalcualted_domainId == "Condition Drug" ~ "Condition/Drug",
recalcualted_domainId == "Condition Measurement" ~ "Condition/Meas",
recalcualted_domainId == "Condition Observation" ~ "Condition/Obs",
recalcualted_domainId == "Condition Observation" ~ "Condition/Obs",
recalcualted_domainId == "Condition Procedure" ~ "Condition/Procedure",
recalcualted_domainId == "Device Drug" ~ "Device/Drug",
recalcualted_domainId == "Device Observation" ~ "Device/Obs",
recalcualted_domainId == "Device Procedure" ~ "Device/Procedure",
recalcualted_domainId == "Drug Measurement" ~ "Drug/Measurement",
recalcualted_domainId == "Drug Observation" ~ "Drug/Obs",
recalcualted_domainId == "Drug Procedure" ~ "Drug/Procedure",
recalcualted_domainId == "Measurement Observation" ~ "Measurement/Obs",
recalcualted_domainId == "Measurement Procedure" ~ "Meas/Procedure",
recalcualted_domainId == "Observation Procedure" ~ "Obs/Procedure",
TRUE ~ recalcualted_domainId
Expand Down
Loading