Skip to content

Commit

Permalink
Add cdmHolder to databaseId hash - fixes #48
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonysena committed Aug 19, 2024
1 parent 13f1ab2 commit 61f6b06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/DatabaseMetaData.R
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ getCdmDatabaseMetaData <- function(cdmExecutionSettings, connectionDetails) {
stop("FATAL ERROR: The OBSERVATION_PERIOD table in your OMOP CDM lacks a maximum observation_period_end_date. This may be a result of an error in the ETL as each person in the OMOP CDM must have an observation period with a valid start and end date.")
}

databaseId <- digest::digest2int(paste(cdmSource$cdmSourceName, cdmSource$cdmReleaseDate))
databaseId <- digest::digest2int(paste(cdmSource$cdmSourceName, cdmSource$cdmReleaseDate, cdmSource$cdmHolder))
databaseMetaData <- cdmSource %>%
mutate(
vocabularyVersion = vocabVersion$vocabularyVersion,
Expand Down

0 comments on commit 61f6b06

Please sign in to comment.